Отказ от алиаса die в пользу exit, более явная проверка на наличие сессии. Некоторые проверки входа теперь проверяют объекты, а не массив.
This commit is contained in:
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user