Отказ от алиаса 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,8 +1,8 @@
<?php
session_start();
if(!isset($_SESSION['uid'])) { die();}
if(!isset($_SESSION['uid'])) { exit;}
require_once "functions.php";
if($user['room'] == 51) { header('location: city.php'); die(); }
if($user->room == 51) { header('location: city.php'); exit; }
if($_GET['go'] == 'vixod') {
$les_login = mysql_fetch_array(mysql_query("SELECT `room` FROM `les_game` WHERE `owner` = '".$user['id']."' LIMIT 1"));
@@ -62,7 +62,7 @@ if($rand < 15 && $user['battle'] == 0) {
}
if($user['battle'] > 0) { header('location: fbattle.php'); die(); }
if($user['battle'] > 0) { header('location: fbattle.php'); exit; }
$les_login = mysql_fetch_array(mysql_query("SELECT * FROM `les_game` WHERE `owner` = '".$user['id']."' LIMIT 1"));