forked from Wavyzz/dolibarr
Fix: seul le superadmin peut changer la config de syslog
This commit is contained in:
@@ -200,11 +200,6 @@ function dol_syslog($message, $level=LOG_INFO)
|
||||
{
|
||||
$filelog=SYSLOG_FILE;
|
||||
$filelog=eregi_replace('DOL_DATA_ROOT',DOL_DATA_ROOT,$filelog);
|
||||
// Check if syslog module has been setup with a full path
|
||||
if (! eregi('(^[A-Za-z0-9_\-\\/:]+[\\/]+)([A-Za-z0-9_\-]+[.]?[A-Za-z0-9]+)?$', SYSLOG_FILE) && ! empty($conf->syslog->dir_output))
|
||||
{
|
||||
$filelog = $conf->syslog->dir_output."/".$filelog;
|
||||
}
|
||||
if (defined("SYSLOG_FILE_NO_ERROR")) $file=@fopen($filelog,"a+");
|
||||
else $file=fopen($filelog,"a+");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user