summaryrefslogtreecommitdiff
path: root/error.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-06-13 21:37:19 +0000
committerDries Buytaert <dries@buytaert.net>2001-06-13 21:37:19 +0000
commitdb92d73b6eb8ed3b0d40a9deaf50c3ad680dd872 (patch)
treea5fdab2dcfb9927b178291d0cacebe1b8ab704be /error.php
parent7d631fb606b816c8bfefb448a5708e44e8c0e932 (diff)
downloadbrdo-db92d73b6eb8ed3b0d40a9deaf50c3ad680dd872.tar.gz
brdo-db92d73b6eb8ed3b0d40a9deaf50c3ad680dd872.tar.bz2
- Improved watchdog and submission throttle: removed redundant code,
streamlined the existing code, added new watchdog type called "httpd" for Apache errors. The latter should make it easier to add watchdog filters later on. - Clarified some watchdog messages.
Diffstat (limited to 'error.php')
-rw-r--r--error.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/error.php b/error.php
index 79304eaa2..b38483cfd 100644
--- a/error.php
+++ b/error.php
@@ -2,13 +2,13 @@
include_once "includes/common.inc";
-$errors = array(500 => "500 error - internal server error",
- 404 => "404 error - `$REDIRECT_URL' not found",
- 403 => "403 error - access denied - forbidden",
- 401 => "401 error - authorization required",
- 400 => "400 error - bad request");
+$errors = array(500 => "500 error: internal server error",
+ 404 => "404 error: `$REDIRECT_URL' not found",
+ 403 => "403 error: access denied - forbidden",
+ 401 => "401 error: authorization required",
+ 400 => "400 error: bad request");
-watchdog("error", $errors[$REDIRECT_STATUS]);
+watchdog("httpd", $errors[$REDIRECT_STATUS]);
header("Location: index.php");