View file sdark.mobi/coliseum/apply.php

File size: 575B
<?
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`=''");
$avto= mysql_num_rows($req);
if($avto>0){
header("Location: /coliseum/");
$_SESSION['err'] = 'Вы уже записаны!';
exit();
}

mysql_query("INSERT INTO `coliseum` SET `usr` = '$user[id]'");
header("Location: /coliseum/");
$_SESSION['message'] = 'Заявка принята!';
exit();

echo"</div>";
include_once '../core/foot.php';
?>