Файл: dev/online.php
Строк: 98
<?php
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/settings.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();
echo "<table class='wdt brown-header'><tr>";
echo "<td align='left'>Онлайн игроки:</td></tr></table>";
echo "<table class='wdt gray-table'>";
$q=mysql_query("SELECT * FROM `user` WHERE `date_last` > '".(time()-600)."'");
while($post=mysql_fetch_array($q)){
$post_user=mysql_fetch_array(mysql_query("SELECT * FROM `taxi_user` WHERE `id_user` = '".$post['id']."'"));
$post_user_taxi=mysql_fetch_array(mysql_query("SELECT * FROM `taxi` WHERE `id` = '".$post_user['id_taxi']."'"));
$garage=mysql_fetch_array(mysql_query("SELECT * FROM `garage` WHERE `id` = '$post[car_id]'"));
$stock=$garage['stock_power']+1061;
$settuning=$garage['power'];
if($user['id']==$post['id'])
{
$ss=1;
}
else
{
$ss=0;
}
if($post['nitro_bonus']>0){
$post_n2o_power=$post['nitro_bonus'];
}
else
{
$post_n2o_power=0;
}
if($post_user_taxi['bonus_power']>0){
$post_taxi_bonus_power=$post_user_taxi['bonus_power'];
}
else
{
$post_taxi_bonus_power=0;
}
$post_power=$garage['power']+$post_n2o_power+$post_taxi_bonus_power;
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/'.$post['avatar'].'.png" alt="avatar"></td>
<td class="white" align="center" width="40%"><img class="wdt" src="/style/img/car/'.$garage['screen'].'.png" alt="car">
<img class="wdt" style="margin-top: -15px;" src="/style/img/images/car_shadow.png" alt="neon">';
if($garage['gos_bb_one'] != ''){
echo "<img width='95' src='http://club2108.ru/numgen/index.php?num=$garage[gos_bb_one]$garage[gos_number]$garage[gos_bb_two]$garage[gos_bb_free]$garage[gos_region]&b=$garage[gos_region_transit]' alt='number'><br></td>";
}
echo '<td class="white" align="left"><b class="white">'.$post['nick'].' |<b class="white"> Ур. '.$post['level'].'<br>';
if($settuning >= $stock)
{
echo "<img src='/style/img/icons/fire.png'>";
}
else
{
echo "<img src='/style/img/icons/power.png'>";
}
echo "<b class='orange'>$post_power л.с.</b>";
echo '<br><img src="/style/img/icons/rating.png" alt="rating">
<b class="yellow">'.$post['rating'].'</b><br>
<img src="/style/img/icons/garage.png" alt="Garage">
<a class="white" style="font-size: 11pt;" href="/dev/info.php?id='.$post['id'].'">Гараж</a><br></td></tr></tbody></table>';
}
echo "<table class='wdt gray-table'><tr><form action ='../dev/bar.php' method='post'><input class='yes-btn' type='submit' value='Назад'></form></td></tr></table>";
include_once '../sys/inc/tfoot.php';
?>