Просмотр файла clikus/ref_rat.php

Размер файла: 1.17Kb
<?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/online.php');
include_once ('config/ban.php');

If (!isset($_GET['log'])) define("anybody","true");
include_once ('config/panel.php');

$start= (int) ($_GET[start]);
$n=mysql_query("SELECT `pid` as login,count(`id`) as `kol`
								  FROM `".prefix."users` WHERE `pid`<>''
								  GROUP by `pid` ORDER by count(`id`) DESC LIMIT $start,15");


$num = mysql_fetch_array(mysql_query("SELECT COUNT(`id`) FROM `".prefix."users`"));

echo '<div class="header_rek">Рейтинг по рефералам</div>';
print 'Логин [рефералов]:<br/>---<br/>';



if (empty($start))
$start=1;
$i = 0;
while($m=mysql_fetch_array($n))
{
print ($start+$i).") $m[login] [$m[kol]] <br />";
$i++;
}

print '---<br />
участников: '.$num[0].'
<br />';


$start=$start+15;

if ($num[0]>$start)

print "<a href='ref_rat.php?start=$start'>далее ....</a>";

include_once ('config/end.php');
//make for clikus.ru
//Admin icq 915317
?>