Проверки с перенаправлениями переехали в functions.php. Глобальный выход если нет сессии в config.php.

This commit is contained in:
lopar
2020-10-30 01:30:05 +02:00
parent 2024a6fac7
commit 32c72e3413
143 changed files with 6986 additions and 7329 deletions

View File

@@ -1,11 +1,7 @@
<?php
ob_start("ob_gzhandler");
session_start();
if (empty($_SESSION['uid'])) {
header("Location: index.php");
exit;
}
include_once 'functions.php';
require_once 'functions.php';
if (!$user->clan) {
exit(err('Вы не состоите в клане!'));
}