Файл: stat/money_rat.php
Строк: 58
<?php
$_CONF['title']='Рейтинг по деньгам';
include '../header/config.inc.php';
include '../header/function.inc.php';
include '../header/header.inc.php';
include '../header/connect.inc.php';
include '../header/click-club.class.php';
If (!isset($_GET['log'])) define("anybody","true");
include '../header/enter.inc.php';
include '../ban.php';
If ($_enter){mysql_query("update `".prefix."users` set `mesto`='Смотрит у кого больше денег', `online`='".time()."' where `id` = '".$_USER['id']."';");}
else {echo '<div class="menuindex"><font color="#FF0000"><b>Вы не авторизированы!</b></font><br/> [ <a href="/enter.php?mode=enter">Войти</a> | <a href="/reg.php">Регистрация</a>]</div>';}
echo '<div class="downsw"><b>Рейтинг по деньгам</b></div>';
//$result=mysql_query("select nick, money from users where money>0 order by money desc limit ".(($page-1)*num_best_on_page).",".(num_best_on_page+1).";");
$start = mysql_real_escape_string($_GET[start]);
if (empty($start))
$start=1;
$view = mysql_query("SELECT * FROM `users` WHERE `money`>0 ORDER BY `money` DESC ");
while ($top=mysql_fetch_array($view)){
$user = $top['nick'];
$cnt = $top['money'];
$i++;
if ($i>=$start and $i<=($start+14))
echo '<div class="menuindex"><b>['.$i.']</b> <a href="/system/info.php?user='.$user.'"><b>'.$user.'</b></a> ('.$cnt.')</div>';
}
echo'<div class="menuindexom">Участников: '.$i.' </div>';
$start=$start+15;
if ($i>15){
echo'<div class="menuindexom"><a href="'.$_zapros.'start='.$start.'">Дaлee »</a></div>';
}
include "../header/end.inc.php";
?>