MediaWiki  REL1_22
load.php
Go to the documentation of this file.
00001 <?php
00025 // Bail if PHP is too low
00026 if ( !function_exists( 'version_compare' ) || version_compare( phpversion(), '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 $resourceLoader->respond( new ResourceLoaderContext( $resourceLoader, $wgRequest ) );
00044 
00045 wfProfileOut( 'load.php' );
00046 wfLogProfilingData();
00047 
00048 // Shut down the database.  foo()->bar() syntax is not supported in PHP4, and this file
00049 // needs to *parse* in PHP4, although we'll never get down here to worry about = vs =&
00050 $lb = wfGetLBFactory();
00051 $lb->shutdown();