MediaWiki
REL1_22
|
00001 <?php 00033 # Bail on old versions of PHP. Pretty much every other file in the codebase 00034 # has structures (try/catch, foo()->bar(), etc etc) which throw parse errors in 00035 # PHP 4. Setup.php and ObjectCache.php have structures invalid in PHP 5.0 and 00036 # 5.1, respectively. 00037 if ( !function_exists( 'version_compare' ) || version_compare( phpversion(), '5.3.2' ) < 0 ) { 00038 // We need to use dirname( __FILE__ ) here cause __DIR__ is PHP5.3+ 00039 require dirname( __FILE__ ) . '/includes/PHPVersionError.php'; 00040 wfPHPVersionError( 'index.php' ); 00041 } 00042 00043 # Initialise common code. This gives us access to GlobalFunctions, the 00044 # AutoLoader, and the globals $wgRequest, $wgOut, $wgUser, $wgLang and 00045 # $wgContLang, amongst others; it does *not* load $wgTitle 00046 require __DIR__ . '/includes/WebStart.php'; 00047 00048 $mediaWiki = new MediaWiki(); 00049 $mediaWiki->run();