Проверки с перенаправлениями переехали в functions.php. Глобальный выход если нет сессии в config.php.
This commit is contained in:
@@ -1,16 +1,7 @@
|
||||
<?php
|
||||
session_start();
|
||||
if (empty($_SESSION['uid'])) {
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
require_once "functions.php";
|
||||
require_once "startpodzemel.php";
|
||||
if ($user->battle) {
|
||||
header('location: fbattle.php');
|
||||
exit;
|
||||
}
|
||||
$df = mysql_query("select `location`,`name`,`glava` from `labirint` where `user_id`='" . $_SESSION['uid'] . "'");
|
||||
$fd = mysql_fetch_array($df);
|
||||
$cd = mysql_query("select `n18` from `podzem3` where `glava`='" . $fd['glava'] . "' and `name`='Канализация 1 этаж'");
|
||||
|
||||
Reference in New Issue
Block a user