Merge pull request #1881 from owncloud/safemode_check

add a safe_mode check
This commit is contained in:
Thomas Müller 2013-02-24 11:23:27 -08:00
commit 906f8fa6f6
1 changed files with 5 additions and 0 deletions

View File

@ -269,6 +269,11 @@ class OC_Util {
'hint'=>'Please ask your server administrator to install the module.'); 'hint'=>'Please ask your server administrator to install the module.');
$web_server_restart= false; $web_server_restart= false;
} }
if(ini_get('safe_mode')) {
$errors[]=array('error'=>'PHP Safe Mode is enabled. ownCloud requires that it is disabled to work properly.<br/>',
'hint'=>'PHP Safe Mode is a deprecated and mostly useless setting that should be disabled. Please ask your server administrator to disable it in php.ini or in your webserver config.');
$web_server_restart= false;
}
$handler = ini_get("session.save_handler"); $handler = ini_get("session.save_handler");
if($handler == "files") { if($handler == "files") {