Final Fixes And Clean Up
This commit is contained in:
@@ -8,12 +8,12 @@ class Ajax extends Template
|
||||
global $lang;
|
||||
|
||||
if (!$userManager->isLogin()){
|
||||
header('Location: ' . BASEDIR);
|
||||
header('Location: ' . BASEURL);
|
||||
}
|
||||
|
||||
$is_ajax = 'XMLHttpRequest' == ( $_SERVER['HTTP_X_REQUESTED_WITH'] ?? '' );
|
||||
if (!$is_ajax){
|
||||
header('Location: ' . BASEDIR);
|
||||
header('Location: ' . BASEURL);
|
||||
}
|
||||
|
||||
if (
|
||||
|
Reference in New Issue
Block a user