MediaWiki  1.27.1
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

 $ext = 'php'
 
 $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

$ext = 'php'

Definition at line 25 of file NoLocalSettings.php.

Referenced by ResourceLoaderImage\__construct(), MimeMagic\__construct(), ApiQuerySiteinfo\appendExtensions(), ApiQuerySiteinfo\appendFileExtensions(), UploadBase\checkFileExtension(), UploadBase\checkFileExtensionList(), UploadFromChunks\concatenateChunks(), StreamFile\contentTypeFromPath(), MimeMagic\detectMimeType(), MimeMagic\detectZipType(), Installer\dirIsExecutable(), LocalFileDeleteBatch\doDBInserts(), MemoryFileBackend\doGetLocalCopyMulti(), FSFileBackend\doGetLocalCopyMulti(), SwiftFileBackend\doGetLocalCopyMulti(), MimeMagic\doGuessMimeType(), WebInstallerOptions\execute(), SpecialVersion\execute(), ApiImageRotate\execute(), LocalFileDeleteBatch\execute(), FileBackend\extensionFromPath(), TempFSFile\factory(), findFiles(), File\getArchiveThumbUrl(), File\getArchiveUrl(), ContentHandler\getDefaultModelFor(), MediaStatisticsPage\getExtensionList(), ResourceLoaderImage\getMimeType(), CSSMin\getMimeType(), IEContentAnalyzer\getMimeTypeForVersion(), ApiBase\getModuleSourceInfo(), FSFile\getProps(), FSFile\getPropsFromPath(), File\getStorageKey(), MediaHandler\getThumbType(), UploadBase\getTitle(), MimeMagic\getTypesForExtension(), File\getUrl(), FileRepo\getZoneUrl(), ForeignAPIRepo\getZoneUrl(), File\getZoneUrl(), FileBackendGroup\guessMimeInternal(), MimeMagic\guessMimeType(), MimeMagic\guessTypesForExtension(), LocalRepo\hiddenFileHasKey(), MimeMagic\improveTypeFromExtension(), MimeMagic\isMatchingExtension(), CheckSyntax\isSuitableFile(), FileRepo\makeUrl(), moveToExternal(), FileRepo\nameForThumb(), ImagePage\openShowImage(), AutoloadGenerator\readDir(), GenerateSitemap\sitemapFilename(), splitFilename(), WebInstallerOptions\submit(), MimeMagicTest\testImproveTypeFromExtension(), wfGzipHandler(), and wfMissingExtensions().

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

Definition at line 46 of file NoLocalSettings.php.

$matches = []

Definition at line 24 of file NoLocalSettings.php.

