File size: 2.43Kb
<?php
Error_Reporting(E_ALL & ~E_NOTICE);
$url = htmlspecialchars($_GET['url']);
$rek = htmlspecialchars($_GET['rek']);
if($rek==""){$rek="c.wen.ru/283896.wbmp?SimWap";}
if($url==""){$url="SIMWAP.RU";}
$var=1;
if($var==1){if($wap==""){$tips=getenv('HTTP_ACCEPT'); if(strstr($tips,"html")) {$wap="html";}else{$wap="wml";}}}
if($var==2){if($wap==""){$wap="html";}}
if($var==3){if($wap==""){$wap="wml";}}
if($wap=="html")
{
header ("Content-type:application/xhtml+xml; charset=utf-8");
print '<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/>
<style type="text/css">
body{ font-weight: normal; font-size: small; color: #000000; font-family: sans-serif; background-color: #FFFB8E}
a{ color: #000000; text-decoration: none }
a:hover{ text-decoration: underline }
div{ margin: 0px; padding: 0px 0px 0px 2px }
div.main{background-color: #6FFB8E; border: 0px solid #91DB12; color: #FFFFFF }
div.sec{padding:2px 1px 1px 2px; background-color: #007712; border: 1px solid #91DB12; color: #FFFFFF }
div.news{padding:2px 1px 1px 2px; background-color: #6FFB8E; border: 1px solid #91DB12; color: #A7051B }
div.news2{padding:2px 1px 1px 2px; background-color: #CCFD69; border: 1px solid #91DB12; font-size: smaller; color: #A7051B }
div.men{padding:2px 1px 1px 2px; background-color: #FFFFFF; border: 0px solid #91DB12; color: #A7051B }
div.ten{padding:2px 1px 1px 2px; background-color: #FFC337; border: 1px solid #AC5959; color: #000000 }
div.zero{padding:2px 1px 1px 2px; background-color: #FFA03F; border: 0px solid #FFFB8E; color: #A7051B }
div.quat{ color: #00D900 }
div.ie {padding:2px 1px 1px 2px; background-color: #FFFB8E; border: 0px solid #FFFB8E; color: #A7051B; text-align: center}
.c1{ color: #FF0000 }
.c2{ color: #FFFF00 }
</style>
<title>'.$url.'</title>
</head>
<body><div><div class="sec">Анекдоты</div>';
}
else
{
header ("Content-type:text/vnd.wap.wml; charset=utf-8");
print '<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml><head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head><card title="'.$url.'"><p align="left"><small>Анекдоты<br/>---<br/>';
}
?>