diff --git a/fight.php b/fight.php index a91590e..6479440 100644 --- a/fight.php +++ b/fight.php @@ -4,142 +4,9 @@ if (!isset($_SESSION['uid'])) { header("Location: index.php"); } include("config.php"); -?> - - - Окно игры - - - +db::c()->query('UPDATE `users` SET `enter_game` = 0 WHERE `enter_game` = 1 AND `id` = ?i', $_SESSION['uid']); - query('SELECT `enter_game`, `id` FROM `users` WHERE `id` = ?i', $_SESSION['uid'])->fetch_assoc(); - if ($my_us['enter_game'] == 1) { - db::c()->query('UPDATE `users` SET `enter_game` = 0 WHERE `id` = ?i', $my_us['id']); - ?> - - - + + + + + + + ' \ No newline at end of file