Отказ от алиаса die в пользу exit, более явная проверка на наличие сессии. Некоторые проверки входа теперь проверяют объекты, а не массив.
This commit is contained in:
+6
-3
@@ -1,12 +1,15 @@
|
||||
<?php
|
||||
session_start();
|
||||
if ($_SESSION['uid'] == null) header("Location: index.php");
|
||||
if ($_SESSION['uid'] == null) {
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
include "config.php";
|
||||
include "functions.php";
|
||||
include "startpodzemel.php";
|
||||
if ($user['battle'] != 0) {
|
||||
if ($user->battle) {
|
||||
header('location: fbattle.php');
|
||||
die();
|
||||
exit;
|
||||
}
|
||||
$df = mysql_query("select `location`,`name`,`glava` from `labirint` where `user_id`='" . $_SESSION['uid'] . "'");
|
||||
$fd = mysql_fetch_array($df);
|
||||
|
||||
Reference in New Issue
Block a user