Проверки с перенаправлениями переехали в functions.php. Глобальный выход если нет сессии в config.php.
This commit is contained in:
14
tower.php
14
tower.php
@@ -1,20 +1,6 @@
|
||||
<?php
|
||||
session_start();
|
||||
if (empty($_SESSION['uid'])) {
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
require_once "functions.php";
|
||||
if ($user->room != 31) {
|
||||
header("Location: main.php");
|
||||
exit;
|
||||
}
|
||||
if ($user['in_tower'] == 1) {
|
||||
header('Location: towerin.php');
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
class predbannik_bs
|
||||
{
|
||||
public $userid = 0;
|
||||
|
||||
Reference in New Issue
Block a user