Commit graph

16 commits

Author SHA1 Message Date
Sam Reed
71ef827d54 Set a HTTP 301 header in redirect.php
Upstream wikia change
2011-09-03 22:50:44 +00:00
Tim Starling
ff1dc8a175 HipHop improvements:
* Added the ability to compile extensions. The build process is bootstrapped by running MediaWiki in interpreted mode. Extension setup file inclusions are slightly modified in a way that makes them register themselves for compilation. Then the same LocalSettings.php uses the compiled extension setup file when the compiled binary runs.
* Tested with Cite and ParserFunctions. The code which lets you have an extensions directory in a place other than $IP/../extensions is untested.
* Simplified WebStart.php slightly by using a custom $_SERVER variable to mark compiled mode. It will break if you don't use the supplied server.conf, but that will break a lot of things so don't do that.
* Fixed the core web entry points to include WebStart.php in compiled mode instead of interpreted.
* Made the build directory configurable. This is mostly so that I can grep the source tree without seeing loads of generated C++.
* In server.conf, added a rewrite rule allowing a /wiki/$1 article path.
* Removed server.conf log file location "/dev/stdout", breaks when you switch user
* Disable static content cache, breaks horribly when you set SourceRoot to a directory containing 7GB of files.
* Rewrote the run-server script in PHP, mostly to support the configurable build directory feature.
* Added an option to the run-server script to allow running in interpreted (hphpi) mode.
2011-05-30 13:49:09 +00:00
Alexandre Emsenhuber
ce9c8bf686 Same as r48631; added "@file" when needed, also added doc in redirect.php and install-utils.inc 2009-03-21 16:48:09 +00:00
Alexandre Emsenhuber
7176ccdf27 In continuation of r23243: is already created by Setup.php, it don't need to set twice. 2008-03-19 12:43:00 +00:00
Aryeh Gregor
a15c419b3d Remove ?>'s from files. They're pointless, and just asking for people to mess with the files and add trailing whitespace. (Yes, I looked over every one and reverted those that were bogus. Slash-enter a million times in less worked well enough, although it was a bit mind-numbing.) 2007-06-29 01:19:14 +00:00
Brion Vibber
8de3b6872f Fix drop-down for Nostalgia skin when $wgArticlePath is left to default interpolation.
Was skipping setup code, which is pretty.... useless. :)
2007-06-22 18:58:51 +00:00
Tim Starling
3ea576aa25 Consolidated web initialisation code into includes/WebStart.php. Moved profiling setup to a hook file "StartProfiler.php", following Brion's suggestion to merge Wikimedia's early profiling patch into subversion. Renamed Profiling.php and logProfilingData(), removed unnecessary wfProfileClose() calls. 2006-07-14 05:35:31 +00:00
Brion Vibber
266d41f165 * Added wfDie() wrapper, and some manual die(-1), to force the return code
to the shell to return nonzero when we crap out with an error.
2006-01-14 02:49:43 +00:00
Tim Starling
239ba39261 workaround for any current or future exploit of the $GLOBALS overwrite vulnerability 2005-10-31 21:14:07 +00:00
Tim Starling
572b08b565 unbroke nostalgia skin 2005-06-28 14:28:21 +00:00
Tom Gilder
dcfb2251cb Single quotes, just for the hell of it 2005-01-31 20:35:47 +00:00
Brion Vibber
6a87ccc06a url-encode the url 2004-10-14 07:49:22 +00:00
Jens Frank
39f1d761c9 Fixes needed to make redirect.php work with MEDIAWIKI checks,
i18n and without explicitely set include_path
2004-10-03 09:53:39 +00:00
Tim Starling
8f22cb45b1 include_once -> require_once 2004-05-07 13:43:10 +00:00
Brion Vibber
f4a62d9646 Fix for register_globals off 2004-04-10 23:57:25 +00:00
Erik Moeller
1dea93f758 using index.php and redirect.php instead of wiki.phtml and redirect.phtml
keeping phtml stubs around for compatibility and CVS history
2004-02-28 03:04:02 +00:00