<?php
###############################################
#  by MaZaFaKa                                #
#  ICQ: 449-559                               #
#  E-mail: Dimonnet@inbox.ru                  #
#  Потраченное время: Около 2х недель         #
###############################################


$sql = mysql_query("SELECT SUM(`hosts`), SUM(`hits`), SUM(`yday_hosts`), SUM(`yday_hits`), SUM(`month_hosts`), SUM(`month_hits`), SUM(`all_hosts`), SUM(`all_hits`), SUM(`in`), SUM(`out`), SUM(`all_in`), SUM(`all_out`) FROM `".USERS."`;");
list($hosts, $hits, $last_hosts, $last_hits, $month_hosts, $month_hits, $all_hosts, $all_hits, $in, $out, $all_in, $all_out) = mysql_fetch_row($sql);

$sqls = mysql_query("SELECT COUNT(*) FROM `".top_is_online."`;");
$online = mysql_result($sqls, 0);


print ('
<body bgcolor="#ffffff">
<table width="100%" border="0" cellspacing="0">
<tr>
<td bgcolor="#f0f0f0" width="50%">
<table border="0" cellpadding="2" cellspacing="0" width="100%">
<tr>
<td nowrap>&nbsp;<a href="/html/">главная</a> <span style="color: #999999">&rarr; версия рейтинга &rarr;</span> html | <a href="/xhtml/">xhtml</a> | <a href="/wml/">wml</a></td>
<td width="100%" align="right"><span style="color: #999999">'.Date('j M Y H:i').' GMT +3</span>&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0">
<tr>
<td bgcolor="#333366" width="50%">
<table border="0" cellpadding="3" cellspacing="0" width="100%">
<tr>
<td>&nbsp;<a href="/" class="logo">'.$_SERVER['SERVER_NAME'].'</a> &nbsp;<sup><span style="color: #cccccc; font-size: 11px">beta</span></sup></td>
<td align="center"><span style="color: #cccccc"># Рейтинг мобильных WAP сайтов</span></td>
</tr>
</table>
</td>
<td bgcolor="#ff6600" height="50%">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>&nbsp;&nbsp;<span style="color: #dddddd"><a href="/html/info/'.$id_topa.'" class="gg">Сегодня хостов | хитов</a>: &nbsp; '.intval($hosts).' | '.intval($hits).' &nbsp; <a href="/html/info/'.$id_topa.'?item=online" class="gg">Онлайн</a>: &nbsp; '.intval($online).'</span></td>
<td align="right"><a href="/html/rules/?new=1" class="w">регистрация</a>&nbsp;&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>');

?>