Fix: $_SERVER['COMPUTERNAME'] is not a standard SERVER variable
http://www.php.net/manual/en/reserved.variables.server.php
This commit is contained in:
parent
5c9490133f
commit
510ab36b0a
@ -260,7 +260,7 @@ function dol_syslog($message, $level=LOG_INFO)
|
|||||||
|
|
||||||
if ($file)
|
if ($file)
|
||||||
{
|
{
|
||||||
$ip=$_SERVER['COMPUTERNAME'];
|
$ip=$_SERVER['SERVER_ADDR'];
|
||||||
if (! empty($_SERVER["REMOTE_ADDR"])) $ip=$_SERVER["REMOTE_ADDR"];
|
if (! empty($_SERVER["REMOTE_ADDR"])) $ip=$_SERVER["REMOTE_ADDR"];
|
||||||
|
|
||||||
$liblevelarray=array(LOG_ERR=>'ERROR',LOG_WARNING=>'WARN',LOG_INFO=>'INFO',LOG_DEBUG=>'DEBUG');
|
$liblevelarray=array(LOG_ERR=>'ERROR',LOG_WARNING=>'WARN',LOG_INFO=>'INFO',LOG_DEBUG=>'DEBUG');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user