Файл: stat/donate.php
Строк: 48
<?php
$_CONF['title']='Топ 20 спонсоров клуба';
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>';
$view = mysql_query("SELECT * FROM `cclub_money_in` WHERE `summa` >= 1 ORDER BY `id` DESC LIMIT 20");
while ($top=mysql_fetch_array($view)){
$user = $top['login'];
$cnt = $top['summa'];
$i++;
echo '<div class="menuindex"><b>['.$i.']</b> <a href="/system/info.php?user='.$user.'"><b>'.$user.'</b></a> (<font color=#99FF99><b>'.$cnt.'</font></b> руб.) [<b>Бонус</b> <font color=#00FF00>'.$cnt.'0</font> кредитов]</div>';
}
include "../header/end.inc.php";
?>