diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-04-06 14:14:16 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-04-06 14:14:16 +0000 |
commit | 8213f5b2627a6b63db9f84b572918bd7e3254dff (patch) | |
tree | bdaa19d917ce2d0db1ba54ef884e22a69130846a /error.php | |
parent | 048664f2786fce9bd049f39eea39a2a7fe2868f0 (diff) | |
download | brdo-8213f5b2627a6b63db9f84b572918bd7e3254dff.tar.gz brdo-8213f5b2627a6b63db9f84b572918bd7e3254dff.tar.bz2 |
A lot of small changes (search-n-replace) make a big commit:
- fixed update bug in book.module
- provide a log message when both adding and updating book pages
- all configurable variables are now accessed through "variable_get()":
- rewrote watchdog and submission throttle and removed watchdog.inc
- improved robustness of sections.inc
- imporved story.module
- updated ./database/database.sql
Diffstat (limited to 'error.php')
-rw-r--r-- | error.php | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -1,9 +1,7 @@ <?php -function error_flood() { - global $site_email; - - print "WARNING: submission rate exceeded. We detected too much data or events from your IP. Please wait a few minutes and try again. If you think this is not justified, please contact us at <A HREF=\"mailto:$site_email\">$site_email</A>."; +function error_throttle() { + print "WARNING: submission rate exceeded. We detected too much data or events from your IP. Please wait a few minutes and try again. If you believe this is not justified, please contact us at <A HREF=\"mailto:". variable_get(site_mail, "root@localhost") ."\">". variable_get(site_mail, "root@localhost") ."</A>."; } function error_httpd() { @@ -42,11 +40,11 @@ function error_httpd() { include_once "includes/common.inc"; switch ($op) { - case "flood": - error_flood(); + case "throttle": + error_throttle(); break; default: error_httpd(); } -?> +?>
\ No newline at end of file |