Файл: stat/out.php
Строк: 44
<?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>Последние 20 выводов</b></div>';
$view = mysql_query("SELECT * FROM `cclub_money_out` WHERE `summa` >= 1 ORDER BY `id` DESC LIMIT 20");
while ($top=mysql_fetch_array($view)){
$user = $top['login'];
$cnt = $top['summa'];
$date = $top['time'];
$date = ''.date("d.m.Y",$date).'';
$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> руб.) ['.$date.']</div>';
}
include "../header/end.inc.php";
?>