Будь проклят тот день, когда я решил ввести неймспейсы...
This commit is contained in:
@@ -4,6 +4,7 @@ if (empty($_SESSION['uid'])) {
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
require_once 'config.php';
|
||||
$userLoginStatus = db::c()->query('SELECT enter_game FROM users WHERE id = ?i', $_SESSION['uid'])->getNumRows() ?? 0;
|
||||
if (empty($userLoginStatus)) {
|
||||
@@ -11,7 +12,8 @@ if (empty($userLoginStatus)) {
|
||||
} else {
|
||||
db::c()->query('UPDATE `users` SET `enter_game` = 0 WHERE `enter_game` = 1 AND `id` = ?i', $_SESSION['uid']);
|
||||
}
|
||||
Template::header('Окно игры');
|
||||
|
||||
\Battles\Template::header('Окно игры');
|
||||
?>
|
||||
<script>
|
||||
if (!navigator.cookieEnabled) {
|
||||
|
||||
Reference in New Issue
Block a user