File size: 2.32Kb
<?php
//гбв ў«Ёў Ґ¬ ᮥ¤ЁҐЁҐ б Ў §®©
include "config.php";
//§ Їа®бл Є Ў §Ґ ¤ ле
$query=@mysql_query("select `ltime` from `".$px.$utable."` where ltime < '".(time()-3*24*3600)."' order by `ltime` limit 1;");
$dq=@mysql_fetch_array($query);
if($dq) {
@mysql_query("delete from `".$px.$utable."` where counter = 0;");
@mysql_query("update `".$px.$utable."` set counter=0, outcounter=0, ltime='".time()."' where 1;");
}
$i=0;
$q1=@mysql_query("select count(*) from `".$px.$utable."` where category='portaly';");
$q2=@mysql_query("select count(*) from `".$px.$utable."` where category='mobily';");
$q3=@mysql_query("select count(*) from `".$px.$utable."` where category='info';");
$q4=@mysql_query("select count(*) from `".$px.$utable."` where category='poleznoe';");
$q5=@mysql_query("select count(*) from `".$px.$utable."` where category='lichnye';");
$q6=@mysql_query("select count(*) from `".$px.$utable."` where category='raznoe';");
//Ї®¤бзҐв Є®«ЁзҐбвў бва®Є
$i1=@mysql_fetch_array($q1);
$i2=@mysql_fetch_array($q2);
$i3=@mysql_fetch_array($q3);
$i4=@mysql_fetch_array($q4);
$i5=@mysql_fetch_array($q5);
$i6=@mysql_fetch_array($q6);
//‡ Єалў Ґ¬ ᮥ¤ЁҐЁҐ б Ў §®©
@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="Љ в «®Ј">
<p><small>
<a href="katalog.php?where=portaly">Џ®ав «л<?php print "[".$i1['count(*)']."]"; ?></a><br/>
<a href="katalog.php?where=mobily">„«п ¬®ЎЁ«<?php print "[".$i2['count(*)']."]"; ?></a><br/>
<a href="katalog.php?where=info">€д®а¬ жЁп<?php print "[".$i3['count(*)']."]"; ?></a><br/>
<a href="katalog.php?where=poleznoe">Џ®«Ґ§®Ґ<?php print "[".$i4['count(*)']."]"; ?></a><br/>
<a href="katalog.php?where=lichnye">‹Ёз®Ґ<?php print "[".$i5['count(*)']."]"; ?></a><br/>
<a href="katalog.php?where=raznoe">ђ §®Ґ<?php print "[".$i6['count(*)']."]"; ?></a><br/>
<br/><a href="reg.wml">ђҐЈЁбва жЁп</a><br/>
<a href="enter.php">Џа®дЁ«м</a><br/>
<a href="<?php print $index; ?>">Mobilka.Us</a><br/>
<?php
print '<img src="http://pslink.ru/b.php?id=780" alt="PSLink"/><br/>';
?>
</small></p>
</card>
</wml>