Base Directory Fix #1

This commit is contained in:
jonatanrek committed 2019-10-11 16:32:05 +02:00
1 parent 5501805c71
commit a82cf90d12
14 files changed
+19 -19

No files matched your search

+2 -2
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 (