MediaWiki REL1_37
WebStart.php File Reference

The set up for all MediaWiki web requests. More...

Go to the source code of this file.

Functions

if($IP===false) wfWebStartNoLocalSettings ()
 
if(!defined('MW_CONFIG_CALLBACK')) wfWebStartSetup ()
 

Variables

 $IP = getenv( 'MW_INSTALL_PATH' )
 
 if (!defined('MW_SETUP_CALLBACK'))
 
const MEDIAWIKI true
 

Detailed Description

The set up for all MediaWiki web requests.

It does:

  • web-related security checks,
  • decide how and from where to load site configuration (LocalSettings.php),
  • load Setup.php.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html

Definition in file WebStart.php.

Function Documentation

◆ wfWebStartNoLocalSettings()

if( $IP===false) wfWebStartNoLocalSettings ( )
Returns
never

Definition at line 57 of file WebStart.php.

References $IP.

◆ wfWebStartSetup()

if(!defined( 'MW_CONFIG_CALLBACK')) wfWebStartSetup ( )

Definition at line 77 of file WebStart.php.

Variable Documentation

◆ $IP

$IP = getenv( 'MW_INSTALL_PATH' )

Definition at line 49 of file WebStart.php.

Referenced by CommandLineInstaller\__construct(), ApiQuerySiteinfo\appendGeneralInfo(), ApiQuerySiteinfo\appendInstalledLibraries(), MediaWiki\Shell\CommandFactory\create(), Installer\envCheckUploadsDirectory(), Installer\envPrepPath(), SpecialVersion\execute(), CheckComposerLockUpToDate\execute(), CleanupSpam\execute(), DumpUploads\execute(), FindDeprecated\execute(), GenerateJsonI18n\execute(), GenerateSchemaChangeSql\execute(), GenerateSchemaSql\execute(), CommandLineInstaller\execute(), DateFormats\execute(), GenerateNormalizerDataAr\execute(), GenerateNormalizerDataMl\execute(), ManageForeignResources\execute(), GeneratePhpCharToUpperMappings\execute(), MWDocGen\execute(), MwSql\execute(), Version\execute(), ResourceLoaderModule\expandRelativePaths(), ResourceLoaderFileModule\extractBasePaths(), ResourceLoaderImageModule\extractLocalBasePath(), ResourceLoaderOOUIIconPackModule\extractLocalBasePath(), IcuCollation\fetchFirstLetterData(), GenerateCollationData\generateFirstChars(), GitInfo\getCacheFilePath(), SiteConfiguration\getConfig(), SpecialVersion\getCreditsForExtension(), Installer\getExistingLocalSettings(), SpecialVersion\getExternalLibraries(), FindDeprecated\getFiles(), SqliteInstaller\getGlobalDefaults(), Language\getGrammarTransformations(), MediaWiki\Languages\LanguageNameUtils\getJsonMessagesFileName(), LocalisationCache\getMessagesDirs(), MediaWiki\Languages\LanguageNameUtils\getMessagesFileName(), ApiBase\getModuleSourceInfo(), InstallerOverrides\getOverrides(), IcuCollation\getPrecompiledData(), ResourceLoaderModule\getRelativePaths(), SkinFallback\getSnippetForSkin(), DatabaseInstaller\getSqlFilePath(), SpecialVersion\getVersion(), SpecialVersion\getVersionLinkedGit(), File\iconThumb(), Installer\includeExtensionFiles(), MWDocGen\init(), ExternalStoreDB\initializeTable(), Maintenance\loadSettings(), ComposerPhpunitXmlCoverageEdit\onEvent(), TextPassDumper\openSpawn(), DatabaseUpdater\patchPath(), DatabaseInstaller\populateInterwikiTable(), MergeMessageFileList\readFile(), GitInfo\repo(), Maintenance\setup(), SqliteInstaller\setupSearchIndex(), OutputPage\transformResourcePath(), and wfWebStartNoLocalSettings().

◆ if

if(!defined( 'MW_SETUP_CALLBACK')) ( defined'MW_SETUP_CALLBACK')

Definition at line 86 of file WebStart.php.

◆ MEDIAWIKI

const MEDIAWIKI true

Definition at line 46 of file WebStart.php.