allow this to be turned on via config
This commit is contained in:
		
							parent
							
								
									aeba6665f0
								
							
						
					
					
						commit
						0ac787c3e3
					
				@ -105,15 +105,15 @@ class LogEvent extends Event {
 | 
				
			|||||||
		$this->time = time();
 | 
							$this->time = time();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// this should be an extension
 | 
							// this should be an extension
 | 
				
			||||||
		/*
 | 
							if(defined("X-HALFASSED-LOGGING")) {
 | 
				
			||||||
		global $user;
 | 
								global $user;
 | 
				
			||||||
		$ftime = date("Y-m-d H:i:s", $this->time);
 | 
								$ftime = date("Y-m-d H:i:s", $this->time);
 | 
				
			||||||
		$username = $user->name;
 | 
								$username = $user->name;
 | 
				
			||||||
		$ip = $_SERVER['REMOTE_ADDR'];
 | 
								$ip = $_SERVER['REMOTE_ADDR'];
 | 
				
			||||||
		$fp = fopen("shimmie.log", "a");
 | 
								$fp = fopen("shimmie.log", "a");
 | 
				
			||||||
		fputs($fp, "$ftime\t$section/$priority\t$username/$ip\t$message\n");
 | 
								fputs($fp, "$ftime\t$section/$priority\t$username/$ip\t$message\n");
 | 
				
			||||||
		fclose($fp);
 | 
								fclose($fp);
 | 
				
			||||||
		*/
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
?>
 | 
					?>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user