Update git submodules
[mediawiki.git] / index.php
blob6f0ee3ffc8e37e187e7b80e649dca11f0bdaee8a
1 <?php // For broken web servers: ><pre>
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
11 // -------------------------------------------------
13 /**
14 * The main web entry point for web browser navigations, usually via an
15 * Action or SpecialPage subclass.
17 * This program is free software; you can redistribute it and/or modify
18 * it under the terms of the GNU General Public License as published by
19 * the Free Software Foundation; either version 2 of the License, or
20 * (at your option) any later version.
22 * This program is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU General Public License for more details.
27 * You should have received a copy of the GNU General Public License along
28 * with this program; if not, write to the Free Software Foundation, Inc.,
29 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30 * http://www.gnu.org/copyleft/gpl.html
32 * @file
33 * @ingroup entrypoint
36 define( 'MW_ENTRY_POINT', 'index' );
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'] ) );
44 require __DIR__ . '/includes/WebStart.php';
46 wfIndexMain();
48 function wfIndexMain() {
49 $mediaWiki = new MediaWiki();
50 $mediaWiki->run();