2
0
forked from Wavyzz/dolibarr

Can switch between graph on account or all acounts.

This commit is contained in:
Laurent Destailleur
2009-01-12 19:36:40 +00:00
parent 7ecc9c1d48
commit 4d7e695d86
6 changed files with 81 additions and 64 deletions

View File

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