Отказ от алиаса die в пользу exit, более явная проверка на наличие сессии. Некоторые проверки входа теперь проверяют объекты, а не массив.

This commit is contained in:
Igor Barkov (iwork)
2020-09-30 15:01:33 +03:00
parent 02dc4582dc
commit a08ce17a40
179 changed files with 883 additions and 582 deletions
+3 -3
View File
@@ -15,8 +15,8 @@
include "functions.php";
if ($user['room'] != 602) { header("Location: main.php"); die(); }
if ($user['battle'] != 0) { header('location: fbattle.php'); die(); }
if ($user->room != 602) { header("Location: main.php"); exit; }
if ($user->battle) { header('location: fbattle.php'); exit; }
//комнаты парка
@@ -119,7 +119,7 @@
addchp ('<font color=red>Внимание!</font> Вы вступили в бой c бандитами!','{[]}'.Nick::id($user['id'])->short().'{[]}');
die("<script>location.href='fbattle.php';</script>");
exit("<script>location.href='fbattle.php';</script>");
}