File size: 1.12Kb
<?php
$title="Лучшие сегодня\n";
include_once ('config/ini.php');
include_once ('config/function.php');
include_once ('config/header.php');
include_once ('config/connect.php');
include_once ('config/click-club.class.php');
include_once ('config/ban.php');
include_once ('config/online.php');
If (!isset($_GET['log'])) define("anybody","true");
include_once ('config/panel.php');
if (empty($_GET['start']))
$start=0;
elseif($_GET['start'] > 0)
$start = (int) $_GET['start'];
$Q = mysql_query("SELECT `who`,count(`to`) as val FROM `".prefix."clicks` GROUP by `who` order by count(`to`) DESC limit $start,15");
echo '<div class="header_rek">Лучшие сегодня</div>
Логин [кликов]:<br/>---<br/>';
$i = $start;
while ($r=mysql_fetch_array($Q))
{
$i++;
print "$i) $r[who] [$r[val]] <br />";
}
$Q = mysql_num_rows(mysql_query("SELECT `id` as val FROM `".prefix."clicks` GROUP by `who`"));
echo "---<br />
Участников: $Q
<br />";
$start=$start+15;
if ($Q>$start)
print "<a href='day_rat.php?start=$start'>далее ....</a>";
include_once ('config/end.php');
//make for clikus.ru
//Admin icq 915317
?>