Fixed config.php.in

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2020-03-15 15:33:02 +01:00
parent 18b709659e
commit 73c6c54f2b
2 changed files with 3 additions and 6 deletions

View File

@ -8,7 +8,7 @@ ini_set('session.use_only_cookies', 1);
define('NORMAL', 1);
define('DEBUG', 5);
$config = array();
$config = [];
/*
@ -16,6 +16,8 @@ $config = array();
* variable to be overridden in config-site.php
*/
$config['ENABLE_MOBILE_PREVIEW'] = 0;
$config['BRANDING_TEXT'] = '';
$config['BRANDING_URL'] = '';
$config['BRANDING_LOGO'] = '';
@ -357,8 +359,6 @@ if($session->get("theme") && preg_match("/^([a-zA-Z0-9\-\_]+)$/", $session->get(
include("system/helper/detectmobilebrowser.php");
$config['ENABLE_MOBILE_PREVIEW'] = 0;
// make sure auditors are restricted in a saas environment
if($config['ENABLE_SAAS'] == 1) { $config['RESTRICTED_AUDITOR'] = 1; }
if($session->get("username") == 'auditor@local' || isset($_SERVER['argv'][2]) ) { $config['RESTRICTED_AUDITOR'] = 0; }

View File

@ -12,6 +12,3 @@ function browser_detect() {
}
define('MOBILE_DEVICE', browser_detect());
?>