File size: 3.29Kb
<?php
/*Скрипт удачно спизженый у еХр (ЕбланХуёвоРазьёбаный) лошите таких опущеных ебланов! VISAVI RulezZz*/
include "config.php";
if(isset($id)&&isset($in)){
$id=intval($id);
$in=coding_cool($in);
$ipss = getenv('REMOTE_ADDR');
$q=mysql_query("select * from `cool_pro` where id='$id' and locate(lower('$ipss'),lower(ip))>0;");
$rows=mysql_num_rows($q);
$q=mysql_query("select * from `cool_pro` where id='$id' and `in`='$in';");
$rowb=mysql_num_rows($q);
if($rows>1&&$rowb>1){
$q = @mysql_query("select * from `cool_site` where id='$id';");
$data = @mysql_fetch_array($q);
$counter = $data['counter']+1;
@mysql_query("update `cool_site` set counter='$counter' where id='$id';");
@mysql_query("update `cool_pro` set `in`='5' where `in`='$in';");
$coolip=$ipss.".555";
@mysql_query("delete from `cool_pro` where ip='$coolip';");}}
header ("Content-type:text/vnd.wap.wml; charset=utf-8");
$content = file("content.txt");
$contentrandom = rand(0, sizeof($content)-1);
$contentrandom2 = rand(0, sizeof($content)-1);
$contentrandom3 = rand(0, sizeof($content)-1);
while($contentrandom == $contentrandom2){$contentrandom2 = rand(0, sizeof($content)-1);}
while($contentrandom == $contentrandom3||$contentrandom2 == $contentrandom3){$contentrandom3 = rand(0, sizeof($content)-1);}
$contcool = "$content[$contentrandom]$content[$contentrandom2]$content[$contentrandom3]";
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 align=\"left\">
<small>$contcool<br/>
<a href=\"cat.php\">Лучшие сайты</a><br/>
</small></p><p><small>";
$countiz=0;
$countv=0;
$pri=mysql_query("select * from `cool_site` where activ='1'");
while($data=mysql_fetch_array($pri)){
$countiz=$countiz+$data['outcounter'];
$countv=$countv+$data['counter'];}
$q=mysql_query("select * from `cool_raz` where 1 order by por asc");
while($data = @mysql_fetch_array($q)){
$catid=$data['id'];
if($active_site==1){
$qs=@mysql_query("select count(*) from `cool_site` where category='$catid' and activ='1' and counter>'0';");}else{
$qs=@mysql_query("select count(*) from `cool_site` where category='$catid' and activ='1';");}
$i=@mysql_fetch_array($qs);
print "<a href=\"cat.php?c=$catid\">".$data['text']."</a> (".$i['count(*)'].")<br/>";
unset($catid);unset($qs);unset($i);}
print"</small></p><p align=\"left\"><small><br/>
<small><b>Сегодня переходов:</b><br/>
Из каталога: <b>$countiz</b><br/>
В каталог: <b>$countv</b><br/></small>
<a href=\"add.php\">*Добавить сайт</a><br/>
<a href=\"edit.php\">*Изменить сайт</a><br/>
<a href=\"search.php\">*Поиск в каталоге</a><br/>
-----<br/>
<a href=\"http://bestwap.us\">ПИДА.РУ</a><br/>
<a href=\"http://wap1k.wen.ru\">Wap1k.WeN.Ru</a><br/>
<a href=\"http://www.erokat.net/in/?id=15\"><img src=\"http://banners.su/banner.php?id=16029\" alt=\"banners\"/></a><br/>
<a href=\"http://www.erokat.net/in/?id=15\"><img src=\"http://top.ПИДА.РУ/count.php?uid=6\" alt=\"BesT\"/></a></small>
</p>
</card>
</wml>";
?>