Файл: rusalc/apusers.php
Строк: 99
<?
include_once '../sys/core/start.php';
include_once '../sys/core/compress.php';
include_once '../sys/core/sess.php';
include_once '../sys/core/home.php';
include_once '../sys/core/db_connect.php';
include_once '../sys/core/ipua.php';
include_once '../sys/core/fnc.php';
include_once '../sys/core/user.php';
include_once '../sys/inc/fnc_game.php';
include_once '../sys/inc/thead.php';
include_once '../sys/inc/uhead.php';
only_reg();
if ($user['acces']==765466656){
echo "<table class='wdt brown-header'><tr>";
echo "<td align='left'>Игроки:</td></tr></table>";
echo "<table class='wdt gray-table'>";
$max = '5';
$online_post = mysql_result(mysql_query("SELECT COUNT(*) FROM `user` "),0);
$k_page = k_page($online_post,$max);
$page = page($k_page);
$start = $max*$page-$max;
$we=mysql_query("SELECT * FROM `user` ORDER BY `id` DESC LIMIT $start, $max");
while($lev=mysql_fetch_array($we)){
$lev_car=mysql_fetch_array(mysql_query("SELECT * FROM `garage` WHERE `id_user`='".$lev['id']."' and `id`='".$lev['car_id']."'"));
echo '<table class="wdt green-table"><tbody><tr style="border-bottom:1px #252525 solid;">
<td class="white" align="center" width="20%" style="padding-right: 5px;">
<img src="/style/img/avatars/'.$lev['avatar'].'.png" alt="avatar"></td>
<td class="white" align="center" width="40%"><img class="wdt" src="/style/img/car/'.$lev_car['screen'].'.png" alt="car">
<img class="wdt" style="margin-top: -15px;" src="/style/img/images/car_shadow.png" alt="neon">';
if($lev_car['gos_bb_one'] != ''){
echo "<img width='95' src='http://club2108.ru/numgen/index.php?num=$lev_car[gos_bb_one]$lev_car[gos_number]$lev_car[gos_bb_two]$lev_car[gos_bb_free]$lev_car[gos_region]&b=$lev_car[gos_region_transit]' alt='number'><br></td>";
}
echo "<td class='white' align='left'><b class='yellow'>[$lev[id]]</b><b class='white'> $lev[nick] | Ур. $lev[level] ";
echo "<br><img src='/style/img/icons/money.png' alt='rating'><b class='yellow'>$lev[money]</b>";
echo "<br><img src='/style/img/icons/baks.png' alt='rating'><b class='green'>$lev[baks]</b>";
echo "<br><img src='/style/img/icons/hp.png' alt='rating'><b class='orange'>$lev[turnir_money]</b>";
echo "<br><img src='/style/img/icons/rating.png' alt='rating'><b class='yellow'>$lev[rating]</b>";
echo '<br><img src="/style/img/icons/garage.png" alt="Garage">';
echo '<a class="white" style="font-size: 11pt;" href="/dev/info.php?id='.$lev['id'].'">Гараж</a> | <a class="white" style="font-size: 11pt;" href="/rusalc/apuser.php?id='.$lev['id'].'">Ред.</a><br></td></tr></tbody></table>';
}
if($k_page>1) echo str('?close_cup&',$k_page,$page); // Вывод страниц
echo "<table class='wdt gray-table'><tr><td class='white td-cell' align='center' style='height:30px;'><form action ='/rusalc/apindex.php' method='post'><input class='yes-btn' type='submit' value='Назад'></form></td></tr></table>";
}
else
{
header("Location: /dev/garage.php");
}
include_once '../sys/inc/tfoot.php';
?>