MediaWiki
REL1_24
|
00001 <?php 00025 // Bail if PHP is too low 00026 if ( !function_exists( 'version_compare' ) || version_compare( PHP_VERSION, '5.3.2' ) < 0 ) { 00027 // We need to use dirname( __FILE__ ) here cause __DIR__ is PHP5.3+ 00028 require dirname( __FILE__ ) . '/includes/PHPVersionError.php'; 00029 wfPHPVersionError( 'load.php' ); 00030 } 00031 00032 require __DIR__ . '/includes/WebStart.php'; 00033 00034 wfProfileIn( 'load.php' ); 00035 00036 // URL safety checks 00037 if ( !$wgRequest->checkUrlExtension() ) { 00038 return; 00039 } 00040 00041 // Respond to resource loading request 00042 $resourceLoader = new ResourceLoader( 00043 ConfigFactory::getDefaultInstance()->makeConfig( 'main' ) 00044 ); 00045 $resourceLoader->respond( new ResourceLoaderContext( $resourceLoader, $wgRequest ) ); 00046 00047 wfProfileOut( 'load.php' ); 00048 wfLogProfilingData(); 00049 00050 // Shut down the database. foo()->bar() syntax is not supported in PHP4, and this file 00051 // needs to *parse* in PHP4, although we'll never get down here to worry about = vs =& 00052 $lb = wfGetLBFactory(); 00053 $lb->shutdown();