Manual:Index.php/pt-br

O arquivo index.php é o ponto de acesso principal para um site MediaWiki. O outro ponto de acesso principal é o arquivo que manipula solicitações para a  do MediaWiki.

Ações tomadas
A maioria dos pedidos resulta nas seguintes ações no arquivo :


 * 1) First, it includes, which includes  and.
 * 2) Next it instantiates a MediaWiki object called  which is defined in.
 * 3) It then checks the maxlag parameter, which may cause the request to be rejected.
 * 4) It calls the function   in, which creates a  object depending of the title and action parameters from the URL.
 * 5) If ajax is enabled and the   parameter is set to , then an  object will be created to handle that request and the script will stop after that.
 * 6) Otherwise some globals are stored in  to be used in the next steps.
 * 7) It calls   which does most of the work of the request.
 * 8) Then   is called.  That function does the deferred updates, runs jobs from the queue depending on  and outputs the HTML by calling.
 * 9) Finally,   is called to log profiling data.

Versão 1.18 ou posterior
As of MediaWiki version 1.18, some of the startup logic has been moved from index.php, and index.php performs the following actions:
 * 1) Check the version of PHP and if its not 5.2.3 or higher, display an error.
 * 2) Include, which in turn includes , and some other files.
 * 3) Instantiate a MediaWiki object called, which is defined in.
 * 4) Call.