Вход Регистрация
Файл: dev/tuning.php
Строк: 359
<?
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['clear_tuning']) && $mycar['neon']!=&& $user['baks']>=1)
{
mysql_query("UPDATE `user` SET `baks` = '".($user['baks']-1)."' WHERE `id` = '".$user['id']."' LIMIT 1");
mysql_query("UPDATE `garage` SET `neon` = '0' WHERE `id` = '".$mycar['id']."'");
header("Location: /dev/tuning.php");
}



/* Установка неона */

if(isset($_GET['view']) && intval($_GET['view']>='1' && $_GET['view']<='8')  && intval($_GET['view']!=$mycar['neon']))
{
$view=intval($_GET['view']);
$baks_neon=5;

if(isset(
$_GET['ok']))
{
if(
$user['baks']>=$baks_neon)        
{
mysql_query("UPDATE `user` SET `baks` = '".($user['baks']-$baks_neon)."' WHERE `id` = '".$user['id']."' LIMIT 1");
mysql_query("UPDATE `garage` SET `neon` = '$view' WHERE `id` = '".$mycar['id']."'");
header("Location: /dev/tuning.php");
}
else
{
header("Location: /dev/tuning.php");
}
}


echo 
"<table class='wdt msg-table'>";
echo 
"<tr><td align='left' style='vertical-align: top; width: 10%'><img src='/style/img/images/face-tuning.png'></td>";
echo 
"<td align='left' style='vertical-align: top'>По моему этот неон отлично смотрится!</td></tr></table></td></tr></table>";
echo 
"<table class='wdt green-header'><tr><td align='left'>Мастерская:</td></tr></table>";
echo 
"<table class='wdt garage-table'><tr><td align='right' style='padding-top: 4px; padding-left: 10px'>";
echo 
"<table class='wdt'>";
echo 
"<tr><td align='center' style='padding-bottom: 0px; padding-left: 10px; padding-right: 10px;' valign='bottom'></br><img class='wdt' src='/style/img/car/$mycar[screen].png' alt='car'>";
echo 
"<img class='wdt' style='margin-top: -19px;' src='/style/img/images/neon/$view.png' alt='t'>";
echo 
"</td></tr></table></td></tr></table>";

echo 
"<table class='wdt brown-header'>";
echo 
"<tr><td align='left'>Подтверждение:</td></tr></table>";

echo 
"<table class='wdt gray-table'>";
echo 
"<tr><td align='center' width = '50%'>";
echo 
"<form action='/dev/tuning.php?neon' method='post'><input class='no-btn' type='submit' value='Отказаться'</input></form></td>";
echo 
"<td align='center'>";
if(
$user['baks']>=$baks_neon)        
{
echo 
"<form action='/dev/tuning.php?view=".$view."&ok' method='post'><input class='yes-btn' type='submit' value='Установить'></form>";
}
else
{
echo 
"<input class='inactive-btn' type='submit' value='Установить'>";
}
echo 
"</td></tr></table>";

include_once 
'../sys/inc/tfoot.php';
}




echo 
"<table class='wdt msg-table'>";
echo 
"<tr><td align='left' style='vertical-align: top; width: 10%'><img src='/style/img/images/face-tuning.png'></td>";
echo 
"<td align='left' style='vertical-align: top'>Здесь ты можешь затюнинговать свою машину.</td></tr></table></td></tr></table>";

if(
$mycar['neon']!=0)
{
echo 
"<table class='wdt green-header'><tr><td align='left'>Очистка тюнинга:</td></tr></table>";
echo 
"<table class='wdt gray-table'>";
echo 
"<tr><td class='white td-cell' align='center' style='height:30px;'>";
if(
$user['baks']>=1){
echo 
"<form action ='/dev/tuning.php?clear_tuning' method='post'><input class='no-btn' type='submit' value='Очистить за 1 бакс'></form>";
}
else
{
echo 
"<input class='inactive-btn' type='submit' value='Очистить за 1 бакс'>";
}
echo 
"</td></tr></table>";    
}

echo 
"<table class='wdt green-header'><tr><td align='left'>Мастерская:</td></tr></table>";
echo 
"<table class='wdt garage-table'><tr><td align='right' style='padding-top: 4px; padding-left: 10px'>";
echo 
"<table class='wdt'>";
echo 
"<tr><td align='center' style='padding-bottom: 0px; padding-left: 10px; padding-right: 10px;' valign='bottom'></br><img class='wdt' src='/style/img/car/$mycar[screen].png' alt='car'>";
if(
$mycar['neon']!=0){
echo 
"<img class='wdt' style='margin-top: -19px;' src='/style/img/images/neon/$mycar[neon].png' alt='t'>";
}
else
{
echo 
"<img class='wdt' style='margin-top: -19px;' src='/style/img/images/car_shadow.png' alt='t'>";
}
echo 
"</td></tr></table></td></tr></table>";

echo 
"<table class='wdt brown-header'><tr><td align='left'>Неоновая подсветка:</td></tr></table>";


echo 
"<table class='wdt gray-table'>";
echo 
"<tr><td class='white td-cell' align='left' style='width: 20%; height: 40px'><img src='http://stracingstat1.stracing.mobi/race/img/tuning/neon/red.png' class='wdt'/></td>";
echo 
"<td class='td-cell' style='height: 40px; vertical-align: top'><img src='http://stracingstat1.stracing.mobi/race/img/gold-ico.png' alt='gold'>";
if(
$user['baks']>=5){
echo 
"<b class='green'>5</b>";
}
else
{
echo 
"<b class='red'>5</b>";
}
echo 
"</td><td class='td-cell' style='height: 40px; width: 50%'>";

if(
$user['baks']>=&& $mycar['neon']!=1)
{
echo 
"<form action ='/dev/tuning.php?view=1' method='post'><input class='upgrade-btn' type='submit' value='Установить'></form></td></tr>";
}
else
{
echo 
"<input class='upgrade-inactive-btn' type='submit' value='Установить'></td></tr>";
}

echo 
"<tr><td class='white td-cell' align='left' style='width: 20%; height: 40px'><img src='http://stracingstat1.stracing.mobi/race/img/tuning/neon/green.png' class='wdt'/></td>";
echo 
"<td class='td-cell' style='height: 40px; vertical-align: top'><img src='http://stracingstat1.stracing.mobi/race/img/gold-ico.png' alt='gold'>";
if(
$user['baks']>=5){
echo 
"<b class='green'>5</b>";
}
else
{
echo 
"<b class='red'>5</b>";
}
echo 
"</td><td class='td-cell' style='height: 40px; width: 50%'>";

if(
$user['baks']>=&& $mycar['neon']!=2){
echo 
"<form action ='/dev/tuning.php?view=2' method='post'><input class='upgrade-btn' type='submit' value='Установить'></form></td></tr>";
}
else
{
echo 
"<input class='upgrade-inactive-btn' type='submit' value='Установить'></td></tr>";
}

echo 
"<tr><td class='white td-cell' align='left' style='width: 20%; height: 40px'><img src='http://stracingstat1.stracing.mobi/race/img/tuning/neon/yellow.png' class='wdt'/></td>";
echo 
"<td class='td-cell' style='height: 40px; vertical-align: top'><img src='http://stracingstat1.stracing.mobi/race/img/gold-ico.png' alt='gold'>";
if(
$user['baks']>=5){
echo 
"<b class='green'>5</b>";
}
else
{
echo 
"<b class='red'>5</b>";
}
echo 
"</td><td class='td-cell' style='height: 40px; width: 50%'>";

if(
$user['baks']>=&& $mycar['neon']!=3){
echo 
"<form action ='/dev/tuning.php?view=3' method='post'><input class='upgrade-btn' type='submit' value='Установить'></form></td></tr>";
}
else
{
echo 
"<input class='upgrade-inactive-btn' type='submit' value='Установить'></td></tr>";
}

echo 
"<tr><td class='white td-cell' align='left' style='width: 20%; height: 40px'><img src='http://stracingstat1.stracing.mobi/race/img/tuning/neon/blue.png' class='wdt'/></td>";
echo 
"<td class='td-cell' style='height: 40px; vertical-align: top'><img src='http://stracingstat1.stracing.mobi/race/img/gold-ico.png' alt='gold'>";
if(
$user['baks']>=5){
echo 
"<b class='green'>5</b>";
}
else
{
echo 
"<b class='red'>5</b>";
}
echo 
"</td><td class='td-cell' style='height: 40px; width: 50%'>";

