MediaWiki  master
WebStart.php File Reference

This does the initial set up for a web request. More...

Go to the source code of this file.

Variables

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

Detailed Description

This does the initial set up for a web request.

It does some security checks, loads autoloaders, constants, and global functions, starts the profiler, loads the configuration, and loads Setup.php, which loads extensions using the extension registration system and initializes the application's global state.

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.

Variable Documentation

◆ $IP

$IP = getenv( 'MW_INSTALL_PATH' )

Definition at line 41 of file WebStart.php.

Referenced by CreateCommonPasswordCdb\__construct(), CommandLineInstaller\__construct(), ParserTestTopLevelSuite\__construct(), Maintenance\__construct(), ApiQuerySiteinfo\appendGeneralInfo(), ApiQuerySiteinfo\appendInstalledLibraries(), AutoLoader\autoload(), MediaWiki\Shell\FirejailCommand\buildFinalCommand(), AutoLoaderStructureTest\checkAutoLoadConf(), MysqlUpdater\doInterwikiUpdate(), Installer\envCheckUploadsDirectory(), Installer\envPrepPath(), CheckComposerLockUpToDate\execute(), HHVMMakeRepo\execute(), CheckLess\execute(), DateFormats\execute(), DumpUploads\execute(), CleanupSpam\execute(), GenerateNormalizerDataMl\execute(), GenerateJsonI18n\execute(), SpecialVersion\execute(), GenerateNormalizerDataAr\execute(), MwSql\execute(), ManageForeignResources\execute(), FindHooks\execute(), CommandLineInstaller\execute(), MWDocGen\execute(), FindDeprecated\execute(), ResourceLoaderModule\expandRelativePaths(), ResourceLoaderFileModule\extractBasePaths(), ResourceLoaderImageModule\extractLocalBasePath(), IcuCollation\fetchFirstLetterData(), GenerateCollationData\generateFirstChars(), GitInfo\getCacheFilePath(), SiteConfiguration\getConfig(), SpecialVersion\getCreditsForExtension(), Installer\getExistingLocalSettings(), SpecialVersion\getExternalLibraries(), FindDeprecated\getFiles(), Language\getJsonMessagesFileName(), LocalisationCache\getMessagesDirs(), Language\getMessagesFileName(), LocalisationCacheTest\getMockLocalisationCache(), ApiBase\getModuleSourceInfo(), InstallerOverrides\getOverrides(), ResourceLoaderModule\getRelativePaths(), ResourceLoaderStartUpModule\getScript(), SkinFallbackTemplate\getSnippetForSkin(), DatabaseInstaller\getSqlFilePath(), SpecialVersion\getVersion(), SpecialVersion\getVersionLinkedGit(), MediaWiki\Tests\Maintenance\DumpTestCase\getXmlSchemaPath(), File\iconThumb(), Installer\includeExtensions(), MWDocGen\init(), ResourceLoader\isEmptyObject(), LocalisationCache\loadPluralFiles(), Maintenance\loadSettings(), TextPassDumper\openSpawn(), DatabaseUpdater\patchPath(), DatabaseInstaller\populateInterwikiTable(), DatabaseSqliteTest\prepareTestDB(), FirejailCommandTest\provideBuildFinalCommand(), UploadBaseTest\provideDetectScriptInSvg(), FirejailCommandIntegrationTest\provideExecute(), MediaWikiServicesTest\provideGetService(), MergeMessageFileList\readFile(), LocalisationCache\readSourceFilesAndRegisterDeps(), ResourceLoader\registerTestModules(), GitInfo\repo(), MimeAnalyzerTest\setUp(), UploadFromUrlTestSuite\setUp(), Maintenance\setup(), SqliteInstaller\setupSearchIndex(), ParserTestRunner\setupUploadBackend(), OracleInstaller\setupUser(), PasswordPolicyChecksTest\testCheckPopularPasswordBlacklist(), MediaWikiServicesTest\testDefaultServiceWiringServicesHaveTests(), DatabaseSqliteTest\testEntireSchema(), FileBackendTest\testGetContentType(), ExtensionProcessorTest\testGlobalSettingsDocumentedInSchema(), ApiQuerySiteinfoTest\testInstalledLibraries(), CommandTest\testOutput(), MSCompoundFileReaderTest\testReadFile(), MSCompoundFileReaderTest\testReadFileInvalid(), ReleaseNotesTest\testReleaseNotesFilesExistAndAreNotMalformed(), ServiceWiringTest\testServicesAreSorted(), StoreBatchTest\teststore(), DatabaseIntegrationTest\testStoredFunctions(), DatabaseSqliteTest\testUpgrades(), GitInfoTest\testValidJsonData(), OutputPage\transformResourcePath(), Language\transformUsingPairFile(), and wfGetPrecompiledData().

◆ if

if ($IP===false) if (!defined('MW_CONFIG_CALLBACK')) if(!defined( 'MW_SETUP_CALLBACK'))

Definition at line 66 of file WebStart.php.

◆ MEDIAWIKI

const MEDIAWIKI true

Definition at line 38 of file WebStart.php.