MediaWiki master
NoLocalSettings.php File Reference

Display an error page when there is no LocalSettings.php file. More...

Go to the source code of this file.

Variables

 $installerStarted = ( $success && isset( $_SESSION['installData'] ) )
 
 $matches = []
 
 $path = '/'
 
 $success = session_start()
 
 $templateParser = new TemplateParser( null, new EmptyBagOStuff() )
 
foreach(array_filter(explode('/', $_SERVER[ 'PHP_SELF'])) as $part) if(!function_exists( 'session_name')) else
 
 try
 

Detailed Description

Display an error page when there is no LocalSettings.php file.

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 NoLocalSettings.php.

Variable Documentation

◆ $installerStarted

$installerStarted = ( $success && isset( $_SESSION['installData'] ) )

Definition at line 47 of file NoLocalSettings.php.

◆ $matches

$matches = []

Definition at line 27 of file NoLocalSettings.php.

Referenced by CheckStorage\check(), UploadBase\checkXMLEncodingMissmatch(), Wikimedia\Rdbms\SQLiteField\defaultValue(), StringUtils\delimiterReplace(), DeprecatedInterfaceFinder\enterNode(), MediaWiki\Parser\Parser\extractTagsAndParams(), MediaWiki\Request\WebRequest\extractTitle(), MediaWiki\Request\PathRouter\extractTitle(), MediaWiki\Request\WebRequest\getAcceptLang(), ClassCollector\getClasses(), Wikimedia\Http\MultiHttpClient\getCurlHandle(), MediaWiki\Utils\GitInfo\getHeadSHA1(), MediaWiki\Utils\GitInfo\getHeadViewUrl(), MediaWiki\Title\Title\getLocalURL(), TransformationalImageHandler\getMagickVersion(), MediaWiki\Search\TitleMatcher\getNearMatchInternal(), MediaWiki\Request\WebRequest\getPathInfo(), MediaWiki\Content\CssContent\getRedirectTarget(), MediaWiki\Content\JavaScriptContent\getRedirectTarget(), NumericUppercaseCollation\getSortKey(), MediaWiki\Output\OutputPage\getUnprefixedDisplayTitle(), FormatMetadata\getVisibleFields(), TableCleanup\hexChar(), SearchHighlighter\highlightText(), MediaWiki\Request\PathRouter\internalParse(), MediaWiki\Request\WebRequest\interpolateTitle(), DifferenceEngine\localiseLineNumbers(), MediaWiki\Diff\TextDiffer\BaseTextDiffer\localizeLineNumbers(), MediaWiki\Request\PathRouter\parse(), Wikimedia\Http\HttpAcceptParser\parseAccept(), MediaWiki\Composer\PhpUnitSplitter\PhpUnitConsoleOutputProcessor\processInput(), MediaWiki\Composer\PhpUnitSplitter\PhpUnitFailure\processLine(), MediaWiki\Parser\Parser\renderImageGallery(), MediaWiki\Parser\LinkHolderArray\replaceInternal(), MediaWiki\Parser\LinkHolderArray\replaceInterwiki(), StringUtils\replaceMarkup(), MediaWiki\Parser\Parser\replaceTableOfContentsMarker(), MediaWiki\Parser\LinkHolderArray\replaceText(), DjVuImage\retrieveMetaData(), SVGReader\scaleSVGUnit(), PrefixSearch\specialSearch(), MediaWiki\Title\MediaWikiTitleCodec\splitTitleString(), SearchMySQL\stripForSearchCallback(), MediaWiki\OutputTransform\Stages\ExtractBody\transformText(), EnConverter\translate(), MediaWiki\Language\LanguageConverter\translateWithoutRomanNumbers(), MediaWiki\Api\ApiOpenSearch\trimExtract(), MediaWiki\Language\Language\ucwordbreaks(), MediaWiki\Language\Language\ucwords(), and wfBaseName().

◆ $path

$path = '/'

Definition at line 28 of file NoLocalSettings.php.

