Deferred initialisation of $wgIP, because it's potentially slow, especially if and...
authorTim Starling <tstarling@users.mediawiki.org>
Mon, 5 Sep 2005 02:22:20 +0000 (02:22 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Mon, 5 Sep 2005 02:22:20 +0000 (02:22 +0000)
commit9260c3b7cadbc74f097307f49ce389d71ebe6d92
tree52448ade45dc17f7566b8af9faa30858120dba2a
parent8fb1491404ca7e5c5306a0ead77e17910519362a
Deferred initialisation of $wgIP, because it's potentially slow, especially if and when we add the 200 NTL proxies to the trusted XFF list. I was hoping to avoid initialisation altogether for anonymous page views, but that turns out to be difficult because of user_newtalk. It is, however, avoided for action=raw. Tested page view, newtalk, IP registration in history and recentchanges, IP block, autoblock and Special:Version.

Also moved the old proxy scan code from EditPage.php to a more appropriate location in ProxyTools.php.
includes/EditPage.php
includes/ProxyTools.php
includes/RecentChange.php
includes/Setup.php
includes/Skin.php
includes/SpecialBlockme.php
includes/SpecialUserlogin.php
includes/SpecialVersion.php
includes/User.php