MediaWiki
REL1_24
|
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( PHP_VERSION, '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 require __DIR__ . '/includes/WebStart.php'; 00044 00045 $mediaWiki = new MediaWiki(); 00046 $mediaWiki->run();