diff options
author | Dries Buytaert <dries@buytaert.net> | 2000-11-20 10:27:35 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2000-11-20 10:27:35 +0000 |
commit | ebe3dddc564ed9900dfa3c23ff602eff7ba39ff1 (patch) | |
tree | b7c5e2258a79e7674e196c806144b9f362ec9dfd /includes/watchdog.inc | |
parent | a461e3696cb0021a9586ceaf735b0bb8cf4c9ab0 (diff) | |
download | brdo-ebe3dddc564ed9900dfa3c23ff602eff7ba39ff1.tar.gz brdo-ebe3dddc564ed9900dfa3c23ff602eff7ba39ff1.tar.bz2 |
amdin.php:
- fixed bug in story section
account.php:
- removed death code, clean-up, reorganization
- added "lost password?" functionality
faq.php:
- clean-up
watchdog.inc:
- improvements
- end of input-limit test period
error.php:
- improvements, still crappy layout though
Diffstat (limited to 'includes/watchdog.inc')
-rw-r--r-- | includes/watchdog.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/watchdog.inc b/includes/watchdog.inc index 78e481fd9..0bc33dfbf 100644 --- a/includes/watchdog.inc +++ b/includes/watchdog.inc @@ -14,7 +14,8 @@ function watchdog($id, $message) { 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]) { watchdog("warning", "'". getenv("REMOTE_ADDR") ."' exceeded '$id' submission rate"); - // header("Location: error.php"); + header("Location: error.php?op=flood"); + exit(); } } } |