File size: 4.17Kb
<?php
//РіР±РІ ў«РЃў Ґ¬ Р±®Ґ¤РЃҐРЃҐ Р± Ў §®©
include "conf.php";
//§ ЇР°®Р±Р» Є Ў §Ґ ¤ ле
$query=@mysql_query("select `ltime` from users where ltime < '".(time()-1*24*3600)."' order by `ltime` limit 1;");
$dq=@mysql_fetch_array($query);
if($dq) {
@mysql_query("delete from users where counter = 0;");
@mysql_query("update users set counter=0, outcounter=0, ltime='".time()."' where 1;");
}
$noch=date("H:i:s");
if($noch=='00:00:00') { @mysql_query("UPDATE users set counter=0, outcounter=0 where id!=0;") ;}
$i=0;
$q1=@mysql_query("select id from users where category='1' and counter>0;");
$i1=@mysql_affected_rows();
$q2=@mysql_query("select id from users where category='2' and counter>0;");
$i2=@mysql_affected_rows();
$q3=@mysql_query("select id from users where category='3' and counter>0;");
$i3=@mysql_affected_rows();
$q4=@mysql_query("select id from users where category='4' and counter>0;");
$i4=@mysql_affected_rows();
$q5=@mysql_query("select id from users where category='5' and counter>0;");
$i5=@mysql_affected_rows();
$q6=@mysql_query("select id from users where category='6' and counter>0;");
$i6=@mysql_affected_rows();
$q7=@mysql_query("select id from users where category='7' and counter>0;");
$i7=@mysql_affected_rows();
$q8=@mysql_query("select id from users where category='8' and counter>0;");
$i8=@mysql_affected_rows();
$q9=@mysql_query("select id from users where category='9' and counter>0;");
$i9=@mysql_affected_rows();
$q10=@mysql_query("select id from users where counter>0;");
$i10=@mysql_affected_rows();
@mysql_close();
// Р· «® wml Рґ ©«
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="WaP Kаталог">
<p align="center">
<a href="http://gado.kmx.ru">Free ADULT 18+</a><br/>
Обычный каталог!<br/>Kat.GuWaP.Org<br/>:::::<br/><b><a href="kat2.php?best=best">5-ka лучших!!</a></b><br/><a href="kat.php?best=best">Все сайты</a><? print "(".$i10.")"; ?><br/><? include"online.php"; ?><br/>
:::::<br/>
</p><p>
<a href="katalog.php?where=1">Для мобил</a><? print "(".$i1.")"; ?><br/>
<a href="katalog.php?where=2">Загрузки</a><? print "(".$i2.")"; ?><br/>
<a href="katalog.php?where=3">Рротика</a><? print "(".$i3.")"; ?><br/>
<a href="katalog.php?where=4">Халява</a><? print "(".$i4.")"; ?><br/>
<a href="katalog.php?where=5">Р азное</a><? print "(".$i5.")"; ?><br/>
</p><p align="center">:::::<br/><a href="o.php">Статистика</a><br/>
<?php
include ("function.lib.php");
if(($site!="") && ($link!=""))
{
print utf_encode("
<small><u>Голос учтён!Спасибо!</u></small><br/>
");
}
print utf_encode("
:::::<br/><a href=\"pravila.php\">Добавить сайт</a><br/><a href=\"enter.php\">Peдактировать</a><br/>
<a href=\"http://gb.wen-info.com/index.php?id=870\">Поддержка</a><br/><a href=\"spravka.php\">Справка</a><br/>
<a href=\"http://banners.su/click.php?=6881\"><img src=\"http://banners.su/banner.php?id=20621\" alt=\"Халява!\"/></a><br/>
<a href=\"http://gado.kmx.ru\">Gado.kmx.ru</a>2007<br/>
");
@mysql_close();
?>
</p>
</card>
</wml>