File size: 3.5Kb
<?
if (!empty($_GET['wap'])) { $_SESSION['wap']=$_GET['wap']; }
if ($_SESSION['wap']=="xml")
{
header("Content-type: application/xhtml+xml; charset=utf-8");
Header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
Header("Last-Modified: ".gmdate("D, d M Y H:i:s")."GMT");
Header("Cache-Control: no-cache, must-revalidate");
Header("Cache-Control: max-age=0");
Header("Pragma: no-cache");
echo '<?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><title>Форум</title>
<style type="text/css">
body{ font-weight: normal; font-size: 14px; color: #A7051B; font-family: Comic Sans MS; 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: #FFFB8E; border: 0px solid #91DB12; color: #FFFFFF }
div.sec{padding:2px 1px 1px 2px; background-color: #8BD712; border: 1px solid #91DB12; color: #FFFFFF }
div.news{padding:2px 1px 1px 2px; background-color: #CCFD69; border: 1px solid #91DB12; color: #A7051B }
div.header{padding:2px 1px 1px 2px; background-color: #CCFD69; border: 1px solid #91DB12; 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: #FFFFFF }
div.zero{padding:2px 1px 1px 2px; background-color: #FFFB8E; border: 0px solid #FFFB8E; color: #A7051B }
input.ibutton {
color: #FFF;
background-color: #FFC337;
border-top: 1px solid #FFF;
border-left: 1px solid #FFF;
border-right: 1px solid #000;
border-bottom: 1px solid #000;
padding: 0px 2px 0px 2px;
}
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>
</head>
<body>';
include ("tags.php");
}
else
{
header("Content-type: text/vnd.wap.wml; charset=utf-8");
header("Cache-Control: no-cache");
echo '<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="main" title="Форум"><p align="left"><small>';
}
include ("ini.php");
include ("smile.php");
delNullUsers();
delNullAnonim();
if ($autorize['ban']==1)
{
echo "Ошибка! Вы забанены!<br/>";
echo "[<a href=\"index.php\">Форумы</a>]<br/>";
echo "-<br/>";
include ("footer.php");
exit();
}
if ($autorize)
{
$q = mysql_query("select * from `ban` where ((`ip`='$addr')and(`brow`='$agent'));");
if (mysql_affected_rows()!=0)
{
echo "Ошибка! Вы забанены!<br/>";
echo "[<a href=\"index.php\">Форумы</a>]<br/>";
echo "-<br/>";
include ("footer.php");
exit();
}
}
if ($autorize)
{
$timenow=date("YmdHi");
$q = mysql_query("select * from `users` where ((`kick`>'$timenow')and(`login`='$login')) ;");
if (mysql_affected_rows()!=0)
{
$why=$autorize['why'];
$time=$autorize['time'];
$kick=$autorize['kick'];
$how=$kick-$time;
echo "Ошибка! Вы забанены по причине: <b>$why!</b> Вернетесь через <b>$how</b> минут<br/>";
echo "[<a href=\"index.php\">Форумы</a>]<br/>";
echo "-<br/>";
include ("footer.php");
exit();
}
}
?>