query('SELECT `room`,`battle` FROM `users` WHERE `id` = ?i',$_SESSION['uid'])->fetch_assoc(); if ($user['room'] != 650) { header("Location: main.php"); die(); } if ($user['battle'] != 0) { header('location: fbattle.php'); die(); } if ($_GET['id']) { echo "Пробуем перейти на выбранную замковую улицу..."; $_SESSION["klan"] = $_GET['klan']; $a = $_GET['klan']; db::c()->query('UPDATE `users`,`online` SET `users`.`room` = 651, `online`.`room` = 651 WHERE `online`.`id` = `users`.`id` AND `online`.`id` = ?i',$_SESSION['uid']); header("location: city.php"); } else { ?>
← назад