Зачем-то инкапсулирем.

This commit is contained in:
lopar
2021-02-01 21:20:23 +02:00
parent 7dd6368b84
commit 0ccc2d1af5
64 changed files with 393 additions and 392 deletions

View File

@@ -1,6 +1,6 @@
<?php
session_start();
if ($user->battle) { header('location: fbattle.php'); exit; }
if ($user->getBattle()) { header('location: fbattle.php'); exit; }
include "../config.php";
$user = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `id` = '{$_SESSION['uid']}' LIMIT 1;"));
if ($user['admin']) {