Commit graph

146 commits

Author SHA1 Message Date
Brion Vibber
0c89efafc4 * (bug 4165) Correct validation for user language selection (data taint) 2005-12-04 10:53:48 +00:00
Tim Starling
55671d7040 Faster IP blocks. Requires schema change. 2005-12-01 10:37:47 +00:00
Tim Starling
9260c3b7ca 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.
2005-09-05 02:22:20 +00:00
Ævar Arnfjörð Bjarmason
1877ed135e * No longer passing the name of the language class by reference 2005-08-26 14:05:12 +00:00
Brion Vibber
caf1cb4942 adjust whitespace (spaces -> tabs) 2005-08-16 23:19:54 +00:00
Mr. E23
ea2a812e56 Added dummy wfLogProfilingData() to avoid php warnings when profiling is disabled 2005-08-13 13:23:22 +00:00
Tim Starling
7c900a732a profiling improvements and bug fixes 2005-07-25 07:00:20 +00:00
River Tarnell
a14ffdcfb9 allow 'uselang' and 'useskin' to be specified in the URL parameters, with
some obvious effect.
2005-07-24 06:55:45 +00:00
River Tarnell
e4a87e105a implement "action=render" 2005-07-03 04:00:33 +00:00
Tim Starling
1f3284da90 recovering previous behaviour when enotif is switched off 2005-06-25 13:47:18 +00:00
Brion Vibber
8426ece183 * (bug 1805) Initialise $wgContLang before $wgUser 2005-06-16 07:51:45 +00:00
Brion Vibber
cb45389b9c * Remove linkscc table code, no longer used. 2005-05-31 07:21:31 +00:00
Tim Starling
6944ef5b4e forward-ported $wgSkipSkin from REL1_4, with enhancements 2005-05-29 06:18:10 +00:00
Tim Starling
225a20c35a Unconditional inclusion for SpecialPage.php, needed for {{special:whatever}}. Fixed getRedirect() to work with this inclusion order. 2005-05-28 11:49:40 +00:00
Ævar Arnfjörð Bjarmason
992b2c4cc8 * - is not a metacharacter in regular expressions, and ^ can be used to invert
matches within []
2005-05-25 01:36:38 +00:00
Tim Starling
f2e8bd8bf7 Using a different session name for each database, so they don't interfere with each other. This is only significant where several wikis share a domain. 2005-05-14 09:27:24 +00:00
Brion Vibber
dbd3c6183d Add WikiError to standard components now that we're using it more widely (though it's already explicitly included in places it's used so far, such as UserMailer and SpecialImport) 2005-04-27 22:38:51 +00:00
Ævar Arnfjörð Bjarmason
cd57e83bef * Parser.php was being included twice in a row 2005-04-25 12:47:10 +00:00
Tim Starling
66507cbde3 Setup.php-DateFormatter was using a lot of CPU time on the live site. Moved it to on-demand initialisation, with memcached assistance. 2005-04-20 15:42:08 +00:00
Tim Starling
52a4214b20 Smarter, more flexible cache type selection. Moved entire contents of ObjectCache.php to BagOStuff.php, to make way for some more generic code. 2005-04-09 10:30:45 +00:00
Tim Starling
1b76906d65 fixed bug 2005-03-31 12:06:38 +00:00
Magnus Manske
da910c7702 If you call function wfGetIP, it might help to implement it first ;-) 2005-03-31 11:11:37 +00:00
Tim Starling
ce4f1221f1 Adding some validation for IP determination via XFF headers, in preparation for adding ISP proxies to the trusted proxy list, which may occasionally give invalid XFF headers 2005-03-31 09:10:25 +00:00
Tim Starling
ba9ae79212 Fixed efficiency problem with $wgSiteNotice. Introduced wfSiteNotice(), which allows the script to load it on demand instead of on every invocation 2005-03-27 16:56:11 +00:00
Brion Vibber
2de124fdbc * Installation fixes for running under IIS
$_SERVER['REQUEST_URI'] and $_SERVER['SERVER_ADMIN'] aren't set under IIS.
Fall back to $_SERVER['SCRIPT_NAME'] for determining base URL on install.
2005-03-27 06:37:21 +00:00
Brion Vibber
6f5560867c Start removing the Latin-1 hacks. We're going pure UTF-8 for 1.5... 2005-03-26 22:23:48 +00:00
Brion Vibber
9ea27c3141 Don't force edit encoding when LanguageEo.php is loaded; defer until $wgContLang initialization.
This makes editing work on other languages with UI language set to Esperanto in preferences.
2005-03-14 02:00:53 +00:00
Brion Vibber
666d4d5135 Merge changes from 1.4:
* Squid purged defered to outside the db transaction
* Partial redirect goodies
* Compression threadhold on memcached
* setproctitle
* Some other tweaks
2005-03-09 02:02:04 +00:00
Brion Vibber
3caa8e7404 eAccelerator caching support, patches from Jamie Bliss 2005-03-02 01:54:05 +00:00
Brion Vibber
9636a88e1c Clean up experiments for special:data, special:validate, special:geo.
Moving these things to extensions if they are needed in the future.
2005-02-18 11:47:36 +00:00
Jens Frank
22da0bbfde Only include ParserXML when it is being used 2005-01-27 21:46:04 +00:00
Brion Vibber
0defdc6a3e * Skip message cache initialization on raw page view (quick hack)
The MediaWiki:Sitenotice hack as currently written forces message cache initiali
zation early in Setup.php. This adds up to 30% to the runtime on raw page views
and cache hits where no skin output has to be made, and dynamic CSS means we've got a fair amount of raw page views.
2005-01-18 10:16:55 +00:00
Tim Starling
829300bf0a fix for script execution vulnerability 2005-01-17 08:40:08 +00:00
Tim Starling
8844628487 Minor load balancing improvements 2005-01-15 10:11:45 +00:00
Jens Frank
67b0cf6906 Don't load user object from DB when in command line mode. DB might not yet exist 2005-01-15 07:28:33 +00:00
River Tarnell
fe586bbfc2 wgSquidServersNoPurge 2005-01-12 22:45:39 +00:00
Tim Starling
e1b5e3f57f porting site notice feature from REL1_3A 2004-12-23 09:12:58 +00:00
Brion Vibber
64ac6b8e77 Merge SCHEMA_WORK into HEAD. Lots of changes, some things are probably broken:
* Page moves/overwrites are a little iffy
* Compression might not be working right
* Profit!
2004-12-19 08:00:50 +00:00
Brion Vibber
798270581d (bug 454) Merge e-notif 2.00
From http://bugzilla.wikipedia.org/attachment.cgi?id=171&action=view
and extra files from http://www.tgries.de/mw/cvs15+enea200-minus-cvs.tgz

