MediaWiki  1.32.5
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()
 
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 44 of file NoLocalSettings.php.

◆ $matches

$matches = []

Definition at line 24 of file NoLocalSettings.php.

Referenced by ApiQuerySearch\addInterwikiResults(), DifferenceEngine\addLocalisedTitleTooltipsCb(), SimpleCaptcha\buildRegexes(), BaseBlacklist\buildSharedBlacklists(), PathRouterTest\callbackForTest(), SearchHighlighter\caseCallback(), CheckStorage\check(), Cleanup\cleanupArticle(), Language\commafy(), PdfImage\convertDumpToArray(), ApiFeedWatchlist\createFeedItem(), StringUtils\delimiterReplace(), MimeAnalyzer\detectZipType(), ExprParser\doExpression(), Wikimedia\Rdbms\DatabaseMssql\doQuery(), DeprecatedInterfaceFinder\enterNode(), Cleanup\execute(), ApiSpamBlacklist\execute(), TestFileReader\execute(), StringUtils\explodeMarkup(), SpecialReplaceText\extractContext(), WikiTextStructure\extractHeadingBeforeFirstHeading(), EditPage\extractSectionTitle(), PathRouter\extractTitle(), WebRequest\extractTitle(), SearchEngineTest\fetchIds(), MediaWikiVersionFetcher\fetchVersion(), SpamBlacklist\filter(), SpamBlacklistHooks\filterMergedContent(), Language\firstChar(), LocalisationUpdate\Finder\getComponents(), MultiHttpClient\getCurlHandle(), ImportImages\getFileCommentFromSourceWiki(), ImportImages\getFileUserFromSourceWiki(), ParserFuzzTest\getFuzzInput(), GitInfo\getHeadSHA1(), GitInfo\getHeadViewUrl(), LocalisationUpdate\Finder\getItem(), Title\getLocalURL(), TransformationalImageHandler\getMagickVersion(), VirtualRESTServiceClient\getMountAndService(), SearchNearMatcher\getNearMatchInternal(), WebRequest\getPathInfo(), CssContent\getRedirectTarget(), JavaScriptContent\getRedirectTarget(), NumericUppercaseCollation\getSortKey(), FormatMetadata\getVisibleFields(), FancyCaptcha\hashFromImageName(), TableCleanup\hexChar(), SearchHighlighter\highlightText(), EditPage\internalAttemptSave(), PathRouter\internalParse(), WebRequest\interpolateTitle(), BaseBlacklist\isLocalSource(), MWHttpRequest\isLocalURL(), Wikimedia\Rdbms\DatabaseMssql\LimitToTopN(), SearchHighlighter\linkReplace(), SpecialUndelete\loadRequest(), DifferenceEngine\localiseLineNumbersCb(), MagicWordArray\matchAndRemove(), EditPage\matchSpamRegexInternal(), MagicWord\matchVariableStartToEnd(), TitleBlacklistEntry\newFromString(), SpamBlacklistHooks\onUploadVerifyUpload(), PathRouter\parse(), AutoLoaderStructureTest\parseFile(), FancyCaptcha\pickImageFromList(), Preprocessor_Hash\preprocessToObj(), UserMailer\quotedPrintable(), SpecialUndelete\redirectToRevDel(), Wikimedia\Rdbms\Database\registerTempTableOperation(), KkConverter\regsConverter(), RegexlikeReplacer\replace(), DoubleReplacer\replace(), DateFormatter\replace(), LinkHolderArray\replaceInternal(), LinkHolderArray\replaceInterwiki(), StringUtils\replaceMarkup(), LinkHolderArray\replaceTextCallback(), ApiQuerySearch\run(), ApiQueryAllLinks\run(), ExtParserFunctions\runExplode(), SVGReader\scaleSVGUnit(), PrefixSearch\specialSearch(), MediaWikiTitleCodec\splitTitleString(), SearchMySQL\stripForSearchCallback(), Language\strongDirFromContent(), TextSuppressor\suppress(), DatabaseMysqlBaseTest\testChannelsMatch(), EnhancedChangesListTest\testEndRecentChangesList(), LinkFilterTest\testMakeLikeArrayWithValidPatterns(), PathRouterTest\testParse(), EnhancedChangesListTest\testRecentChangesPrefix(), ExifRotationTest\testRotationRendering(), ExifRotationTest\testRotationRenderingNoAutoRotate(), EnConverter\translate(), SrConverter\translate(), CrhConverter\translate(), KkConverter\translate(), ApiOpenSearch\trimExtract(), Language\ucwordbreaksCallbackAscii(), Language\ucwordbreaksCallbackMB(), Language\ucwordsCallbackMB(), wfBaseName(), wfExpandIRI(), wfExtractThumbParams(), and wfThumbHandle404().

