Вход Регистрация
Файл: dev/info.php
Строк: 259
<?
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();





if(isset(
$_GET['id']) && intval($_GET['id'])!=NULL && mysql_result(mysql_query("SELECT COUNT(*) FROM user WHERE id = ".intval($_GET['id']).""),0)!=0)
{
$ank=mysql_fetch_array(mysql_query("SELECT * FROM `user` WHERE `id`='".intval($_GET['id'])."'"));
$select_user_taxist=mysql_fetch_array(mysql_query("SELECT * FROM `taxi_user` WHERE `id_user`='".$ank['id']."'"));
$select_user_taxi=mysql_fetch_array(mysql_query("SELECT * FROM `taxi` WHERE `id`='".$select_user_taxist['id_taxi']."'"));
$likes_counts mysql_num_rows(mysql_query("SELECT * FROM `like_garage` WHERE `id_user`='".intval($_GET['id'])."'"));
$dislikes_counts mysql_num_rows(mysql_query("SELECT * FROM `dislike_garage` WHERE `id_user`='".intval($_GET['id'])."'"));
echo 
"<table class='wdt gray-table white'>";
echo 
"<tr><td align='left' style='vertical-align: top;'>";
echo 
"<table class='wdt'>";

echo 
"<tr><td style='padding: 0px; padding-bottom: 3px;'>Игрок: $ank[nick]</td></tr>";
echo 
"<tr><td style='padding: 0px; padding-bottom: 3px;'>Уровень: <b>$ank[level]</b></td></tr>";
echo 
"<tr><td style='padding: 0px; padding-bottom: 3px;'>Рейтинг: <img src='/style/img/icons/rating.png' alt='mail'><b class = 'yellow'>".m_format($ank['rating'])."</b></td></tr>";
if(
$select_user_taxi)
{
echo 
"<tr><td style='padding: 0px; padding-bottom: 3px;'>ID такси: <b class = 'yellow'>$select_user_taxi[id]</b></td></tr>";
}
echo 
"<tr><td style='padding: 0px; padding-bottom: 3px;'><img src='/style/img/icons/like.png'>: $likes_counts</td></tr>";
if (
mysql_result(mysql_query("SELECT COUNT(*) FROM `ban` WHERE `id_user` = '$ank[id]' AND `time` > '$time'"), 0)!=0)
{
echo 
"<tr><td style='padding: 0px; padding-bottom: 3px;'><b class = 'red'>Пользователь забанен!</b></td></tr>";
}

echo 
"</td></tr></table></td>";



echo 
"<td align='right' style='vertical-align: top; width: 10%'><img alt='logo' src='/style/img/avatars/$ank[avatar].png' alt='avatar'></td></tr></table>";

if(
$user['acces']>&& $user['id']!=$ank['id']){
echo 
"<table class='wdt brown-header'><tr>";
echo 
"<td align='left'>Аккаунты с одним IP:</td></tr></table>";
echo 
"<table class='wdt gray-table'>";
$we=mysql_query("SELECT * FROM `user` WHERE `ip` = '".$ank['ip']."' ORDER BY  `id` DESC");
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">'
;
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">'.$lev['nick'].'<br><img src="/style/img/icons/rating.png" alt="rating">
<b class="yellow">'
.$lev['rating'].'</b><br><img src="/style/img/icons/power.png"><b class="orange">'.$lev_car['power'].' л.с.</b><br>
<img src="/style/img/icons/garage.png" alt="Garage">
<a class="white" style="font-size: 11pt;" href="/dev/info.php?id='
.$lev['id'].'">Гараж</a><br></td></tr></tbody></table>';
}

echo 
"<table class='wdt brown-header'><tr>";
echo 
"<td align='left'>Админ панель:</td></tr></table>";
echo 
"<table class='wdt gray-table'>";
echo 
"<td width = '33%'><form action='/01019147adm/apuser.php?id=".$ank['id']."' method='post'><input class='race-btn' type='submit' value='Изменить'></form></td>";
echo 
"<td width = '33%'><form action='/01019147adm/apban.php?id=".$ank['id']."' method='post'><input class='race-btn' type='submit' value='Бан'></form></td>";
echo 
"<td width = '33%'><form action='/01019147adm/apuser.php?info=".$ank['id']."' method='post'><input class='race-btn' type='submit' value='Инфо'></form></td>";
echo 
"</tr></table>";
}
echo 
"<table class='wdt brown-header'><tr>";
echo 
"<td align='left'>Меню:</td></tr></table>";
echo 
"<table class='wdt gray-table'>";
echo 
"<td width = '33%'><form action='/dev/messages.php?id=".$ank['id']."' method='post'><input class='race-btn' type='submit' value='Написать'></form></td>";
echo 
"<td width = '33%'><form action='/dev/ach.php?id=".$ank['id']."' method='post'><input class='yes-btn' type='submit' value='Достижения'></form></td>";
echo 
"<td width = '33%'><form action='/dev/cupsuser.php?id=".$ank['id']."' method='post'><input class='yes-btn' type='submit' value='Кубки'></form></td>";
echo 
"</tr></table>";
echo 
"<table class='wdt brown-header'><tr>";
echo 
"<td align='left'>Гараж гонщика:</td></tr></table>";

