summaryrefslogtreecommitdiff
path: root/includes/watchdog.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-02-17 15:38:37 +0000
committerDries Buytaert <dries@buytaert.net>2001-02-17 15:38:37 +0000
commita60edc750826432facb57759b8d9e205f672ed8d (patch)
tree5a687d2fa165ece2dd92417614266c242c5f41b5 /includes/watchdog.inc
parent52a1d1bbe80422ca7a8c79dde6fd92db542b9b2d (diff)
downloadbrdo-a60edc750826432facb57759b8d9e205f672ed8d.tar.gz
brdo-a60edc750826432facb57759b8d9e205f672ed8d.tar.bz2
- improved the "menu" hook
- replaced the "open submission queue" (submission.php and submission.inc) with an optional module (submission.module). - tidied up the HTML code of some files
Diffstat (limited to 'includes/watchdog.inc')
-rw-r--r--includes/watchdog.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/watchdog.inc b/includes/watchdog.inc
index fd72d3512..2eb0baf2c 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($user)) {
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,7 @@ 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")) ."')");
}