◆ $path

$path = '/'

Definition at line 25 of file NoLocalSettings.php.

Referenced by ExtensionsTestSuite\__construct(), WikiReference\__construct(), ResourceLoaderImage\__construct(), GitInfo\__construct(), FSFileBackend\__construct(), FSFileBackendList\__construct(), FSLockManager\__destruct(), RedisLockManager\__destruct(), MemcLockManager\__destruct(), FileBackendStoreShardListIterator\accept(), FileBackendMultiWrite\accessibilityCheck(), PathRouter\add(), ApiResult\addArrayType(), ApiResult\addArrayTypeRecursive(), ApiResult\addContentField(), ApiResult\addContentValue(), ApiResult\addIndexedTagName(), ApiResult\addIndexedTagNameRecursive(), SwiftFileBackend\addMissingMetadata(), ApiResult\addPreserveKeysList(), PathRouter\addStrict(), ApiResult\addSubelementsList(), ApiResult\addValue(), ApiErrorFormatter\addWarningOrError(), ApiErrorFormatter_BackCompat\addWarningOrError(), MssqlUpdater\applyPatch(), DatabaseUpdater\applyPatch(), CheckStorage\check(), CategoryFinder\check(), AutoLoaderStructureTest\checkAutoLoadConf(), FindOrphanedFiles\checkFiles(), FSFileBackend\chmod(), FSFileBackend\cleanPathSlashes(), FileRepo\cleanupBatch(), LocalRepo\cleanupDeletedBatch(), FileBackendStore\clearCache(), FSLockManager\closeLockHandles(), FileBackendMultiWrite\consistencyCheck(), SwiftFileBackendFileList\current(), ExternalStore\defaultStoresAreReadOnly(), UIDGenerator\deleteCacheFiles(), FileBackendStore\deleteFileCache(), FileOp\dependsOn(), PathRouter\doAdd(), FileBackendStore\doConcatenate(), MemoryFileBackend\doDirectoryExists(), FileBackendStore\doGetFileContentsMulti(), SwiftFileBackend\doGetFileContentsMulti(), SwiftFileBackend\doGetFileStatMulti(), SwiftFileBackend\doGetLocalCopyMulti(), PostgreSqlLockManager\doGetLocksOnServer(), MySqlLockManager\doGetLocksOnServer(), FSLockManager\doLock(), QuorumLockManager\doLockByType(), FSLockManager\doSingleLock(), FSLockManager\doSingleUnlock(), FileBackendTest\doTestDoQuickOperations(), FileBackendTest\doTestGetFileContents(), FileBackendTest\doTestGetFileStat(), FileBackendTest\doTestGetLocalCopy(), FileBackendTest\doTestGetLocalReference(), FileBackendTest\doTestPrepareAndClean(), FileBackendTest\doTestStreamFile(), FileBackendTest\doTestStreamFileRange(), FSLockManager\doUnlock(), QuorumLockManager\doUnlockByType(), FileRepo\enumFilesInStorage(), WebInstaller\envCheckPath(), WebInstaller\envPrepPath(), TransformationalImageHandler\escapeMagickInput(), TransformationalImageHandler\escapeMagickOutput(), TransformationalImageHandler\escapeMagickPath(), ValidateRegistrationFile\execute(), ApiHelp\execute(), FindMissingFiles\execute(), FindOrphanedFiles\execute(), ApiParamInfo\execute(), CheckImages\execute(), DeleteArchivedFiles\execute(), GenerateJsonI18n\execute(), CopyFileBackend\execute(), GenerateFancyCaptchas\execute(), ResourceLoaderModule\expandRelativePaths(), ExtensionRegistry\exportExtractedData(), SiteExporter\exportSite(), FileBackend\extensionFromPath(), ExtensionProcessor\extractAttributes(), ExtensionProcessor\extractCredits(), ExtensionProcessor\extractInfo(), ExtensionProcessor\extractPathBasedGlobal(), PathRouter\extractTitle(), WebRequest\extractTitle(), LocalisationUpdate\Updater\fetchFiles(), ExternalStoreForTesting\fetchFromURL(), ExternalStore\fetchFromURL(), FileBackendStore\fileCacheKey(), FileRepo\fileExistsBatch(), ExecutableFinder\findExecutable(), ExecutableFinder\findInDefaultPaths(), MediaWiki\OutputHandler\findUriExtension(), AutoloadGenerator\forceClassPath(), MemcLockManager\freeLocksOnServer(), RedisLockManager\freeLocksOnServer(), AutoloadGenerator\generateJsonAutoload(), AutoloadGenerator\generatePHPAutoload(), ContentSecurityPolicy\getAdditionalSelfUrls(), ContentSecurityPolicy\getAdditionalSelfUrlsScript(), FileBackendDBRepoWrapper\getBackendPath(), FileBackendDBRepoWrapper\getBackendPaths(), QuorumLockManager\getBucketFromPath(), XhprofData\getCriticalPath(), FileRepo\getDeletedHashPath(), MemoryFileBackend\getDirectoryListInternal(), SwiftFileBackend\getDirListPageInternal(), DjVuHandler\getDjVuImage(), Site\getDomain(), ApiRemoveAuthenticationData\getExamplesMessages(), ApiQueryLinks\getExamplesMessages(), ApiQueryAllLinks\getExamplesMessages(), ApiQueryBacklinksprop\getExamplesMessages(), UploadStash\getExtensionForPath(), Installer\getExtensionInfo(), SpecialVersion\getExternalLibraries(), LocalisationUpdate\FetcherFactory\getFetcher(), UploadStash\getFile(), FileBackendMultiWrite\getFileContentsMulti(), MemoryFileBackend\getFileListInternal(), FileRepo\getFileSha1(), FileBackendStore\getFileSha1Base36(), FileRepo\getFileSize(), FileBackendStore\getFileStat(), FileRepo\getFileTimestamp(), MediaWikiSite\getFileUrl(), FileBackendStore\getFileXAttributes(), ApiBase\getFinalParamDescription(), SqliteInstaller\getGlobalDefaults(), FileRepo\getHashPathForLevel(), ApiHelp\getHelpInternal(), ResourceLoaderImage\getImageData(), ExifBitmapHandler\getImageSize(), ImageHandler\getImageSize(), WebPHandler\getImageSize(), PdfHandler\getImageSize(), DjVuHandler\getImageSize(), FileOp\getJournalEntries(), FileRepo\getLocalCopy(), FileBackendMultiWrite\getLocalCopyMulti(), ResourceLoaderFileModule\getLocalPath(), FileRepo\getLocalReference(), FileBackendMultiWrite\getLocalReferenceMulti(), FileBackendStore\getLocalReferenceMulti(), RedisLockManager\getLocksOnServer(), MemcLockManager\getLocksOnServer(), MimeAnalyzer\getMediaType(), PdfHandler\getMetadata(), DjVuHandler\getMetadata(), ApiBase\getModuleFromPath(), ApiParamInfo\getModuleInfo(), ApiBase\getModuleSourceInfo(), VirtualRESTServiceClient\getMountAndService(), WebRequest\getPathInfo(), PdfHandler\getPdfImage(), MWFileProps\getPropsFromPath(), Site\getProtocol(), ResourceLoaderModule\getRelativePaths(), FSFileBackendList\getRelPath(), ResourceLoaderFileModule\getRemotePath(), ApiResult\getResultData(), UIDGenerator\getSequentialPerNodeIDs(), MediaWiki\Interwiki\InterwikiLookupAdapter\getSiteInterwikis(), ResourceLoaderFileModule\getStyleSheetLang(), getThemePath(), FileRepo\getVirtualUrl(), WikiMap\getWikiReferenceFromWgConf(), WikiMap\getWikiWikiReferenceFromSites(), ManageForeignResources\handleTypeFile(), ManageForeignResources\handleTypeMultiFile(), WikiImporter\handleUpload(), FileRepo\initDirectory(), ExternalStore\insert(), ExternalStore\insertWithFallback(), PathRouter\internalParse(), LocalisationUpdate\Updater\isDirectory(), FSFileBackend\isLegalRelPath(), FileBackend\isPathTraversalFree(), FileBackend\isStoragePath(), FixT22757\isUnbrokenStub(), ExtensionRegistry\load(), ResourceLoaderOOUIImageModule\loadFromDefinition(), SwiftFileBackend\loadListingStatInternal(), SiteImporter\makeSite(), PathRouter\makeWeight(), ConvertExtensionToRegistration\needsComposerAutoloader(), FileBackend\normalizeContainerPath(), FileOp\normalizeIfValidStoragePath(), LockManager\normalizePathsByType(), AutoloadGenerator\normalizePathSeparator(), PathRouter\parse(), ExternalStoreDB\parseURL(), ApiResult\path(), CleanupImages\pokeFile(), ApiPageSet\populateGeneratorData(), FileBackendStore\preloadCache(), FileBackendStore\preloadFileStat(), FileBackendStore\primeContainerCache(), FileBackendStore\primeFileCache(), WfAssembleUrlTest\provideURLParts(), PruneFileCache\prune_directory(), FSLockManager\pruneKeyLockFiles(), ExtensionRegistry\queue(), SquidPurgeClient\queuePurge(), FileRepo\quickPurge(), FileRepo\quickPurgeBatch(), AutoloadGenerator\readDir(), ExtensionRegistry\readFromQueue(), ResourceLoaderFileModule\readStyleFile(), SqliteInstaller\realpath(), RedisLockManager\recordKeyForPath(), MemcLockManager\recordKeyForPath(), ConvertExtensionToRegistration\removeAutodiscoveredParserTestFiles(), ApiResult\removePreserveKeysList(), ApiResult\removeSubelementsList(), ApiResult\removeValue(), FileRepo\resolveToStoragePath(), FileBackendMultiWrite\resyncFiles(), ApiQueryRandom\runQuery(), EraseArchivedFile\scrubVersion(), CookieJar\serializeToHttpRequest(), AutoloadGenerator\setExcludePaths(), FileBackendStore\setFileCache(), MediaWikiSite\setFilePath(), MediaWikiSite\setPagePath(), AutoloadGenerator\setPsr4Namespaces(), AutoloadGenerator\shouldExclude(), SpecialUndelete\showFile(), Licenses\stackItem(), UploadStash\stashFile(), SevenZipStream\stream_open(), UploadSourceAdapter\stream_open(), FileRepo\streamFileWithStatus(), SevenZipStream\stripPath(), ApiMain\substituteResultWithError(), AutoLoaderStructureTest\testAutoloadOrder(), XhprofDataTest\testCriticalPath(), FileBackendTest\testExtensionFromPath(), WikiReferenceTest\testGetCanonicalUrl(), FileBackendTest\testGetFileStat(), WikiReferenceTest\testGetFullUrl(), WebPHandlerTest\testGetImageSize(), SiteTest\testGetLinkPathType(), MediaWikiSiteTest\testGetPageUrl(), SiteTest\testGetPageUrl(), ResourceLoaderImageTest\testGetPath(), WikiReferenceTest\testGetUrl(), WebPHandlerTest\testGuessMimeType(), ApiQuerySiteinfoTest\testInstalledLibraries(), FileBackendTest\testIsStoragePath(), FileBackendTest\testNormalizeStoragePath(), FileBackendTest\testParentStoragePath(), PathRouterTest\testParse(), ExtensionJsonValidationTest\testPassesValidation(), JpegPixelFormatTest\testPixelFormatRendering(), FileBackendTest\testPrepareAndClean(), SiteTest\testProtocolRelativePath(), ExtensionRegistryTest\testQueue(), ExtensionRegistryTest\testQueue_invalid(), SiteTest\testSetLinkPath(), SiteTest\testSetPath(), FileBackendTest\testSplitStoragePath(), FileBackendTest\testStreamFile(), PathRouterTest\testWeight(), FileBackendDBRepoWrapper\translateArrayResults(), SpecialRevisionDelete\tryShowFile(), SevenZipStream\url_stat(), GadgetDefinitionValidator\validate(), ExtensionJsonValidator\validate(), wfBaseName(), wfLoadExtension(), wfLoadSkin(), and wfRelativePath().

