This page is a translated version of the page Manual:Index.php and the translation is 33% complete.
Outdated translations are marked like this.

index.php est le principal point d'accès pour un site MediaWiki. L'autre point d'accès principal est api.php , qui gère les requêtes pour l'API de MediaWiki.

The URL of index.php can be customized using $wgScript .

Actions prises

Version de MediaWiki :

La plupart des requêtes résultent dans les actions suivantes dans index.php :

  1. Ensure the version of PHP is supported, otherwise display an error.
  1. First, it includes WebStart.php , which mainly just includes Setup.php .

This in turn sets up the PHP environment for MediaWiki, such as installing the class autoloader, including the vendor dependencies loading DefaultSettings.php , and applying the site's LocalSettings.php file.

  1. Next, it instantiates the MediaWiki class from MediaWiki.php , which is responsible for interpreting URL parameters like "title" and "action" to determine what the current request should do.

It then dispatches the relevant Action subclass to do that thing.

  1. Finally, MediaWiki::restInPeace() is called, which does things like closing database transactions, and running any deferred updates .

Voir aussi