Отказ от алиаса die в пользу exit, более явная проверка на наличие сессии. Некоторые проверки входа теперь проверяют объекты, а не массив.
This commit is contained in:
@@ -4,13 +4,13 @@ if (!isset($_SESSION['uid'])) {
|
||||
header("Location: index.php");
|
||||
}
|
||||
require_once "functions.php";
|
||||
if ($user['room'] != 31) {
|
||||
if ($user->room != 31) {
|
||||
header("Location: main.php");
|
||||
die();
|
||||
exit;
|
||||
}
|
||||
if ($user['in_tower'] == 1) {
|
||||
header('Location: towerin.php');
|
||||
die();
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user