Referenced by Sanitizer\armorLinksCallback(), PathRouterTest\callbackForTest(), SearchHighlighter\caseCallback(), CheckStorage\check(), AutoLoaderTest\checkAutoLoadConf(), UploadBase\checkCssFragment(), UploadBase\checkXMLEncodingMissmatch(), Sanitizer\cleanUrl(), Sanitizer\cleanUrlCallback(), Language\commafy(), ApiFeedWatchlist\createFeedItem(), Sanitizer\cssDecodeCallback(), Sanitizer\decodeCharReferencesCallback(), MimeMagic\detectZipType(), DatabaseMssql\doQuery(), Parser\doTableStuff(), DeprecatedInterfaceFinder\enterNode(), EditPage\extractSectionTitle(), Parser\extractTagsAndParams(), PathRouter\extractTitle(), WebRequest\extractTitle(), SearchEngineTest\fetchIds(), MediaWikiVersionFetcher\fetchVersion(), DatabaseBase\fillPreparedArg(), Language\firstChar(), DateFormatter\formatDate(), Parser\formatHeadings(), ApiFormatBase\formatHTML(), MultiHttpClient\getCurlHandle(), getFileCommentFromSourceWiki(), getFileUserFromSourceWiki(), ParserTest\getFuzzInput(), NewParserTest\getFuzzInput(), GitInfo\getHeadViewUrl(), CSSMin\getLocalFileReferences(), Title\getLocalURL(), TransformationalImageHandler\getMagickVersion(), Languages\getMessagesWithDubiousLinks(), VirtualRESTServiceClient\getMountAndService(), SearchNearMatcher\getNearMatchInternal(), WebRequest\getPathInfo(), CssContent\getRedirectTarget(), JavaScriptContent\getRedirectTarget(), FormatMetadata\getVisibleFields(), TableCleanup\hexChar(), SearchHighlighter\highlightText(), EditPage\internalAttemptSave(), WebRequest\interpolateTitle(), Http\isLocalURL(), DatabaseMssql\LimitToTopN(), SearchHighlighter\linkReplace(), SpecialUndelete\loadRequest(), DifferenceEngine\localiseLineNumbersCb(), MagicWordArray\matchAndRemove(), EditPage\matchSpamRegexInternal(), MagicWord\matchVariableStartToEnd(), Sanitizer\normalizeCharReferencesCallback(), Sanitizer\normalizeCss(), Parser\normalizeUrlComponent(), DjVuImage\pageTextCallback(), PathRouter\parse(), ParserTest\parseOptions(), NewParserTest\parseOptions(), Preprocessor_Hash\preprocessToObj(), UserMailer\quotedPrintable(), TestFileIterator\readNextTest(), SpecialUndelete\redirectToRevDel(), KkConverter\regsConverter(), Parser\renderImageGallery(), DateFormatter\replace(), LinkHolderArray\replaceTextCallback(), Parser\replaceTransparentTags(), ApiQuerySearch\run(), ApiQueryAllLinks\run(), SVGReader\scaleSVGUnit(), SpecialSearch\showInterwiki(), SpecialSearch\showMatches(), MediaWikiTitleCodec\splitTitleString(), SearchMySQL\stripForSearchCallback(), Language\strongDirFromContent(), LanguageEo\strrtuxCallback(), LanguageEo\strrtxuCallback(), PathRouterTest\testAdditionalParameter(), PathRouterTest\testBasic(), PathRouterTest\testCallback(), DatabaseMysqlBaseTest\testChannelsMatch(), PathRouterTest\testCharacters(), EnhancedChangesListTest\testEndRecentChangesList(), PathRouterTest\testFail(), PathRouterTest\testKeyParameter(), PathRouterTest\testLength(), PathRouterTest\testLoose(), LinkFilterTest\testMakeLikeArrayWithValidPatterns(), PathRouterTest\testOrder(), PathRouterTest\testPatternUrlencoding(), PathRouterTest\testRawParamValue(), PathRouterTest\testRegexpChars(), PathRouterTest\testRestrictedValue(), ExifRotationTest\testRotationRendering(), ExifRotationTest\testRotationRenderingNoAutoRotate(), PathRouterTest\testSpecial(), PathRouterTest\testUnicode(), PathRouterTest\testUrlencoding(), SrConverter\translate(), KkConverter\translate(), ApiOpenSearch\trimExtract(), Language\ucwordbreaksCallbackAscii(), Language\ucwordbreaksCallbackMB(), Language\ucwordsCallbackMB(), wfExtractThumbParams(), and wfThumbHandle404().

$path = '/'

Definition at line 26 of file NoLocalSettings.php.