◆ $success

$success = session_start()

Definition at line 42 of file NoLocalSettings.php.

Referenced by BagOStuff\cas(), User\checkAndSetTouched(), LocalFileRestoreBatch\cleanupFailedBatch(), ApiUploadTestCase\deleteFileByContent(), Wikimedia\Rdbms\DatabaseMssql\doQuery(), DatabaseOracle\doSelectDomain(), MovePageForm\doSubmit(), SpecialRenameuser\execute(), FixDoubleRedirects\execute(), DeleteBatch\execute(), PurgeParserCache\execute(), UpdateMediaWiki\execute(), DeleteEqualMessages\execute(), CompressOld\execute(), ArrayBackedMemoizedCallable\fetchResult(), MemoizedCallable\fetchResult(), EnhancedChangesList\getLineData(), MemoizedCallable\invokeArgs(), MessageCache\load(), CaptchaAuthenticationRequest\loadFromSubmission(), SpecialUserLogin\logAuthResult(), SpecialCreateAccount\logAuthResult(), Linker\makeExternalImage(), Linker\makeExternalLink(), BagOStuff\mergeViaCas(), BagOStuff\mergeViaLock(), ApiMove\moveSubpages(), Title\moveSubpages(), Wikimedia\Rdbms\DatabaseMysqlBase\open(), Wikimedia\Rdbms\LoadBalancer\pingAll(), FileBackendStore\preloadFileStat(), EnhancedChangesList\recentChangesBlockLine(), WatchedItemStore\removeWatch(), JobRunner\run(), CachingSiteStore\saveSites(), DBSiteStore\saveSites(), MessageCache\saveToCaches(), WatchedItemStore\setNotificationTimestampsForUser(), MediaTransformOutput\streamFileWithStatus(), MediaWiki\Auth\AuthManagerTest\testAccountCreation(), MediaWiki\Auth\AuthManagerTest\testAuthentication(), CaptchaPreAuthenticationProvider\testForAccountCreation(), CaptchaPreAuthenticationProvider\testForAuthentication(), CaptchaPreAuthenticationProviderTest\testPingLimiter(), GenerateJsonI18n\transformI18nFile(), SpecialUpload\unsaveUploadedFile(), and RenameUserCleanup\updateTable().

◆ $templateParser

$templateParser = new TemplateParser()

Definition at line 47 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 )

Definition at line 37 of file NoLocalSettings.php.

◆ try

try
Initial value:
{
global $wgVersion

Definition at line 50 of file NoLocalSettings.php.

$wgVersion
$wgVersion
MediaWiki version number.
Definition: DefaultSettings.php:74
wfIniGetBool
wfIniGetBool( $setting)
Safety wrapper around ini_get() for boolean settings.
Definition: GlobalFunctions.php:2146