Зачем-то инкапсулирем.
This commit is contained in:
@@ -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']) {
|
||||
|
||||
Reference in New Issue
Block a user