MediaWiki REL1_41
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
36define( '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
41require_once dirname( __FILE__ ) . '/includes/PHPVersionCheck.php';
42wfEntryPointCheck( 'html', dirname( $_SERVER['SCRIPT_NAME'] ) );
43
44require __DIR__ . '/includes/WebStart.php';
45
47
48function wfIndexMain() {
49 $mediaWiki = new MediaWiki();
50 $mediaWiki->run();
51}
wfEntryPointCheck( $format='text', $scriptPath='/')
Check PHP version and that external dependencies are installed, and display an informative error if e...
wfIndexMain()
Definition index.php:48
A helper class for throttling authentication attempts.