MediaWiki  REL1_19
load.php
Go to the documentation of this file.
00001 <?php
00026 // Bail if PHP is too low
00027 if ( !function_exists( 'version_compare' ) || version_compare( phpversion(), '5.2.3' ) < 0 ) {
00028         require( dirname( __FILE__ ) . '/includes/PHPVersionError.php' );
00029         wfPHPVersionError( 'load.php' );
00030 }
00031 
00032 if ( isset( $_SERVER['MW_COMPILED'] ) ) {
00033         require ( 'phase3/includes/WebStart.php' );
00034 } else {
00035         require ( dirname( __FILE__ ) . '/includes/WebStart.php' );
00036 }
00037 
00038 wfProfileIn( 'load.php' );
00039 
00040 // URL safety checks
00041 if ( !$wgRequest->checkUrlExtension() ) {
00042         return;
00043 }
00044 
00045 // Respond to resource loading request
00046 $resourceLoader = new ResourceLoader();
00047 $resourceLoader->respond( new ResourceLoaderContext( $resourceLoader, $wgRequest ) );
00048 
00049 wfProfileOut( 'load.php' );
00050 wfLogProfilingData();
00051 
00052 // Shut down the database.  foo()->bar() syntax is not supported in PHP4, and this file
00053 // needs to *parse* in PHP4, although we'll never get down here to worry about = vs =&
00054 $lb = wfGetLBFactory();
00055 $lb->shutdown();