ofetch('select enter_game from users where id = ?', User::$current->getId()); if (empty($userLoginStatus->enter_game)) { header("Location: index.php"); exit(); } else { DBPDO::$db->execute('update users set enter_game = 0 where enter_game = 1 and id = ?', User::$current->getId()); } Template::header('Окно игры'); ?>