<?
include_once '../sys/inc/start.php';
include_once '../sys/inc/compress.php';
include_once '../sys/inc/sess.php';
include_once '../sys/inc/home.php';
include_once '../sys/inc/settings.php';
include_once '../sys/inc/db_connect.php';
include_once '../sys/inc/ipua.php';
include_once '../sys/inc/fnc.php';
include_once '../sys/inc/adm_check.php';
include_once '../sys/inc/user.php';
?>
<title>Супер гонки</title>';
<?
if(!isset($user)){
echo 'Вы неавторизованы';
include_once '../sys/inc/tfoot.php';
exit;
}
if(mysql_result(mysql_query("SELECT COUNT(*) FROM `supergonki` WHERE `id_u`='".$user['id']."'"),0)==0)
mysql_query("INSERT INTO `supergonki`(`id_u`) VALUES('".$user['id']."')");
  $arr=mysql_fetch_array(mysql_query("SELECT * FROM `supergonki` WHERE `id_u`='".$user['id']."'"));
   $car=mysql_fetch_array(mysql_query("SELECT * FROM `super_car` WHERE `id`='".$arr['car']."'"));
if($arr['color']!='0'){
if($arr['color']==1)
$color='red_';
elseif($arr['color']==2)
$color='blue_';
elseif($arr['color']==3)
$color='green_'; 
}
?>
<link rel="stylesheet" href="style000.css" type="text/css" />
<table class="wdt black">
<tr>
<td class="yellow" align="left" style="vertical-align: top; padding-bottom: 0px">
<img src="icon/fuelico.png"><span id="FUELCNT">
<?
echo"".$arr['exp']."";
?>
</span>
</td>
<td class="orange" align="left"  style="vertical-align: top;  padding-bottom: 0px">
<img src="icon/2.png">
<?
echo"".$arr['speed']."";
?> км.ч.
</td>
<td class="white"  style="vertical-align: top;  padding-bottom: 0px">
ур.
<?
echo"".$arr['level']."";
?>
</td>
<td class="white" align="right"  style="vertical-align: top; padding-bottom: 0px">
<img src="icon/1.png">
<?
echo"".$arr['money']."";
?>
</td>
<td class="green" align="right"  style="vertical-align: top; padding-bottom: 0px">
<img src="icon/goldico.png">
<?
echo"".$user['balls']."";
?>
</td>
</tr>
<tr>
<td align="left" class="white" style="vertical-align: top; padding: 0px; height: 3px" colspan="5" height="3px">
<img src="icon/expline.png" width="35%" height="3px" style="height: 3px;">
</td>
</tr>
</table>

<table class="wdt black" style="border-bottom: 1px solid #767676;">
<tr>
<td class="white" align="left" style="padding-top: 0px;">
<a class="white" href="index.php">Гараж</a>
</td>
<td class="white" align="left" style="padding-top: 0px;">
<a class="white" href="race.php">Гонки</a>
</td>
<td class="gray" align="left" style="padding-top: 0px;">
<a class="white" href="bank.php">Дилер</a>
</td>
<td class="gray" align="right" style="padding-top: 0px;">
<a class="white" href="rate.php">Топ</a>
</td>
</tr>
</table>

<table class="wdt map">
<tr>
<td class="white" align="left" style="vertical-align: top; padding-top: 30px; padding-bottom: 15px; height: 40px">
<td class="green" align="right" style="vertical-align: top; padding-top: 20px; padding-bottom: 15px; height: 40px">
</td></tr><tr>
<td class="green" align="left" style="vertical-align: top; padding-top: 20px;">
<img src="icon/shop-ico.png"><a href="auto.php" class="green">Автосалон</a></td>
<td class="green" align="right"  style="vertical-align: bottom;">
</td>
</tr>
<tr>
<td class="white" align="left" style="vertical-align: top; height: 80px;">
<img src="icon/pimp-ico.png"><a href="index.php?tun" class="green">Тюнинг</a><br><br>
</td>

</tr>
<tr>
<td class="white" align="left" style="vertical-align: top">
<img src="icon/point-ic.png"><a href="race.php" class="green">Гонки</a>
</td>
<td class="green" align="right" style="vertical-align: top;">
</td>
</tr>
<tr>
<td class="green" align="left" style="vertical-align: top">
</td>
<td class="green" align="right" style="vertical-align: top;">
</td>
</tr>
<tr>
<td align="center" colspan="2" style="vertical-align: bottom;">
<form action="index.php" method="get">

<input type="submit" class="wdt no-btn" value="Закрыть"/>
</form>
</td>
</tr>
</table>
<?
include_once '../games/foot.php';
?>