View file kat_starwapru/kat_starwapru/index.php

File size: 4.93Kb
<?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("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';");
$q7=@mysql_query("select count(*) from `".$px.$utable."` where `category`='servisi';");
$q3=@mysql_query("select count(*) from `".$px.$utable."` where `category`='info';");
$q2=@mysql_query("select count(*) from `".$px.$utable."` where `category`='mobily';");
$q8=@mysql_query("select count(*) from `".$px.$utable."` where `category`='obwenie';");
$q4=@mysql_query("select count(*) from `".$px.$utable."` where `category`='poleznoe';");
$q5=@mysql_query("select count(*) from `".$px.$utable."` where `category`='lichnye';");
$q9=@mysql_query("select count(*) from `".$px.$utable."` where `category`='mastery';");
$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);
$i7=@mysql_fetch_array($q7);
$i8=@mysql_fetch_array($q8);
$i9=@mysql_fetch_array($q9);
//‡ Єалў Ґ¬ ᮥ¤Ё­Ґ­ЁҐ б Ў §®©
$u = @mysql_query("select `outcounter`,`alloutcounter` from `".$px.$utable."` where id='';");
$data = @mysql_fetch_array($u);
$data['outcounter'] += 0;
$data['alloutcounter'] += 0;
@mysql_query("update `".$px.$utable."` set outcounter='".$data['outcounter']."',alloutcounter='".$data['alloutcounter']."' where id='';");

$r = @mysql_query("select * from `".$px.$utable."` where id='';");
$data = @mysql_fetch_array($r);
$counter = $data['counter']+0;
@mysql_query("update `".$px.$utable."` set outcounter='".$data['outcounter']."',alloutcounter='".$data['alloutcounter']."' where id='';");
//­ з «® wml д ©« 
$inss="";
if ($f=@file("insert.cfg")) {
 $inss.=trim($f[rand(0,count($f)-1)])."<br/>";
}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="&#x41A;&#x430;&#x442;&#x430;&#x43B;&#x43E;&#x433; &#x441;&#x430;&#x439;&#x442;&#x43E;&#x432;"><p><small><?php print "$inss"; ?>&#x420;&#x430;&#x437;&#x434;&#x435;&#x43B;&#x44B;:<br/>

<img src="log.gif" alt="->"/><a href="katalog.php?where=portaly">&#x421;&#x43E;&#x444;&#x442;<?php print "(".$i1['count(*)'].")"; ?></a><br/>

<img src="log.gif" alt="->"/><a href="katalog.php?where=info">&#x42D;&#x440;&#x43E;&#x442;&#x438;&#x43A;&#x430;<?php print "(".$i3['count(*)'].")"; ?></a><br/>

<img src="log.gif" alt="->"/><a href="katalog.php?where=servisi">&#x421;&#x435;&#x440;&#x432;&#x438;&#x441;&#x44B;<?php print "(".$i7['count(*)'].")"; ?></a><br/>

<img src="log.gif" alt="->"/><a href="katalog.php?where=mobily">&#x41F;&#x43E;&#x440;&#x442;&#x430;&#x43B;&#x44B;<?php print "(".$i2['count(*)'].")"; ?></a><br/>

<img src="log.gif" alt="->"/><a href="katalog.php?where=obwenie">&#x41E;&#x431;&#x449;&#x435;&#x43D;&#x438;&#x435;<?php print "(".$i8['count(*)'].")"; ?></a><br/>
<img src="log.gif" alt="->"/><a href="katalog.php?where=poleznoe">&#x420;&#x430;&#x437;&#x432;&#x43B;&#x435;&#x447;&#x435;&#x43D;&#x438;&#x44F;<?php print "(".$i4['count(*)'].")"; ?></a><br/>

<img src="log.gif" alt="->"/><a href="katalog.php?where=lichnye">&#x41F;&#x435;&#x440;&#x441;&#x43E;&#x43D;&#x430;&#x43B;&#x44C;&#x43D;&#x44B;&#x435;<?php print "(".$i5['count(*)'].")"; ?></a><br/>

<img src="log.gif" alt="->"/><a href="katalog.php?where=mastery">Wap-&#x43C;&#x430;&#x441;&#x442;&#x435;&#x440;&#x443;<?php print "(".$i9['count(*)'].")"; ?></a><br/>

<img src="log.gif" alt="->"/><a href="katalog.php?where=raznoe">&#x420;&#x430;&#x437;&#x43D;&#x43E;&#x435;<?php print "(".$i6['count(*)'].")"; ?></a><br/>:::::::
<br/><img src="dob.gif" alt="->"/><a href="rul.wml">&#x414;&#x43E;&#x431;&#x430;&#x432;&#x438;&#x442;&#x44C; &#x441;&#x430;&#x439;&#x442;</a><br/><img src="izm.gif" alt="->"/><a href="enter.php">&#x418;&#x437;&#x43C;&#x435;&#x43D;&#x438;&#x442;&#x44C; &#x441;&#x430;&#x439;&#x442;</a><br/>:::::::<br/><img src="go.gif" alt="->"/><?if($data['title'])
print "<u>&#x41F;&#x43E;&#x441;&#x435;&#x449;&#x435;&#x43D;&#x438;&#x439;:</u><br/>&#x441;&#x435;&#x433;&#x43E;&#x434;&#x43D;&#x44F; ".$data['outcounter'].",&#x432;&#x441;&#x435;&#x433;&#x43E; ".$data['alloutcounter']."";
@mysql_close();
?><br/>:::::::<br/><a href="/index.php">starwap.ru</a><br/>
<br/><a href="http://top.wab.ru/rating.php?id=20629"><img src="http://top.wab.ru/count.php?id=20629" alt="W@B-City"/></a>
</small></p>
</card>
</wml>