Явный выход при отстутствии сессии.
This commit is contained in:
parent
ce77253d3b
commit
1461ce96de
1
main.php
1
main.php
@ -8,6 +8,7 @@ if ($get === 'exit') {
|
||||
}
|
||||
if (empty($_SESSION['uid'])) {
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
require_once 'functions.php';
|
||||
|
@ -2,6 +2,7 @@
|
||||
session_start();
|
||||
if (empty($_SESSION['uid'])) {
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
require_once("functions.php");
|
||||
$d = db::c()->query('SELECT SUM(`massa`) FROM `inventory` WHERE `dressed` = 0 AND `owner` = ?i', $_SESSION['uid'])->fetch_assoc();
|
||||
|
@ -2,6 +2,7 @@
|
||||
session_start();
|
||||
if (empty($_SESSION['uid'])) {
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
require_once "functions.php";
|
||||
if ($user->room != 31) {
|
||||
|
@ -3,6 +3,7 @@ ob_start("ob_gzhandler");
|
||||
session_start();
|
||||
if (empty($_SESSION['uid'])) {
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
require_once "functions.php";
|
||||
if ($user['in_tower'] != 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user