View file exit.php

File size: 1.5Kb
<?
$q = @mysql_query("select * from `urls` where `id`='1' limit 1;");
$urls_bd = @mysql_fetch_array($q);
$sayt_om = $urls_bd['sayt_om']; // Опера Мини
$sayt_operators = $urls_bd['sayt_operators']; // Операторы
$sayt_pc = $urls_bd['sayt_pc']; // Компы
$sayt_more = $urls_bd['sayt_more']; // Другие

$q = mysql_query("select * from `adm_stats` where `id`='1';");
$row=mysql_fetch_array($q);
if ($oper=='32') // Опера Мини
{
 $sayt=$sayt_om;
 mysql_query("UPDATE `adm_stats` SET `om`='".($row['om']+1)."' where `id`='1';");
}
elseif ($oper!=='0' and $oper!=='32' and $oper!=='46') // Операторы
{
 $sayt=$sayt_operators;
 mysql_query("UPDATE `adm_stats` SET `op`='".($row['op']+1)."' where `id`='1';");
}
elseif ($oper=='46') // Компы
{
 $sayt=$sayt_pc;
 mysql_query("UPDATE `adm_stats` SET `pc`='".($row['pc']+1)."' where `id`='1';");
}
else // Другие
{
 $sayt=$sayt_more;
 mysql_query("UPDATE `adm_stats` SET `more`='".($row['more']+1)."' where `id`='1';");
}

header("Content-type: text/vnd.wap.wml; charset=utf-8");
header("Cache-Control: no-cache");
echo '<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN" "http://www.wapforum.org/DTD/wml1.2.dtd">
<wml>
<head>
<meta http-equiv="Cache-Control" content="no-cache" forua="true"/>
</head>
<card id="index" title=" " ontimer="'.$sayt.'">
<timer value="'.$clicktime.'"/>
<p align="left">
<small>
<a href="'.$sayt.'"></a>
</small>
</p>
<p align="center">
<small>
</small>
</p>
</card>
</wml>';
?>