From e452219136814c775441e33115087742593dfd5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20=28fser=29?= Date: Sat, 3 Jun 2017 11:16:31 +0200 Subject: [PATCH] log entries for error and log both log IP address --- bureau/class/m_err.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bureau/class/m_err.php b/bureau/class/m_err.php index f6e644c2..e9c4d93a 100644 --- a/bureau/class/m_err.php +++ b/bureau/class/m_err.php @@ -119,7 +119,7 @@ class m_err { */ function logerr() { global $mem; - @file_put_contents($this->logfile, date("d/m/Y H:i:s") . " - ERROR - " . $mem->user["login"] . " - " . $this->errstr(), FILE_APPEND); + @file_put_contents($this->logfile, date("d/m/Y H:i:s") . " - " . get_remote_ip() . " - ERROR - " . $mem->user["login"] . " - " . $this->errstr(), FILE_APPEND); } /**