log entries for error and log both log IP address
This commit is contained in:
		
							parent
							
								
									611e41a31b
								
							
						
					
					
						commit
						e452219136
					
				| 
						 | 
				
			
			@ -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);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue