mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
quiten warnings, if file are outside open_basedir
This commit is contained in:
parent
e27920ff99
commit
b643e94dd7
@ -210,7 +210,8 @@ function submit_statistic(form,submit_url,confirm_msg)
|
||||
|
||||
$data['php'] = PHP_VERSION.': '.PHP_SAPI;
|
||||
$data['os'] = PHP_OS;
|
||||
if (file_exists($file = '/etc/SuSE-release') || file_exists($file = '/etc/redhat-release') || file_exists($file = '/etc/debian_version'))
|
||||
// @ required to get ride of warning, if files are outside of open_basedir
|
||||
if (@file_exists($file = '/etc/SuSE-release') || @file_exists($file = '/etc/redhat-release') || @file_exists($file = '/etc/debian_version'))
|
||||
{
|
||||
$data['os'] .= ': '.str_replace(array("\n","\r"),'',implode(',',file($file)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user