Вход Регистрация
Файл: rusalc/apedit_tournament_user.php
Строк: 129
<?
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/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 (
$user['acces']==765466656)
{
    
    
if(isset(
$_GET['id']) && intval($_GET['id'])!=NULL && mysql_result(mysql_query("SELECT COUNT(*) FROM `turnir_user` WHERE `id` = '".intval($_GET['id'])."'"),0)!=0)

$ank=mysql_fetch_array(mysql_query("SELECT * FROM `turnir_user` WHERE `id`='".intval($_GET['id'])."'"));




if(isset(
$_POST['edit']))
{
    
$vilet=htmlspecialchars($_POST['vilet']);
    
$win=htmlspecialchars($_POST['win']);
    
$refresh=htmlspecialchars($_POST['refresh']);
    
$power_car=htmlspecialchars($_POST['power_car']);
    
$max_vilet=htmlspecialchars($_POST['max_vilet']);
    
mysql_query("UPDATE `turnir_user` SET `vilet` = '$vilet',`win` = '$win',`refresh` = '$refresh',`power_car` = '$power_car',`max_vilet` = '$max_vilet' WHERE `id` = '".$ank['id']."' LIMIT 1");
header("Location: #");
exit;
}
echo 
"<table class='wdt msg-table'>";
echo 
"<tr><td align='left' style='vertical-align: top; width: 10%'><img src='/style/img/images/face-mex.png'></td>";
echo 
"<td align='left' style='vertical-align: top'>Дарова , ".$user['nick']." это место для редакции игрока в турнире </td></tr></table></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 style='vertical-align: top;padding-top: 3px;' align='left' rowspan='4'><table>";


echo 
"</table></td><td align='left' class='white' style='vertical-align: top' width='40%'><b>$ank[name_car]</b> </td></tr>";
echo 
"</table></td></tr><tr><td></td></tr>";
echo 
"<tr><td><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/$ank[screen_car].png' alt='car'>";
if(
$mycar['neon']!=0){
echo 
"<img class='wdt' style='margin-top: -19px;' src='/style/img/images/neon/$ank[neon_car].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"><tbody><tr><td align="left">Редактировать:</td></tr></tbody></table>';



echo 
"<table class='wdt gray-table'><tbody><tr><td class='white' align='center' style='padding: 10px;'>";
echo 
"<form method='post'><table><tbody>";
echo 
"<tr><td>Вылетел:</td><td><input style='height:25px' type='text' name='vilet' maxlength='90' value='$ank[vilet]'></td></tr>";
echo 
"<tr><td>Победы:</td><td><input style='height:25px' type='text' name='win' maxlength='90' value='$ank[win]'></td></tr>";
echo 
"<tr><td>Обновления:</td><td><input style='height:25px' type='text' name='refresh' maxlength='90' value='$ank[refresh]'></td></tr>";
echo 
"<tr><td>Мощность авто:</td><td><input style='height:25px' type='text' name='power_car' maxlength='90' value='$ank[power_car]'></td></tr>";
echo 
"<tr><td>Проигрыши:</td><td><input style='height:25px' type='text' name='max_vilet' maxlength='90' value='$ank[max_vilet]'></td></tr>";
echo 
"<tr><td colspan='2'><input class='btn' type='submit' name='edit' value='Изменить'></td></tr>";
echo 
"</tbody></table></form></td></tr></tbody></table>";




echo 
"<table class='wdt gray-table'><tr><td class='white td-cell' align='center' style='height:30px;'><form action ='/dev/tournament.php?id=$ank[id_cup]' method='post'><input class='yes-btn' type='submit' value='Турнир'></form></td></tr></table>";

echo 
"<table class='wdt gray-table'><tr>";
echo 
"<td width='50%'><form action='/rusalc/apindex.php' method='post'><input class='no-btn' type='submit' value='Админка'></form></td></tr></table>";



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