Referenced by ExtensionsTestSuite\__construct(), ResourceLoaderImage\__construct(), GitInfo\__construct(), FSFileBackend\__construct(), WikiReference\__construct(), FSFileBackendList\__construct(), FSLockManager\__destruct(), RedisLockManager\__destruct(), MemcLockManager\__destruct(), FileBackendStoreShardListIterator\accept(), FileBackendMultiWrite\accessibilityCheck(), PathRouter\add(), ApiResult\addArrayType(), ApiResult\addArrayTypeRecursive(), ApiResult\addContentField(), ApiResult\addContentValue(), CheckSyntax\addFileOrDir(), ApiResult\addIndexedTagName(), ApiResult\addIndexedTagNameRecursive(), SwiftFileBackend\addMissingMetadata(), CheckSyntax\addPath(), ApiResult\addPreserveKeysList(), OutputPage\addScriptFile(), PathRouter\addStrict(), ApiResult\addSubelementsList(), ApiResult\addValue(), ApiErrorFormatter\addWarningOrError(), ApiErrorFormatter_BackCompat\addWarningOrError(), ApiQuerySiteinfo\appendInstalledLibraries(), MssqlUpdater\applyPatch(), DatabaseUpdater\applyPatch(), CheckSyntax\buildFileList(), CheckStorage\check(), CategoryFinder\check(), FindOrphanedFiles\checkFiles(), FSFileBackend\chmod(), FSFileBackend\cleanPathSlashes(), FileRepo\cleanupBatch(), LocalRepo\cleanupDeletedBatch(), FileBackendStore\clearCache(), FSLockManager\closeLockHandles(), FileBackendMultiWrite\consistencyCheck(), SwiftFileBackendFileList\current(), UIDGenerator\deleteCacheFiles(), FileBackendStore\deleteFileCache(), FileOp\dependsOn(), PathRouter\doAdd(), FileBackendStore\doConcatenate(), MemoryFileBackend\doDirectoryExists(), MemcLockManager\doFreeLocksOnServer(), FileBackendStore\doGetFileContentsMulti(), SwiftFileBackend\doGetFileContentsMulti(), SwiftFileBackend\doGetFileStatMulti(), SwiftFileBackend\doGetLocalCopyMulti(), MemcLockManager\doGetLocksOnServer(), MySqlLockManager\doGetLocksOnServer(), PostgreSqlLockManager\doGetLocksOnServer(), FSLockManager\doLock(), QuorumLockManager\doLockByType(), FSLockManager\doSingleLock(), FSLockManager\doSingleUnlock(), FileBackendTest\doTestDoQuickOperations(), FileBackendTest\doTestGetFileContents(), FileBackendTest\doTestGetFileStat(), FileBackendTest\doTestGetLocalCopy(), FileBackendTest\doTestGetLocalReference(), FileBackendTest\doTestPrepareAndClean(), FileBackendTest\doTestStreamFile(), FSLockManager\doUnlock(), QuorumLockManager\doUnlockByType(), FileRepo\enumFilesInStorage(), WebInstaller\envCheckPath(), WebInstaller\envPrepPath(), TransformationalImageHandler\escapeMagickInput(), TransformationalImageHandler\escapeMagickOutput(), TransformationalImageHandler\escapeMagickPath(), ValidateRegistrationFile\execute(), FindOrphanedFiles\execute(), FindMissingFiles\execute(), ApiHelp\execute(), CheckImages\execute(), DeleteArchivedFiles\execute(), GenerateJsonI18n\execute(), CopyFileBackend\execute(), ResourceLoaderModule\expandRelativePaths(), ExtensionRegistry\exportExtractedData(), SiteExporter\exportSite(), FileBackend\extensionFromPath(), ExtensionProcessor\extractCredits(), ExtensionProcessor\extractInfo(), ExtensionProcessor\extractParserTestFiles(), PathRouter\extractTitle(), WebRequest\extractTitle(), ExternalStoreFOO\fetchFromURL(), ExternalStore\fetchFromURL(), FileBackendStore\fileCacheKey(), FileRepo\fileExistsBatch(), AutoloadGenerator\forceClassPath(), RedisLockManager\freeLocksOnServer(), AutoloadGenerator\generateJsonAutoload(), AutoloadGenerator\generatePHPAutoload(), FileBackendDBRepoWrapper\getBackendPath(), FileBackendDBRepoWrapper\getBackendPaths(), QuorumLockManager\getBucketFromPath(), Xhprof\getCriticalPath(), FileRepo\getDeletedHashPath(), MemoryFileBackend\getDirectoryListInternal(), SwiftFileBackend\getDirListPageInternal(), DjVuHandler\getDjVuImage(), Site\getDomain(), ApiRemoveAuthenticationData\getExamplesMessages(), ApiQueryLinks\getExamplesMessages(), ApiQueryAllLinks\getExamplesMessages(), ApiQueryBacklinksprop\getExamplesMessages(), UploadStash\getExtensionForPath(), SpecialVersion\getExternalLibraries(), ExtensionProcessor\getExtraAutoloaderPaths(), UploadStash\getFile(), FileBackendMultiWrite\getFileContentsMulti(), MemoryFileBackend\getFileListInternal(), FileRepo\getFileProps(), FileRepo\getFileSha1(), FileBackendStore\getFileSha1Base36(), FileRepo\getFileSize(), FileBackendStore\getFileStat(), FileRepo\getFileTimestamp(), MediaWikiSite\getFileUrl(), FileBackendStore\getFileXAttributes(), ApiBase\getFinalParamDescription(), CheckSyntax\getGitModifiedFiles(), SqliteInstaller\getGlobalDefaults(), FileRepo\getHashPathForLevel(), ApiHelp\getHelpInternal(), ResourceLoaderImage\getImageData(), ExifBitmapHandler\getImageSize(), ImageHandler\getImageSize(), WebPHandler\getImageSize(), DjVuHandler\getImageSize(), FileOp\getJournalEntries(), FileRepo\getLocalCopy(), FileBackendMultiWrite\getLocalCopyMulti(), CSSMin\getLocalFileReferences(), ResourceLoaderFileModule\getLocalPath(), FileRepo\getLocalReference(), FileBackendMultiWrite\getLocalReferenceMulti(), FileBackendStore\getLocalReferenceMulti(), RedisLockManager\getLocksOnServer(), MimeMagic\getMediaType(), DjVuHandler\getMetadata(), ApiBase\getModuleFromPath(), ApiParamInfo\getModuleInfo(), ApiBase\getModuleSourceInfo(), VirtualRESTServiceClient\getMountAndService(), WebRequest\getPathInfo(), Site\getProtocol(), UploadBase\getRealPath(), ResourceLoaderModule\getRelativePaths(), FSFileBackendList\getRelPath(), ResourceLoaderFileModule\getRemotePath(), ApiResult\getResultData(), UIDGenerator\getSequentialPerNodeIDs(), ResourceLoaderFileModule\getStyleSheetLang(), FileRepo\getVirtualUrl(), WikiMap\getWikiReferenceFromWgConf(), WikiMap\getWikiWikiReferenceFromSites(), WikiImporter\handleUpload(), FileRepo\initDirectory(), MWCryptRand\initialRandomState(), ExternalStore\insert(), ExternalStore\insertWithFallback(), FSFileBackend\isLegalRelPath(), FileBackend\isPathTraversalFree(), FileBackend\isStoragePath(), FixBug20757\isUnbrokenStub(), ExtensionRegistry\load(), ResourceLoaderOOUIImageModule\loadFromDefinition(), SwiftFileBackend\loadListingStatInternal(), Installer\locateExecutable(), Installer\locateExecutableInDefaultPaths(), SiteImporter\makeSite(), PathRouter\makeWeight(), ConvertExtensionToRegistration\needsComposerAutoloader(), FileBackend\normalizeContainerPath(), FileOp\normalizeIfValidStoragePath(), AutoloadGenerator\normalizePathSeparator(), PathRouter\parse(), ExternalStoreDB\parseURL(), ApiResult\path(), ImageCleanup\pokeFile(), ApiPageSet\populateGeneratorData(), FileBackendStore\preloadCache(), FileBackendStore\preloadFileStat(), StreamFile\prepareForStream(), FileBackendStore\primeContainerCache(), FileBackendStore\primeFileCache(), ApiDocumentationTest\provideDocumentationExists(), 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(), ResourceLoader\register(), ApiResult\removePreserveKeysList(), ApiResult\removeSubelementsList(), ApiResult\removeValue(), FileRepo\resolveToStoragePath(), FileBackendMultiWrite\resyncFiles(), ApiQueryRandom\runQuery(), EraseArchivedFile\scrubVersion(), CookieJar\serializeToHttpRequest(), FileBackendStore\setFileCache(), MediaWikiSite\setFilePath(), ApiResult\setIndexedTagName_internal(), MediaWikiSite\setPagePath(), SpecialUndelete\showFile(), Licenses\stackItem(), UploadStash\stashFile(), SevenZipStream\stream_open(), UploadSourceAdapter\stream_open(), FileRepo\streamFileWithStatus(), SevenZipStream\stripPath(), XhprofTest\testCriticalPath(), ApiDocumentationTest\testDocumentationExists(), FileBackendTest\testExtensionFromPath(), WikiReferenceTest\testGetCanonicalUrl(), FileBackendTest\testGetFileStat(), WikiReferenceTest\testGetFullUrl(), WebPHandlerTest\testGetImageSize(), SiteTest\testGetLinkPathType(), MediaWikiSiteTest\testGetPageUrl(), SiteTest\testGetPageUrl(), ResourceLoaderImageTest\testGetPath(), WikiReferenceTest\testGetUrl(), WebPHandlerTest\testGuessMimeType(), FileBackendTest\testIsStoragePath(), FileBackendTest\testNormalizeStoragePath(), FileBackendTest\testParentStoragePath(), ExtensionJsonValidationTest\testPassesValidation(), JpegPixelFormatTest\testPixelFormatRendering(), FileBackendTest\testPrepareAndClean(), SiteTest\testProtocolRelativePath(), SiteTest\testSetLinkPath(), SiteTest\testSetPath(), FileBackendTest\testSplitStoragePath(), FileBackendTest\testStreamFile(), PathRouterTest\testWeight(), OutputPage\transformResourcePath(), FileBackendDBRepoWrapper\translateArrayResults(), SpecialRevisionDelete\tryShowFile(), SevenZipStream\url_stat(), and wfRequestExtension().

$templateParser = new TemplateParser()

Definition at line 49 of file NoLocalSettings.php.

Referenced by EnhancedChangesList\recentChangesBlockGroup().

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 39 of file NoLocalSettings.php.

try
Initial value:
{
echo $templateParser->processTemplate(
'NoLocalSettings',
[
'wgVersion' => ( isset( $wgVersion ) ? $wgVersion : 'VERSION' ),
'path' => $path,
'ext' => $ext,
'localSettingsExists' => file_exists( MW_CONFIG_FILE ),
'installerStarted' => $installerStarted
]
)
$wgVersion
MediaWiki version number.
$installerStarted
$templateParser

Definition at line 52 of file NoLocalSettings.php.