Commit e14a8277 authored by Till Brehm's avatar Till Brehm

- Search in relative path for security settings if they were not found in the default location.

parent 8a3cd236
......@@ -59,7 +59,9 @@ class getconf {
global $app;
$app->uses('ini_parser');
$security_config = $app->ini_parser->parse_ini_string(file_get_contents('/usr/local/ispconfig/security/security_settings.ini'));
$security_config_path = '/usr/local/ispconfig/security/security_settings.ini';
if(!is_file($security_config_path)) $security_config_path = realpath(ISPC_ROOT_PATH.'/../security/security_settings.ini');
$security_config = $app->ini_parser->parse_ini_string(file_get_contents($security_config_path));
return ($section == '') ? $security_config : $security_config[$section];
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment