2
0
forked from Wavyzz/dolibarr

Fix: seul le superadmin peut changer la config de syslog

This commit is contained in:
Regis Houssin
2009-05-07 09:06:57 +00:00
parent 1359c09238
commit f1a5c6fae3
8 changed files with 30 additions and 40 deletions

View File

@@ -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+");