From: Brion Vibber Date: Wed, 17 Dec 2008 00:05:55 +0000 (+0000) Subject: Reverting r44681 "Throw in quick hack $wgRateLimitsExcludedIPs so we don't have to... X-Git-Tag: 1.31.0-rc.0~43922 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=0b8a3cceecf3900fe37ee93464e5dadcb9a06a57;p=lhc%2Fweb%2Fwiklou.git Reverting r44681 "Throw in quick hack $wgRateLimitsExcludedIPs so we don't have to do a live hack every time somebody runs an exciting event where they're going to register a lot of accounts." r44592 (bug 7492) seems to cover this case with an extension to autopromote settings. Future on-wiki stuff still would be nice... --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 100c50a3f6..88dbb99087 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -3205,16 +3205,6 @@ $wgRateLimitLog = null; */ $wgRateLimitsExcludedGroups = array(); -/** - * Array of IPs which should never trigger the rate limiter. - * Really this is a cruddy hack and should be replaced with - * an "anti-block" or something which can be managed through - * the wiki UI. - * - * $wgRateLimitsExcludedIPs = array( '1.2.3.4' ); - */ -$wgRateLimitsExcludedIPs = array(); - /** * On Special:Unusedimages, consider images "used", if they are put * into a category. Default (false) is not to count those as used. diff --git a/includes/User.php b/includes/User.php index bd0fe3aac2..85701e320d 100644 --- a/includes/User.php +++ b/includes/User.php @@ -1146,17 +1146,10 @@ class User { */ public function isPingLimitable() { global $wgRateLimitsExcludedGroups; - global $wgRateLimitsExcludedIPs; if( array_intersect( $this->getEffectiveGroups(), $wgRateLimitsExcludedGroups ) ) { // Deprecated, but kept for backwards-compatibility config return false; } - if( in_array( wfGetIP(), $wgRateLimitsExcludedIPs ) ) { - // No other good way currently to disable rate limits - // for specific IPs. :P - // But this is a crappy hack and should die. - return false; - } return !$this->isAllowed('noratelimit'); }