Файл: shoop/click/header.php
Строк: 99
<?php
$ver=$_GET['ver'];
if (!$ver) {
$agent = $HTTP_USER_AGENT;
$mobile=strtok($agent,"/");
if ($mobile=="Opera"||$mobile=="Mozilla") {
$ver=htm;
}
else
{
$ver=wml;
}
}
if ($ver=="htm"){
$ver=htm;
header("Content-Type: text/html; charset=utf-8");
$begin='<?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">
<head>
<meta http-equiv="Content-Type" content="application/vnd.wap.xhtml+xml; charset=UTF-8" />
<style type="text/css">
body{ font-weight: normal; font-size: small; color: #FF0000; font-family: sans-serif; background-color: #FFCC99}
a{ color: #000000; text-decoration: none }
a:hover{ text-decoration: underline }
div{ margin: 0px; padding: 0px 0px 0px 2px }
div.f{ font-weight: normal; font-size: small; color: #1E1E5B; text-align: center; font-family: sans-serif; background-color: #FFCC99}
div.fl{ font-weight: normal; font-size: small; color: #1E1E5B; text-align: left; font-family: sans-serif; background-color: #FFCC99}
div.main{background-color: #FF9933; border: 1px solid #9D3F00; text-align: center; color: #1E1E5B }
div.mainx{background-color: #FF9933; border: 0px solid #91DB12; text-align: left; color: #1E1E5B }
div.mains{background-color: #FF9933; border: 1px solid #9D3F00; text-align: center; color: #1E1E5B }
div.mainsl{background-color: #FF9933; border: 1px solid #9D3F00; text-align: left; color: #1E1E5B }
div.mainz{background-color: #FF9933; border: 1px solid #9D3F00; font-size: small; text-align: left; color: #1E1E5B}
div.mainzc{background-color: #000000; border: 1px solid #000069; font-size: small; text-align: center; color: #FF0000 }
div.quat{font-weight: bold;}
div.q{text-decoration: underline}
div.ie {padding:2px 1px 1px 2px; background-color: #B04600; border: 0px solid #FFFB8E; color: #A7051B; text-align: center}
.c1{ color: #FF0000 }
.c2{ color: #FFFF00 }
.ibutton {border:1px solid #FF0000; background-color: #B04600;c}
</style>
<title>'.$title.'</title>
</head>
<body>';
$d_f="<div class="f">";
$d_q="<div class="quat">";
$d_qq="<div class="q">";
$d="<div>";
$d_fl="<div class="fl">";
$d_m="<div class="main">";
$d_mx="<div class="mainx">";
$d_q="<div class="quat">";
$d_ms="<div class="mains">";
$d_msl="<div class="mainsl">";
$d_mz="<div class="mainz">";
$d_mzc="<div class="mainzc">";
$d_e="</div>";
$endpage='[xhtml |<a href="http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?ver=wml">wml</a>]<br/></div></body></html>';
$endpage3='</div></body></html>';
}
else
{
$ver=wml;
$p_c="<p align="center">";
$p_l="<p align="left">";
$p_e="</p>";
$sm="<small>";
$uu="<u>";
$ue="</u>";
$bb="<b>";
$be="</b>";
$sme="</small>";
header("Content-type:text/vnd.wap.wml");
$begin='<?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><card id="main" title="'.$title.'">';
$endpage='<small>[<a href="http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?ver=htm">xhtml</a>| wml]<br/></small></p></card></wml>';
$endpage3='</p></card></wml>';
}
?>