MediaWiki  1.23.12
load.php
Go to the documentation of this file.
1 <?php
25 // Bail if PHP is too low
26 if ( !function_exists( 'version_compare' ) || version_compare( phpversion(), '5.3.2' ) < 0 ) {
27  // We need to use dirname( __FILE__ ) here cause __DIR__ is PHP5.3+
28  require dirname( __FILE__ ) . '/includes/PHPVersionError.php';
29  wfPHPVersionError( 'load.php' );
30 }
31 
32 require __DIR__ . '/includes/WebStart.php';
33 
34 wfProfileIn( 'load.php' );
35 
36 // URL safety checks
37 if ( !$wgRequest->checkUrlExtension() ) {
38  return;
39 }
40 
41 // Respond to resource loading request
43 $resourceLoader->respond( new ResourceLoaderContext( $resourceLoader, $wgRequest ) );
44 
45 wfProfileOut( 'load.php' );
47 
48 // Shut down the database. foo()->bar() syntax is not supported in PHP4, and this file
49 // needs to *parse* in PHP4, although we'll never get down here to worry about = vs =&
51 $lb->shutdown();
ResourceLoaderContext
Object passed around to modules which contains information about the state of a specific loader reque...
Definition: ResourceLoaderContext.php:29
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
$lb
$lb
Definition: load.php:50
$resourceLoader
if(! $wgRequest->checkUrlExtension()) $resourceLoader
Definition: load.php:42
wfProfileIn
wfProfileIn( $functionname)
Begin profiling of a function.
Definition: Profiler.php:33
wfPHPVersionError
wfPHPVersionError( $type)
Display something vaguely comprehensible in the event of a totally unrecoverable error.
Definition: PHPVersionError.php:40
wfProfileOut
wfProfileOut( $functionname='missing')
Stop profiling of a function.
Definition: Profiler.php:46
ResourceLoader
Dynamic JavaScript and CSS resource loading system.
Definition: ResourceLoader.php:31
wfGetLBFactory
& wfGetLBFactory()
Get the load balancer factory object.
Definition: GlobalFunctions.php:3725
wfLogProfilingData
wfLogProfilingData()
Definition: GlobalFunctions.php:1273