Вход Регистрация
Файл: coliseum/cancel.php
Строк: 17
<?
include_once '../core/system.php';
echo 
only_reg();
echo 
ban();
echo 
blok();
$header 'Очередь';
include_once 
'../core/head.php';
$req mysql_query("SELECT * from `coliseum` where `usr` = '".$user['id']."' and `fight`=''");
$avtomysql_num_rows($req);
if(
$avto==0){
header("Location: /coliseum/");
$_SESSION['err'] = 'Заявка не найдена!';
exit();
}

$colis mysql_query("SELECT timer FROM `coliseum` WHERE `usr` = '".$user['id']."' and `status`='1' and `fight`='' LIMIT 1");
$coli mysql_fetch_array($colis);
$coll mysql_num_rows($colis);
$do=$coli['timer']-$_SERVER['REQUEST_TIME'];
if(
$do 0){
header("Location: /coliseum/");
$_SESSION['err'] = 'В данный момент нельзя отменить заявку!';
exit();
}

mysql_query("DELETE FROM `coliseum` WHERE `usr` = '".$user['id']."'");
header("Location: /coliseum/");
$_SESSION['message'] = 'Заявка отменена!';
exit();

echo
"</div>";
include_once 
'../core/foot.php';
?>
Онлайн: 3
Реклама