mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-07-29 04:15:01 +02:00
added mobile device detection
This commit is contained in:
@@ -237,6 +237,10 @@ require_once 'config-site.php';
|
||||
|
||||
if(isset($_SESSION['theme']) && preg_match("/^([a-zA-Z0-9\-\_]+)$/", $_SESSION['theme'])) { $config['THEME'] = $_SESSION['theme']; }
|
||||
|
||||
include("/system/helper/detectmobilebrowser.php");
|
||||
|
||||
if(MOBILE_DEVICE == 1) { $config['THEME'] = 'mobile'; }
|
||||
|
||||
// make sure auditors are restricted in a saas environment
|
||||
if($config['ENABLE_SAAS'] == 1) { $config['RESTRICTED_AUDITOR'] = 1; }
|
||||
if(isset($_SESSION['username']) && $_SESSION['username'] == 'auditor@local') { $config['RESTRICTED_AUDITOR'] = 0; }
|
||||
|
Reference in New Issue
Block a user