diff --git a/htdocs/lib/functions.inc.php b/htdocs/lib/functions.inc.php index 0a363adb808..035ffe38b08 100644 --- a/htdocs/lib/functions.inc.php +++ b/htdocs/lib/functions.inc.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2000-2004 Rodolphe Quiedeville * Copyright (C) 2003 Jean-Louis Bergamo * Copyright (C) 2004 Laurent Destailleur * @@ -26,6 +26,17 @@ $yn[0] = "non"; $yn[1] = "oui"; +Function dolibarr_syslog($message) +{ + define_syslog_variables(); + + openlog("dolibarr", LOG_PID | LOG_PERROR, LOG_LOCAL0); + + syslog(LOG_WARNING, $message); + + closelog(); +} + Function dolibarr_fiche_head($links, $active=0) { print '
';