Файл: gonki.us/user.php
Строк: 66
<?php
require_once('system/incfiles/core.php');
$title='View User';
ini_set('error_reporting', E_ALL);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
require_once(ROOT.'system/incfiles/header.php');
$query=$db->query('SELECT * FROM `user` WHERE `id` = "'.abs(intval($_GET['id'])).'"');
if ($query->num_rows == 0)
{
echo '<div class="error">Такого юзера нет</div>';
require_once(ROOT.'system/incfiles/footer.php');
exit;
}
$row=$query->fetch_assoc();
echo '<div class="razd4" style="color: #ccc;">
Зарегистрирован: '.ustime($row['reg_time']).'<br>
Последняя активность: '.ustime($row['online']).'<br>
Никнейм: '.user($row['id']).'
<hr></hr></div>';
echo '<div class="razd4">Характеристики пользователя</div><div class="razdel"></div><div class="razd44">
<table style="width:100%" cellspacing="0" cellpadding="0"><tr>
<td><center><img src="/system/design/ico/star.png" alt="*" style="max-width:16px; max-height:16px;"/><font color="gray">'.$row['lvl'].'</font></center></td>';
if($user['auto'] == 0) echo '<td><center><img src="/system/design/ico/ls.png" alt="*" style="max-width:16px; max-height:16px;"/> <font color="darkorange">'.$user['ls'].'л.с.</font></center></td>';
else echo '<td><center><img src="/system/design/ico/ls.png" alt="*" style="max-width:16px; max-height:16px;"/> <font color="darkorange">'.($usauto['ls']+$user['ls']).'л.с.</font></center></td>';
echo '<td><center><img src="/system/design/ico/money.png" alt="*" style="max-width:15px; max-height:15px;"/> <font color="white">'.$row['money'].'</font></center></td>
<td><center><img src="/system/design/ico/dollars.png" alt="*" style="max-width:18px; max-height:18px;"/>
<font color="darkgreen">'.$row['dollars'].'</font></center></td>
</tr></table>
<div class="rating">
<span class="fl">'.$proc_lvl.'/100</span>
<div class="ratingz" style="width:'.$proc_lvl.'%; max-width:100%;">
</div></div>
<div class="rating">
<span class="fl">'.$row['benzin'].'/'.$row['bak'].' </span>
<div class="ratingg" style="width:'.$user['benzin'].'%; max-width:100%;">
</div></div></div>';
require_once(ROOT.'system/incfiles/footer.php');