MediaWiki  REL1_19
index.php
Go to the documentation of this file.
00001 <?php
00039 # Bail on old versions of PHP.  Pretty much every other file in the codebase
00040 # has structures (try/catch, foo()->bar(), etc etc) which throw parse errors in
00041 # PHP 4. Setup.php and ObjectCache.php have structures invalid in PHP 5.0 and
00042 # 5.1, respectively.
00043 if ( !function_exists( 'version_compare' ) || version_compare( phpversion(), '5.2.3' ) < 0 ) {
00044         require( dirname( __FILE__ ) . '/includes/PHPVersionError.php' );
00045         wfPHPVersionError( 'index.php' );
00046 }
00047 
00048 # Initialise common code.  This gives us access to GlobalFunctions, the
00049 # AutoLoader, and the globals $wgRequest, $wgOut, $wgUser, $wgLang and
00050 # $wgContLang, amongst others; it does *not* load $wgTitle
00051 if ( isset( $_SERVER['MW_COMPILED'] ) ) {
00052         require ( 'phase3/includes/WebStart.php' );
00053 } else {
00054         require ( dirname( __FILE__ ) . '/includes/WebStart.php' );
00055 }
00056 
00057 $mediaWiki = new MediaWiki();
00058 $mediaWiki->run();