mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 18:30:11 +01:00
Fixed config.php.in
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
18b709659e
commit
73c6c54f2b
@ -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; }
|
||||
|
@ -12,6 +12,3 @@ function browser_detect() {
|
||||
}
|
||||
|
||||
define('MOBILE_DEVICE', browser_detect());
|
||||
|
||||
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user