Явный выход при отстутствии сессии.

This commit is contained in:
Igor Barkov (iwork)
2020-09-30 17:20:21 +03:00
parent ce77253d3b
commit 1461ce96de
4 changed files with 4 additions and 0 deletions
+1
View File
@@ -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) {