MediaWiki  master
index.php
Go to the documentation of this file.
1 <?php // For broken web servers: ><pre>
2 
3 // If you are reading this in your web browser, your server is probably
4 // not configured correctly to run PHP applications!
5 //
6 // See the README, INSTALL, and UPGRADE files for basic setup instructions
7 // and pointers to the online documentation.
8 //
9 // https://www.mediawiki.org/wiki/Special:MyLanguage/MediaWiki
10 //
11 // -------------------------------------------------
12 
36 define( 'MW_ENTRY_POINT', 'index' );
37 
38 // Bail on old versions of PHP, or if composer has not been run yet to install
39 // dependencies. Using dirname( __FILE__ ) here because __DIR__ is PHP5.3+.
40 // phpcs:ignore MediaWiki.Usage.DirUsage.FunctionFound
41 require_once dirname( __FILE__ ) . '/includes/PHPVersionCheck.php';
42 wfEntryPointCheck( 'html', dirname( $_SERVER['SCRIPT_NAME'] ) );
43 
44 require __DIR__ . '/includes/WebStart.php';
45 
46 wfIndexMain();
47 
48 function wfIndexMain() {
49  // @todo Deprecate global $mediaWiki
50  // phpcs:ignore MediaWiki.NamingConventions.ValidGlobalName.allowedPrefix
51  global $mediaWiki;
52  $mediaWiki = new MediaWiki();
53  $mediaWiki->run();
54 }
MediaWiki
A helper class for throttling authentication attempts.
wfIndexMain
wfIndexMain()
Definition: index.php:48
wfEntryPointCheck
wfEntryPointCheck( $format='text', $scriptPath='/')
Check PHP version and that external dependencies are installed, and display an informative error if e...
Definition: PHPVersionCheck.php:337