up
This commit is contained in:
@@ -7,6 +7,7 @@ $isCli = php_sapi_name() === 'cli';
|
||||
|
||||
if (!$isCli) {
|
||||
require_once 'config/config.php';
|
||||
if (!defined('APP_ROOT')) { define('APP_ROOT', __DIR__); }
|
||||
if (!isUserLoggedIn()) {
|
||||
header('Location: login.php'); exit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user