mirror of
				https://bitbucket.org/jsuto/piler.git
				synced 2025-10-31 12:12:27 +01: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