if(
$user['baks']>=&& $mycar['neon']!=4){
echo 
"<form action ='/dev/tuning.php?view=4' method='post'><input class='upgrade-btn' type='submit' value='Установить'></form></td></tr>";
}
else
{
echo 
"<input class='upgrade-inactive-btn' type='submit' value='Установить'></td></tr>";
}

echo 
"<tr><td class='white td-cell' align='left' style='width: 20%; height: 40px'><img src='http://stracingstat1.stracing.mobi/race/img/tuning/neon/orange.png' class='wdt'/></td>";
echo 
"<td class='td-cell' style='height: 40px; vertical-align: top'><img src='http://stracingstat1.stracing.mobi/race/img/gold-ico.png' alt='gold'>";
if(
$user['baks']>=5){
echo 
"<b class='green'>5</b>";
}
else
{
echo 
"<b class='red'>5</b>";
}
echo 
"</td><td class='td-cell' style='height: 40px; width: 50%'>";

if(
$user['baks']>=&& $mycar['neon']!=5){
echo 
"<form action ='/dev/tuning.php?view=5' method='post'><input class='upgrade-btn' type='submit' value='Установить'></form></td></tr>";
}
else
{
echo 
"<input class='upgrade-inactive-btn' type='submit' value='Установить'></td></tr>";
}

echo 
"<tr><td class='white td-cell' align='left' style='width: 20%; height: 40px'><img src='http://stracingstat1.stracing.mobi/race/img/tuning/neon/pink.png' class='wdt'/></td>";
echo 
"<td class='td-cell' style='height: 40px; vertical-align: top'><img src='http://stracingstat1.stracing.mobi/race/img/gold-ico.png' alt='gold'>";
if(
$user['baks']>=5){
echo 
"<b class='green'>5</b>";
}
else
{
echo 
"<b class='red'>5</b>";
}
echo 
"</td><td class='td-cell' style='height: 40px; width: 50%'>";

if(
$user['baks']>=&& $mycar['neon']!=6){
echo 
"<form action ='/dev/tuning.php?view=6' method='post'><input class='upgrade-btn' type='submit' value='Установить'></form></td></tr>";
}
else
{
echo 
"<input class='upgrade-inactive-btn' type='submit' value='Установить'></td></tr>";
}

echo 
"<tr><td class='white td-cell' align='left' style='width: 20%; height: 40px'><img src='http://stracingstat1.stracing.mobi/race/img/tuning/neon/purple.png' class='wdt'/></td>";
echo 
"<td class='td-cell' style='height: 40px; vertical-align: top'><img src='http://stracingstat1.stracing.mobi/race/img/gold-ico.png' alt='gold'>";
if(
$user['baks']>=5){
echo 
"<b class='green'>5</b>";
}
else
{
echo 
"<b class='red'>5</b>";
}
echo 
"</td><td class='td-cell' style='height: 40px; width: 50%'>";

if(
$user['baks']>=&& $mycar['neon']!=7){
echo 
"<form action ='/dev/tuning.php?view=7' method='post'><input class='upgrade-btn' type='submit' value='Установить'></form></td></tr>";
}
else
{
echo 
"<input class='upgrade-inactive-btn' type='submit' value='Установить'></td></tr>";
}

echo 
"<tr><td class='white td-cell' align='left' style='width: 20%; height: 40px'><img src='http://stracingstat1.stracing.mobi/race/img/tuning/neon/white.png' class='wdt'/></td>";
echo 
"<td class='td-cell' style='height: 40px; vertical-align: top'><img src='http://stracingstat1.stracing.mobi/race/img/gold-ico.png' alt='gold'>";
if(
$user['baks']>=5){
echo 
"<b class='green'>5</b>";
}
else
{
echo 
"<b class='red'>5</b>";
}
echo 
"</td><td class='td-cell' style='height: 40px; width: 50%'>";

if(
$user['baks']>=&& $mycar['neon']!=8){
echo 
"<form action ='/dev/tuning.php?view=8' method='post'><input class='upgrade-btn' type='submit' value='Установить'></form></td></tr>";
}
else
{
echo 
"<input class='upgrade-inactive-btn' type='submit' value='Установить'></td></tr>";
}

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

include_once 
'../sys/inc/tfoot.php';
                    
?>
Онлайн: 2
Реклама