From 6a5b8bd46d71986651c82661286f8124f22879c8 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 11 May 2009 12:53:55 -0700 Subject: [PATCH] allow this to be turned on via config --- core/event.class.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/core/event.class.php b/core/event.class.php index 0c12fc86..4490f8e4 100644 --- a/core/event.class.php +++ b/core/event.class.php @@ -105,15 +105,15 @@ class LogEvent extends Event { $this->time = time(); // this should be an extension - /* - global $user; - $ftime = date("Y-m-d H:i:s", $this->time); - $username = $user->name; - $ip = $_SERVER['REMOTE_ADDR']; - $fp = fopen("shimmie.log", "a"); - fputs($fp, "$ftime\t$section/$priority\t$username/$ip\t$message\n"); - fclose($fp); - */ + if(defined("X-HALFASSED-LOGGING")) { + global $user; + $ftime = date("Y-m-d H:i:s", $this->time); + $username = $user->name; + $ip = $_SERVER['REMOTE_ADDR']; + $fp = fopen("shimmie.log", "a"); + fputs($fp, "$ftime\t$section/$priority\t$username/$ip\t$message\n"); + fclose($fp); + } } } ?>