Add option MAIN_LOGTOHTML to help debug

This commit is contained in:
Laurent Destailleur
2009-01-12 21:52:12 +00:00
parent b208ea68a4
commit b0c9f21d46

View File

@@ -183,12 +183,10 @@ function dol_syslog($message, $level=LOG_INFO)
global $conf,$user,$langs,$_REQUEST;
// If adding log inside HTML page is required
/* Disabled because this is a security hole
if (! empty($_REQUEST['logtohtml']))
if (! empty($_REQUEST['logtohtml']) && ! empty($conf->global->MAIN_LOGTOHTML))
{
$conf->logbuffer[]=strftime("%Y-%m-%d %H:%M:%S",time())." ".$message;
}
*/
// If syslog module enabled
if (! empty($conf->syslog->enabled))