summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc12
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() {