$q=mysql_query("SELECT * FROM `garage` WHERE `id_user` = '".$ank['id']."' ORDER BY  `power` DESC");
while(
$post=mysql_fetch_array($q)){
$stock=$post['stock_power']+1061;
$settuning=$post['power'];

echo 
"<table class='wdt gray-table'><tr>";
echo 
"<td class='white td-cell' align='left' colspan='3'><img class='wdt' src='/style/img/car/$post[screen].png' alt=''>";
if(
$post['neon']!=0){
echo 
"<img class='wdt' style='margin-top: -15px;' src='/style/img/images/neon/$post[neon].png' alt=''>";
}
else
{
echo 
"<img class='wdt' style='margin-top: -15px;' src='/style/img/images/car_shadow.png' alt=''>";
}
################## LIKES
$likes_count mysql_num_rows(mysql_query("SELECT * FROM `like_garage` WHERE `id_user`='".intval($_GET['id'])."' AND `id_car`='$post[id]'"));
$addd=mysql_fetch_array(mysql_query("SELECT * FROM `like_garage` WHERE `id_user`='".intval($_GET['id'])."' AND `id_car`='$post[id]' AND `id_kto`='".$user['id']."'"));
$like = @$_GET['like'];
if(
$like == $post['id']){
if(
mysql_result(mysql_query("SELECT COUNT(*) FROM `like_garage` WHERE `id_kto` = '".$user['id']."' AND `id_car` = '".$post['id']."' AND `id_user` = '".intval($_GET['id'])."' LIMIT 1"),0)!=0)$err[]='';
if (!isset(
$err))
{
mysql_query("INSERT INTO `like_garage` (`id_kto`,`id_car`,`id_user`) values('".$user['id']."','".$post['id']."','".intval($_GET['id'])."')",$db);
}
header("Location:/dev/info.php?id=".intval($_GET['id'])."");
}
if(
mysql_result(mysql_query("SELECT COUNT(*) FROM `like_garage` WHERE `id_kto` = '".$user['id']."' AND `id_car` = '".$post['id']."' AND `id_user` = '".intval($_GET['id'])."' LIMIT 1"),0)!=0){
echo 
"<div class='white' align='center'><img src='/style/img/icons/like.png'> $likes_count </div>";
}else{
echo 
"<div class='white' align='center'><a href='/dev/info.php?id=".intval($_GET['id'])."&like=".$post['id']."'><img src='/style/img/icons/nolike.png'></a> $likes_count </div> ";
}

echo 
"</td></tr><tr><td class='white' align='left' width='50%'>";
if(
$user['acces']==5){
echo 
"<form action='/01019147adm/apedit_car_user.php?id=".$post['id']."&id_user=".$ank['id']."' method='post'><input class='yes-btn' type='submit' value='Редактировать'></form>";
}
echo 
"<b class='class-$post[class] bold-text'>$post[class]</b> <b>$post[name]</b><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></td>";

echo 
"<td class='white' width='120px' align='right'>";


if(
$post['gos_region']>0)        
{
if(
$post['gos_region_transit']>0)
{
if(
$post['gos_region']<10)        
{
echo 
"<img width='120' src='http://club2108.ru/numgen/index.php?num=$post[gos_bb_one]$post[gos_number]$post[gos_bb_two]$post[gos_bb_free]$post[gos_region]&b=$post[gos_region_transit]' alt='number'><br/>";
}
else
{
echo 
"<img width='120' src='http://club2108.ru/numgen/index.php?num=$post[gos_bb_one]$post[gos_number]$post[gos_bb_two]$post[gos_bb_free]$post[gos_region]&b=$post[gos_region_transit]' alt='number'><br/>";
}
}
else
{
if(
$post['gos_region']<10)        
{
echo 
"<img width='120' src='http://club2108.ru/numgen/index.php?num=$post[gos_bb_one]$post[gos_number]$post[gos_bb_two]$post[gos_bb_free]$post[gos_region]&b=$post[gos_region_transit]' alt='number'><br/>";
}
else
{
echo 
"<img width='120' src='http://club2108.ru/numgen/index.php?num=$post[gos_bb_one]$post[gos_number]$post[gos_bb_two]$post[gos_bb_free]$post[gos_region]&b=$post[gos_region_transit]' alt='number'><br/>";
}
}
}

echo 
"</td></table>";
}

echo 
"<table class='wdt gray-table'>";
echo 
"<tr><td class='white td-cell' align='center' style='height:30px;'><form action ='/dev/garage.php' method='post'><input class='no-btn' type='submit' value='Назад'></form></td></tr></table>";

include_once 
'../sys/inc/tfoot.php';
}
{
header("Location: /dev/garage.php");
}
?>
Онлайн: 0
Реклама