Проверки с перенаправлениями переехали в functions.php. Глобальный выход если нет сессии в config.php.
This commit is contained in:
+1
-5
@@ -1,10 +1,6 @@
|
||||
<?
|
||||
<?php
|
||||
session_start();
|
||||
require_once('functions.php');
|
||||
if (empty($_SESSION['uid'])) {
|
||||
header('Location: index.php');
|
||||
exit;
|
||||
}
|
||||
if ($user->room == 51) {
|
||||
header('location: city.php');
|
||||
exit;
|
||||
|
||||
Reference in New Issue
Block a user