View file wkat/header.php

File size: 3.69Kb
<?
$result=mysql_query("select * from `cool_site` where tin>'0'  && activ='1' order by rand() limit 1");

$xx=mysql_result($result,0,"id");
$xx1=mysql_result($result,0,"link");
$ver=$_GET['ver'];
if (!$ver) {
$agent = $HTTP_USER_AGENT;
$mobile=strtok($agent,"/");
if ($mobile=="Opera"||$mobile=="Mozilla") {
$ver=htm;

}
else
{
$ver=htm;
}

}

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" />

<title>'.$title.'</title><link rel="stylesheet" type="text/css" href="http://wkat.in/style.css"/>
</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_mt="<div class=\"mt\">";
$d_e="</div>";
$endpage='[xhtml |<a href="http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?ver=wml">wml</a>]<br/></div></body></html>';
$endpage1='[xhtml |<a href="http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?c='.$where_data.'&amp;ver=wml">wml</a>]<br/>
</div></body></html>';
$endpage2='<a href="index.php?ver='.$ver.'">Ha &#x0433;&#x043B;a&#x0432;&#x043D;y&#x044E;</a><br/><br/>[xhtml |<a href="http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?c='.$where_data.'&amp;ver=wml">wml</a>]<br/>
</div></body></html>';
$endpage3='<a href="index.php?ver='.$ver.'">Ha &#x0433;&#x043B;a&#x0432;&#x043D;y&#x044E;</a><br/><br/>[xhtml |<a href="http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?ver=wml&amp;id='.$id.'&amp;pass='.$pass.'">wml</a>]<br/>
</div></body></html>';
$endpage4='<a href="index.php?ver='.$ver.'">Ha &#x0433;&#x043B;a&#x0432;&#x043D;y&#x044E;</a><br/><br/>[xhtml |<a href="http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?c='.$where_data.'&amp;ver=wml&amp;id='.$id.'">wml</a>]<br/>
</div></body></html>';

}

else
{
$ver=wml;
$p_c="";
$p_l="";
$p_e="";
$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='<br/><small>[<a href="http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?ver=htm">xhtml</a>| wml]<br/></small></card></wml>';
$endpage1='<br/><small>[<a href="http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?c='.$where_data.'&amp;ver=htm">xhtml</a>| wml]<br/></small></card></wml>';
$endpage2='<br/><small><a href="index.php?ver='.$ver.'">Ha &#x0433;&#x043B;a&#x0432;&#x043D;y&#x044E;</a><br/><br/>[<a href="http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?c='.$where_data.'&amp;ver=htm">xhtml</a>| wml]<br/></small></card></wml>';
$endpage3='<br/><small><a href="index.php?ver='.$ver.'">Ha &#x0433;&#x043B;a&#x0432;&#x043D;y&#x044E;</a><br/><br/>[<a href="http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?ver=htm&amp;id='.$id.'&amp;pass='.$pass.'">xhtml</a>| wml]<br/></small></card></wml>';
$endpage4='<br/><small><a href="index.php?ver='.$ver.'">Ha &#x0433;&#x043B;a&#x0432;&#x043D;y&#x044E;</a><br/><br/>[<a href="http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?c='.$where_data.'&amp;ver=htm&amp;id='.$id.'">xhtml</a>| wml]<br/></small></card></wml>';
}

?>