diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-03-01 19:45:33 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-03-01 19:45:33 +0000 |
commit | 0f980c24bc2ad8fb524df69705b47753aa7bdbfa (patch) | |
tree | 458de463ed94371143bfa5431b8bf6a60c4616fe /includes | |
parent | f69425961cb66aeb85b026a06f144e45a85c76ac (diff) | |
download | brdo-0f980c24bc2ad8fb524df69705b47753aa7bdbfa.tar.gz brdo-0f980c24bc2ad8fb524df69705b47753aa7bdbfa.tar.bz2 |
- Removed broken throttle.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/common.inc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/includes/common.inc b/includes/common.inc index 1d199b209..8a1a4eb93 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -404,15 +404,6 @@ function error_handler($errno, $message, $filename, $line, $variables) { } } -function throttle($type, $rate) { - if (!user_access("access administration pages")) { - if ($throttle = db_fetch_object(db_query("SELECT * FROM {watchdog} WHERE type = '%s' AND hostname = '%s' AND %d - timestamp < %d", $type, $_SERVER['REMOTE_ADDR'], time(), $rate))) { - watchdog("warning", "throttle: '". $_SERVER['REMOTE_ADDR'] ."' exceeded submission rate - $throttle->type"); - die(message_throttle()); - } - } -} - function _fix_gpc_magic(&$item, $key) { if (is_array($item)) { array_walk($item, '_fix_gpc_magic'); @@ -482,9 +473,6 @@ function message_na() { return t("n/a"); } -function message_throttle() { - return t("You exceeded the maximum submission rate. Please wait a few minutes and try again."); -} /* @} */ function locale_init() { |