Проверки с перенаправлениями переехали в functions.php. Глобальный выход если нет сессии в config.php.
This commit is contained in:
+4
-1
@@ -1,5 +1,8 @@
|
||||
<?php
|
||||
if (empty($_SESSION['uid'])) header("Location: index.php");
|
||||
if (empty($_SESSION['uid'])) {
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
$u1 = filter_input(INPUT_POST, 'target');
|
||||
$u2 = filter_input(INPUT_POST, 'target1');
|
||||
|
||||
Reference in New Issue
Block a user