Base Directory Fix #1

This commit is contained in:
JonatanRek
2019-10-11 16:32:05 +02:00
parent 5501805c71
commit a82cf90d12
14 changed files with 19 additions and 19 deletions

View File

@@ -13,12 +13,12 @@ class Ajax extends Template
global $lang;
if (!$userManager->isLogin()){
header('Location: ./');
header('Location: ' . BASEDIR);
}
$is_ajax = 'XMLHttpRequest' == ( $_SERVER['HTTP_X_REQUESTED_WITH'] ?? '' );
if (!$is_ajax){
header('Location: ./');
header('Location: ' . BASEDIR);
}
if (