log entries for error and log both log IP address

This commit is contained in:
François (fser) 2017-06-03 11:16:31 +02:00
parent 611e41a31b
commit e452219136
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ class m_err {
*/ */
function logerr() { function logerr() {
global $mem; 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);
} }
/** /**