Referenced by Wikimedia\FileBackend\FileIteration\FSFileBackendList\__construct(), ThumbnailImage\__construct(), MediaWiki\ResourceLoader\Image\__construct(), UploadStashFile\__construct(), MediaWiki\Utils\GitInfo\__construct(), UnregisteredLocalFile\__construct(), MediaWiki\Rest\Handler\Helper\PageRedirectHelper\__construct(), MediaWiki\WikiMap\WikiReference\__construct(), MediaWiki\Settings\Source\PhpSettingsSource\__construct(), MediaWiki\Settings\Source\FileSource\__construct(), MediaWiki\Registration\MissingExtensionException\__construct(), FSLockManager\__destruct(), MemcLockManager\__destruct(), RedisLockManager\__destruct(), Wikimedia\FileBackend\FileBackendMultiWrite\accessibilityCheck(), MediaWiki\Request\PathRouter\add(), MediaWiki\Api\ApiResult\addArrayType(), MediaWiki\Api\ApiResult\addArrayTypeRecursive(), MediaWiki\Api\ApiResult\addContentField(), MediaWiki\Api\ApiResult\addContentValue(), MediaWiki\Api\ApiResult\addIndexedTagName(), MediaWiki\Api\ApiResult\addIndexedTagNameRecursive(), Wikimedia\FileBackend\SwiftFileBackend\addMissingHashMetadata(), MediaWiki\Api\ApiResult\addPreserveKeysList(), MediaWiki\Rest\Module\MatcherBasedModule\addRoute(), Wikimedia\FileBackend\FSFileBackend\addShellboxInputFile(), FileRepo\addShellboxInputFile(), MediaWiki\Request\PathRouter\addStrict(), MediaWiki\Api\ApiResult\addSubelementsList(), MediaWiki\Api\ApiResult\addValue(), MediaWiki\Api\ApiErrorFormatter\addWarningOrError(), MediaWiki\Api\ApiErrorFormatter_BackCompat\addWarningOrError(), MediaWiki\Api\ApiQuerySiteinfo\appendInstalledLibraries(), MediaWiki\Installer\DatabaseUpdater\applyPatch(), MediaWiki\Installer\Task\Task\applySourceFile(), Wikimedia\FileBackend\FileOps\FileStatePredicates\assumeFileDoesNotExist(), Wikimedia\FileBackend\FileOps\FileStatePredicates\assumeFileExists(), CheckStorage\check(), FindOrphanedFiles\checkFiles(), FileRepo\cleanupBatch(), LocalRepo\cleanupDeletedBatch(), Wikimedia\FileBackend\FileBackendStore\clearCache(), MediaWiki\ResourceLoader\FileModule\compileLessString(), Wikimedia\FileBackend\FileBackendMultiWrite\consistencyCheck(), Wikimedia\FileBackend\FileIteration\SwiftFileBackendFileList\current(), Wikimedia\FileBackend\FileBackendStore\deleteFileCache(), MediaWiki\Deferred\LinksUpdate\ExternalLinksTable\deleteLink(), Wikimedia\FileBackend\FileOps\FileOp\dependsOn(), MediaWiki\Installer\WebInstaller\detectWebPaths(), MediaWiki\Request\PathRouter\doAdd(), Wikimedia\FileBackend\FSFileBackend\doClearCache(), Wikimedia\FileBackend\FileBackendStore\doConcatenate(), Wikimedia\FileBackend\MemoryFileBackend\doDirectoryExists(), Wikimedia\FileBackend\FileBackendStore\doGetFileContentsMulti(), Wikimedia\FileBackend\SwiftFileBackend\doGetFileContentsMulti(), Wikimedia\FileBackend\SwiftFileBackend\doGetFileStatMulti(), Wikimedia\FileBackend\SwiftFileBackend\doGetLocalCopyMulti(), FSLockManager\doLock(), NullLockManager\doLock(), QuorumLockManager\doLockByType(), FSLockManager\doSingleLock(), FSLockManager\doSingleUnlock(), FSLockManager\doUnlock(), NullLockManager\doUnlock(), QuorumLockManager\doUnlockByType(), FileRepo\enumFilesInStorage(), MediaWiki\Installer\WebInstaller\envCheckPath(), TransformationalImageHandler\escapeMagickInput(), TransformationalImageHandler\escapeMagickOutput(), TransformationalImageHandler\escapeMagickPath(), MediaWiki\Api\ApiHelp\execute(), MediaWiki\Api\ApiParamInfo\execute(), MediaWiki\Api\ApiQueryTokens\execute(), MediaWiki\FileRepo\AuthenticatedFileEntryPoint\execute(), MediaWiki\Rest\Handler\RedirectHandler\execute(), CheckImages\execute(), CopyFileBackend\execute(), DeleteArchivedFiles\execute(), FindMissingFiles\execute(), FindOrphanedFiles\execute(), GenerateJsonI18n\execute(), ValidateRegistrationFile\execute(), MediaWiki\SpecialPage\SpecialPageFactory\executePath(), MediaWiki\ResourceLoader\Module\expandRelativePaths(), Wikimedia\FileBackend\FileBackend\extensionFromPath(), MediaWiki\Registration\ExtensionProcessor\extractAttributes(), MediaWiki\Registration\ExtensionProcessor\extractCredits(), MediaWiki\Registration\ExtensionProcessor\extractDomainEventSubscribers(), MediaWiki\Registration\ExtensionProcessor\extractHooks(), MediaWiki\Registration\ExtensionProcessor\extractInfo(), MediaWiki\Registration\ExtensionProcessor\extractInfoFromFile(), MediaWiki\Registration\ExtensionProcessor\extractInstallerTasks(), MediaWiki\Registration\ExtensionProcessor\extractPathBasedGlobal(), MediaWiki\Request\WebRequest\extractTitle(), MediaWiki\Request\PathRouter\extractTitle(), FileRepo\fileExistsBatch(), ExecutableFinder\findExecutable(), ExecutableFinder\findInDefaultPaths(), AutoloadGenerator\forceClassPath(), MemcLockManager\freeLocksOnServer(), RedisLockManager\freeLocksOnServer(), AutoloadGenerator\generateJsonAutoload(), AutoloadGenerator\generatePHPAutoload(), File\getArchiveRel(), File\getArchiveThumbUrl(), File\getArchiveUrl(), File\getArchiveVirtualUrl(), FileBackendDBRepoWrapper\getBackendPath(), FileBackendDBRepoWrapper\getBackendPaths(), QuorumLockManager\getBucketFromPath(), XhprofData\getCriticalPath(), FileRepo\getDeletedHashPath(), Wikimedia\FileBackend\MemoryFileBackend\getDirectoryListInternal(), Wikimedia\FileBackend\SwiftFileBackend\getDirListPageInternal(), MediaWiki\Api\ApiQueryAllLinks\getExamplesMessages(), MediaWiki\Api\ApiQueryBacklinksprop\getExamplesMessages(), MediaWiki\Api\ApiQueryLinks\getExamplesMessages(), MediaWiki\Api\ApiRemoveAuthenticationData\getExamplesMessages(), MediaWiki\Deferred\LinksUpdate\ExternalLinksTable\getExistingLinkIDs(), UploadStash\getExtensionForPath(), MediaWiki\Installer\Installer\getExtensionInfo(), MediaWiki\Specials\SpecialVersion\getExternalLibraries(), MediaWiki\HTMLForm\Field\HTMLFormFieldCloner\getFieldPath(), UploadStash\getFile(), Wikimedia\FileBackend\FileBackendMultiWrite\getFileContentsMulti(), Wikimedia\FileBackend\FileBackendStore\getFileContentsMulti(), Wikimedia\FileBackend\MemoryFileBackend\getFileListInternal(), FileRepo\getFileSha1(), Wikimedia\FileBackend\FileBackendStore\getFileSha1Base36(), FileRepo\getFileSize(), Wikimedia\FileBackend\FileBackendStore\getFileStat(), FileRepo\getFileTimestamp(), MediaWiki\Site\MediaWikiSite\getFileUrl(), Wikimedia\FileBackend\FileBackendStore\getFileXAttributes(), MediaWiki\Api\ApiBase\getFinalParamDescription(), MediaWiki\Installer\SqliteInstaller\getGlobalDefaults(), FileRepo\getHashPathForLevel(), MediaWiki\ResourceLoader\Image\getImageData(), ImageHandler\getImageSize(), FileRepo\getLocalCopy(), Wikimedia\FileBackend\FileBackendMultiWrite\getLocalCopyMulti(), MediaTransformOutput\getLocalCopyPath(), MediaWiki\ResourceLoader\FileModule\getLocalPath(), MediaWiki\ResourceLoader\Image\getLocalPath(), MediaWiki\ResourceLoader\ImageModule\getLocalPath(), FileRepo\getLocalReference(), Wikimedia\FileBackend\FileBackendMultiWrite\getLocalReferenceMulti(), Wikimedia\FileBackend\FileBackendStore\getLocalReferenceMulti(), MemcLockManager\getLocksOnServer(), RedisLockManager\getLocksOnServer(), MediaWiki\Api\ApiBase\getModuleFromPath(), MediaWiki\Api\ApiBase\getModuleSourceInfo(), MediaWiki\Deferred\LinksUpdate\ExternalLinksTable\getNewLinkIDs(), MediaWiki\ResourceLoader\FileModule\getPackageFileType(), MediaWiki\ResourceLoader\FileModule\getPath(), File\getPath(), MediaWiki\Request\WebRequest\getPathInfo(), MWFileProps\getPropsFromPath(), MediaWiki\Site\Site\getProtocol(), UploadBase\getRealPath(), MediaWiki\ResourceLoader\Module\getRelativePaths(), Wikimedia\FileBackend\FileIteration\FSFileBackendList\getRelPath(), MediaWiki\ResourceLoader\FileModule\getRemotePath(), MediaWiki\Api\ApiResult\getResultData(), Wikimedia\UUID\GlobalIdGenerator\getSequentialPerNodeIDs(), MediaWiki\Specials\SpecialWatchlist\getShortDescriptionHelper(), DjVuHandler\getSizeAndMetadata(), ImageHandler\getSizeAndMetadata(), MediaHandler\getSizeAndMetadataWithFallback(), ExternalStoreFactory\getStoreForUrl(), MediaWiki\Deferred\LinksUpdate\ExternalLinksTable\getStringArray(), MediaWiki\ResourceLoader\FileModule\getStyleSheetLang(), MediaWiki\ResourceLoader\getThemePath(), MediaWiki\ResourceLoader\getThemePaths(), ForeignAPIFile\getThumbPath(), UploadStashFile\getThumbPath(), File\getThumbRel(), File\getThumbVirtualUrl(), File\getVirtualUrl(), FileRepo\getVirtualUrl(), Wikimedia\FileBackend\FileBackendStore\ingestFreshFileStats(), MediaWiki\Rest\Handler\initContext(), FileRepo\initDirectory(), MediaWiki\Rest\Module\ExtraRoutesModule\initRoutes(), MediaWiki\Rest\Module\SpecBasedModule\initRoutes(), MediaWiki\Deferred\LinksUpdate\ExternalLinksTable\insertLink(), MediaWiki\Request\PathRouter\internalParse(), MediaWiki\Deferred\LinksUpdate\ExternalLinksTable\isExisting(), MediaWiki\Deferred\LinksUpdate\ExternalLinksTable\isInNewSet(), Wikimedia\FileBackend\FileBackend\isPathTraversalFree(), Wikimedia\FileBackend\FileBackend\isStoragePath(), MediaWiki\Settings\Source\PhpSettingsSource\load(), LocalFile\loadFromFile(), Wikimedia\FileBackend\SwiftFileBackend\loadListingStatInternal(), MediaWiki\Settings\WikiFarmSettingsLoader\loadWikiFarmSettings(), MediaWiki\Site\SiteImporter\makeSite(), MediaWiki\Request\PathRouter\makeWeight(), MediaWiki\Rest\PathTemplateMatcher\PathMatcher\match(), ConvertExtensionToRegistration\needsComposerAutoloader(), UnregisteredLocalFile\newFromPath(), MediaWiki\FileBackend\FSFile\TempFSFileFactory\newTempFSFile(), Wikimedia\FileBackend\FileBackend\normalizeContainerPath(), Wikimedia\FileBackend\FileOps\FileOp\normalizeIfValidStoragePath(), LockManager\normalizePathsByType(), AutoloadGenerator\normalizePathSeparator(), MediaWiki\HookContainer\HookRunner\onImgAuthBeforeStream(), Wikimedia\Rdbms\DatabaseSqlite\open(), MediaWiki\Request\PathRouter\parse(), ExternalStoreDB\parseURL(), MediaWiki\Api\ApiPageSet\populateGeneratorData(), Wikimedia\FileBackend\FileOps\FileOp\precheck(), Wikimedia\FileBackend\FileBackendStore\preloadCache(), Wikimedia\FileBackend\FileBackendStore\primeContainerCache(), Wikimedia\FileBackend\FileBackendStore\primeFileCache(), MediaWiki\ResourceLoader\CodexModule\processStyle(), MediaWiki\ResourceLoader\FileModule\processStyle(), PruneFileCache\prune_directory(), MediaWiki\Composer\ComposerSystemInterface\putFileContents(), MediaWiki\Registration\ExtensionRegistry\queue(), FileRepo\quickPurge(), FileRepo\quickPurgeBatch(), AutoloadGenerator\readDir(), MediaWiki\Registration\ExtensionRegistry\readFromQueue(), MediaWiki\ResourceLoader\OOUIImageModule\readJSONFile(), MediaWiki\ResourceLoader\FileModule\readStyleFile(), MemcLockManager\recordKeyForPath(), RedisLockManager\recordKeyForPath(), ConvertExtensionToRegistration\removeAutodiscoveredParserTestFiles(), MediaWiki\Api\ApiResult\removePreserveKeysList(), MediaWiki\Api\ApiResult\removeSubelementsList(), MediaWiki\Api\ApiResult\removeValue(), Wikimedia\FileBackend\FileOps\FileOp\resolveFileExistence(), Wikimedia\FileBackend\FileOps\FileStatePredicates\resolveFileExistence(), Wikimedia\FileBackend\FileOps\FileOp\resolveFileSha1Base36(), Wikimedia\FileBackend\FileOps\FileStatePredicates\resolveFileSha1Base36(), Wikimedia\FileBackend\FileOps\FileOp\resolveFileSize(), Wikimedia\FileBackend\FileOps\FileStatePredicates\resolveFileSize(), MediaWiki\Settings\Source\SettingsFileUtils\resolveRelativeLocation(), FileRepo\resolveToStoragePathIfVirtual(), Wikimedia\FileBackend\FileBackendMultiWrite\resyncFiles(), MediaWiki\Api\ApiQueryRandom\runQuery(), EraseArchivedFile\scrubVersion(), CookieJar\serializeToHttpRequest(), Wikimedia\Rdbms\DatabaseSqlite\serverIsReadOnly(), AutoloadGenerator\setExcludePaths(), Wikimedia\FileBackend\FileBackendStore\setFileCache(), MediaWiki\Site\MediaWikiSite\setFilePath(), MediaWiki\Site\MediaWikiSite\setPagePath(), MediaWiki\Deferred\LinksUpdate\ExternalLinksTable\setParserOutput(), AutoloadGenerator\setPsr4Namespaces(), MediaWiki\ResourceLoader\FileModule\setSkinStylesOverride(), Wikimedia\FileBackend\FileOps\FileStatePredicates\snapshot(), Licenses\stackItem(), UploadStash\stashFile(), UploadSourceAdapter\stream_open(), MediaWiki\Maintenance\SevenZipStream\stream_open(), FileRepo\streamFileWithStatus(), MediaWiki\Api\ApiMain\substituteResultWithError(), MediaWiki\Output\OutputPage\transformResourcePath(), FileBackendDBRepoWrapper\translateArrayResults(), MediaWiki\Specials\SpecialRevisionDelete\tryShowFile(), MediaWiki\Maintenance\SevenZipStream\url_stat(), MediaWiki\Registration\ExtensionJsonValidator\validate(), MediaWiki\Request\PathRouter\validateRoute(), wfBaseName(), wfLoadExtension(), wfLoadSkin(), and wfRelativePath().

◆ $success

◆ $templateParser

$templateParser = new TemplateParser( null, new EmptyBagOStuff() )

Definition at line 50 of file NoLocalSettings.php.

◆ else

foreach(array_filter(explode('/', $_SERVER['PHP_SELF'])) as $part) if (!function_exists('session_name')) else
Initial value:
{
if ( !wfIniGetBool( 'session.auto_start' ) ) {
session_name( 'mw_installer_session' );
}
$oldReporting = error_reporting( E_ALL & ~E_NOTICE )
wfIniGetBool( $setting)
Safety wrapper around ini_get() for boolean settings.

Definition at line 40 of file NoLocalSettings.php.

◆ try

try
Initial value:
{
echo $templateParser->processTemplate(
'NoLocalSettings',
[
'version' => ( defined( 'MW_VERSION' ) ? MW_VERSION : 'VERSION' ),
'path' => $path,
'localSettingsExists' => file_exists( MW_CONFIG_FILE ),
'installerStarted' => $installerStarted
]
)
const MW_VERSION
The running version of MediaWiki.
Definition Defines.php:37
$templateParser
$installerStarted

Definition at line 53 of file NoLocalSettings.php.