Отказ от алиаса die в пользу exit, более явная проверка на наличие сессии. Некоторые проверки входа теперь проверяют объекты, а не массив.
This commit is contained in:
+2
-2
@@ -6,8 +6,8 @@
|
||||
$user = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `id` = '{$_SESSION['uid']}' LIMIT 1;"));
|
||||
include "functions.php";
|
||||
|
||||
if ($user['room'] != 53) { header("Location: main.php"); die(); }
|
||||
if ($user['battle'] != 0) { header('location: fbattle.php'); die(); }
|
||||
if ($user->room != 53) { header("Location: main.php"); exit; }
|
||||
if ($user->battle) { header('location: fbattle.php'); exit; }
|
||||
?>
|
||||
<HTML><HEAD>
|
||||
<link rel=stylesheet type="text/css" href="css/main.css">
|
||||
|
||||
Reference in New Issue
Block a user