Отказ от алиаса 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
@@ -1,7 +1,7 @@
<?php
session_start();
if (!($_SESSION['uid'] > 0)) header("Location: index.php");
if ($user['battle'] != 0) { header('location: fbattle.php'); die(); }
if ($user->battle) { header('location: fbattle.php'); exit; }
include "../config.php";
if($_GET['act']=="atk"){
$ass = mysql_query("SELECT glav_id,glava,name FROM labirint WHERE user_id=".$user['id']."");
@@ -45,7 +45,7 @@ if($jert['id']!=$user['id']) {
$ttt = 2;
}
//addch ("<b>".nick7($user['id'])."</b> вмешался в <a href=logs.php?log=".$id." target=_blank>поединок »»</a>. ",$user['room']);
//addch ("<b>".nick7($user['id'])."</b> вмешался в <a href=logs.php?log=".$id." target=_blank>поединок »»</a>. ",$user->room);
@@ -61,5 +61,5 @@ mysql_query("UPDATE `labirint` SET `boi`='".$_GET['n']."',`di`='0' WHERE `user_i
print "<script>location.href=\"main.php?act=none\";</script>";
die();
exit;
}