Отказ от алиаса die в пользу exit, более явная проверка на наличие сессии. Некоторые проверки входа теперь проверяют объекты, а не массив.
This commit is contained in:
+2
-2
@@ -26,8 +26,8 @@
|
||||
}
|
||||
include "functions.php";
|
||||
$pass_s=getPass(6);
|
||||
if ($user['room'] != 600) { header("Location: main.php"); die(); }
|
||||
if ($user['battle'] != 0) { header('location: fbattle.php'); die(); }
|
||||
if ($user->room != 600) { header("Location: main.php"); exit; }
|
||||
if ($user->battle) { header('location: fbattle.php'); exit; }
|
||||
if ($_POST['pay'])
|
||||
{
|
||||
if(!$_POST['pay_gr']) $_POST['pay_gr']=1;
|
||||
|
||||
Reference in New Issue
Block a user