Undid a couple minor bits like the broken changing of minoreditletter.
Have not yet made general corrections/reworkings. Since this changes
the user and watchlist tables, you must run the updaters (installer or
update.php) on an existing database.
2004-12-18 03:47:11 +00:00
Brion Vibber
9169001980 * Fix language selection for upgraded accounts [merge from 1.4] 2004-12-11 09:57:58 +00:00
Brion Vibber
9a2a36ce5e * Defer message cache initialization, shaving a few ms off file cache hits 2004-12-09 05:51:20 +00:00
Zheng Zhu
7bee69578c more fixes for languages with no language files; allow UI customization for all languages. 2004-12-07 20:22:22 +00:00
Zheng Zhu
285d1dc09b fix typo 2004-11-29 15:24:02 +00:00
Tim Starling
5de9529eb1 made connection errors work again 2004-11-29 12:36:43 +00:00
Evan Prodromou
80d9f05b37 Add a system of hooks to allow third-party code to run before, after, or
instead of -- MediaWiki code for particular events (article rollback,
user ban, etc.). Framework is in place; hooks are not yet in place
in the mainline code.
2004-11-27 21:43:06 +00:00
Brion Vibber
c7620a7106 Let the parser cache use the objectcache table if memcached isn't set up,
and enable it by default. This provides significant speedups on medium
to long pages, though for busier sites the garbage collection probably
should be adjusted.
2004-11-22 01:16:44 +00:00
Brion Vibber
f5a1ac6798 Experimental authentication plugin interface. Will require a little bit more work to nail down all requirements. 2004-11-16 05:28:47 +00:00
Brion Vibber
98e82e9c60 Fix opening of session for users visiting with saved password token 2004-11-15 12:54:45 +00:00
Magnus Manske
a0d7248685 XML parser XHTML output 2004-11-03 14:00:08 +00:00
Tim Starling
7d1442e76f Backporting concatenated gzip history compression from SCHEMA_WORK. Also made a few tweaks to the compression script, mainly to make it faster for the purposes of a testing sequence I'm currently running on it. Will report to wikitech-l once testing is done. 2004-10-30 14:39:40 +00:00