MediaWiki  1.23.2
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' )
 
 $wgProfiler = array()
 
 $wgRequestTime = microtime( true )
 
if(function_exists( 'getrusage')) else
 
 if ($IP===false)
 
const MEDIAWIKI true
 

Detailed Description

This does the initial set up for a web request.

It does some security checks, starts the profiler and loads the configuration, and optionally loads Setup.php depending on whether MW_NO_SETUP is defined.

Setup.php (if loaded) then sets up GlobalFunctions, the AutoLoader, and the configuration globals (though not $wgTitle).

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 88 of file WebStart.php.

Referenced by CommandLineInstaller\__construct(), Maintenance\__construct(), ResourceLoaderFileModule\__construct(), ResourceLoader\__construct(), AutoLoader\autoload(), AutoLoaderTest\checkAutoLoadConf(), MWInit\compiledPath(), MysqlUpdater\doInterwikiUpdate(), Installer\envCheckPath(), Installer\envCheckUploadsDirectory(), CheckLess\execute(), CountMessages\execute(), DateFormats\execute(), CleanupSpam\execute(), MwSql\execute(), GenerateNormalizerDataMl\execute(), UploadDumper\execute(), GenerateNormalizerDataAr\execute(), GenerateUtf8Case\execute(), SpecialVersion\execute(), FindHooks\execute(), PHPUnitMaintClass\execute(), CommandLineInstaller\execute(), MWDocGen\execute(), GenerateCollationData\generateFirstChars(), Language\getClassFileName(), SiteConfiguration\getConfig(), SpecialVersion\getCreditsForExtension(), Installer\getExistingLocalSettings(), Language\getJsonMessagesFileName(), Language\getMessagesFileName(), ResourceLoaderStartUpModule\getModifiedTime(), DatabaseBase\getSchemaPath(), ResourceLoaderStartUpModule\getScript(), SpecialVersion\getVersion(), SpecialVersion\getVersionLinkedGit(), SpecialVersion\getVersionLinkedSvn(), Installer\includeExtensions(), MWDocGen\init(), MWInit\interpretedPath(), Language\isKnownLanguageTag(), LocalisationCache\loadPluralFiles(), Maintenance\loadSettings(), TextPassDumper\openSpawn(), DatabaseBase\patchPath(), DatabaseInstaller\populateInterwikiTable(), Language\preloadLanguageClass(), DatabaseSqliteTest\prepareDB(), TextPassDumper\processOption(), MergeMessageFileList\readFile(), LocalisationCache\readSourceFilesAndRegisterDeps(), GitInfo\repo(), UploadFromUrlTestSuite\setUp(), Maintenance\setup(), SqliteInstaller\setupSearchIndex(), UploadFromUrlTestSuite\setupUploadDir(), OracleInstaller\setupUser(), MediaWikiParserTest\suite(), DatabaseSqliteTest\testEntireSchema(), StoreBatchTest\teststore(), DatabaseTest\testStoredFunctions(), and DatabaseSqliteTest\testUpgrades().

◆ $wgProfiler

$wgProfiler = array()

Definition at line 107 of file WebStart.php.

Referenced by Profiler\instance().

◆ $wgRequestTime

$wgRequestTime = microtime( true )

◆ else

if (is_readable("$IP/vendor/autoload.php")) if (defined('MW_CONFIG_CALLBACK')) else
Initial value:
{
$wgRUstart = array()

Definition at line 72 of file WebStart.php.

◆ if

if( $IP===false)

Definition at line 89 of file WebStart.php.

◆ MEDIAWIKI

const MEDIAWIKI true

Definition at line 82 of file WebStart.php.

array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.