mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Base Directory Fix #1
This commit is contained in:
1 parent
5501805c71
commit
a82cf90d12
14 files changed
+19
-19
No files matched your search
+2
-2
@@ -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 (
|
||||
|
||||
Reference in new issue
Block a user