summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-02-09 14:13:00 +0000
committerDries Buytaert <dries@buytaert.net>2001-02-09 14:13:00 +0000
commitb26c49d3d8706278bc6adeadaff9544c74f0e025 (patch)
treeb629a9df09078ec159f0022571170b68f91b1358 /includes
parentbff5ffeac402d7f5d7feafe48824c07e9ead3546 (diff)
downloadbrdo-b26c49d3d8706278bc6adeadaff9544c74f0e025.tar.gz
brdo-b26c49d3d8706278bc6adeadaff9544c74f0e025.tar.bz2
- last night's fix
Diffstat (limited to 'includes')
-rw-r--r--includes/watchdog.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/includes/watchdog.inc b/includes/watchdog.inc
index 6a5b66163..41961d661 100644
--- a/includes/watchdog.inc
+++ b/includes/watchdog.inc
@@ -9,7 +9,7 @@ $watchdog = array("comment" => array("0", $submission_rate["comment"]),
function watchdog($id, $message) {
global $user, $watchdog, $watchdog_history;
-/*
+
if ($watchdog[$id][1] && !user_permission()) {
if ($log = db_fetch_object(db_query("SELECT * FROM watchdog WHERE hostname = '". getenv("REMOTE_ADDR") ."' AND level = '". $watchdog[$id][0] ."'"))) {
if (time() - $log->timestamp < $watchdog[$id][1]) {
@@ -19,7 +19,6 @@ function watchdog($id, $message) {
}
}
}
-*/
// Perform query to add new watchdog entry:
db_query("INSERT INTO watchdog (level, timestamp, user, message, location, hostname) VALUES ('". $watchdog[$id][0] ."', '". time() ."', '". check_input($user->id) ."', '". check_input($message) ."', '". check_input(getenv("REQUEST_URI")) ."', '". check_input(getenv("REMOTE_ADDR")) ."')");