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()
 
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 SearchHighlighter\caseCallback(), CheckStorage\check(), UploadBase\checkCssFragment(), UploadBase\checkXMLEncodingMissmatch(), Sanitizer\cleanUrl(), Sanitizer\cleanUrlCallback(), Language\commafy(), ApiFeedWatchlist\createFeedItem(), Sanitizer\cssDecodeCallback(), Sanitizer\decodeCharReferencesCallback(), Wikimedia\Rdbms\SQLiteField\defaultValue(), StringUtils\delimiterReplace(), MimeAnalyzer\detectZipType(), DeprecatedInterfaceFinder\enterNode(), StringUtils\explodeMarkup(), WikiTextStructure\extractHeadingBeforeFirstHeading(), EditPage\extractSectionTitle(), Parser\extractTagsAndParams(), PathRouter\extractTitle(), WebRequest\extractTitle(), MediaWikiVersionFetcher\fetchVersion(), Parser\finalizeHeadings(), Language\firstChar(), ClassCollector\getClasses(), MultiHttpClient\getCurlHandle(), ImportImages\getFileCommentFromSourceWiki(), ImportImages\getFileUserFromSourceWiki(), GitInfo\getHeadSHA1(), GitInfo\getHeadViewUrl(), CSSMin\getLocalFileReferences(), Title\getLocalURL(), TransformationalImageHandler\getMagickVersion(), Languages\getMessagesWithDubiousLinks(), VirtualRESTServiceClient\getMountAndService(), SearchNearMatcher\getNearMatchInternal(), WebRequest\getPathInfo(), CssContent\getRedirectTarget(), JavaScriptContent\getRedirectTarget(), NumericUppercaseCollation\getSortKey(), Wikimedia\Rdbms\Database\getTempWrites(), FormatMetadata\getVisibleFields(), Parser\handleTables(), TableCleanup\hexChar(), SearchHighlighter\highlightText(), EditPage\internalAttemptSave(), PathRouter\internalParse(), WebRequest\interpolateTitle(), MWHttpRequest\isLocalURL(), SearchHighlighter\linkReplace(), SpecialUndelete\loadRequest(), DifferenceEngine\localiseLineNumbersCb(), MagicWordArray\matchAndRemove(), EditPage\matchSpamRegexInternal(), MagicWord\matchVariableStartToEnd(), Sanitizer\normalizeCharReferencesCallback(), Parser\normalizeUrlComponent(), DjVuImage\pageTextCallback(), PathRouter\parse(), Wikimedia\Http\HttpAcceptParser\parseAccept(), Preprocessor_Hash\preprocessToObj(), Preprocessor_DOM\preprocessToXml(), UserMailer\quotedPrintable(), SpecialUndelete\redirectToRevDel(), KkConverter\regsConverter(), Parser\renderImageGallery(), LinkHolderArray\replaceInternal(), LinkHolderArray\replaceInterwiki(), StringUtils\replaceMarkup(), LinkHolderArray\replaceText(), Parser\replaceTransparentTags(), ApiQuerySearch\run(), ApiQueryAllLinks\run(), Sanitizer\safeEncodeAttribute(), SVGReader\scaleSVGUnit(), PrefixSearch\specialSearch(), MediaWikiTitleCodec\splitTitleString(), SearchMySQL\stripForSearchCallback(), Language\strongDirFromContent(), EnConverter\translate(), SrConverter\translate(), KkConverter\translate(), ApiOpenSearch\trimExtract(), Language\ucwordbreaks(), Language\ucwords(), wfBaseName(), wfExpandIRI(), wfExtractThumbParams(), and wfThumbHandle404().

◆ $path

$path = '/'

Definition at line 25 of file NoLocalSettings.php.

Referenced by WikiReference\__construct(), FSFileBackendList\__construct(), GitInfo\__construct(), ResourceLoaderImage\__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\addMissingHashMetadata(), ApiResult\addPreserveKeysList(), PathRouter\addStrict(), ApiResult\addSubelementsList(), ApiResult\addValue(), ApiErrorFormatter_BackCompat\addWarningOrError(), ApiErrorFormatter\addWarningOrError(), ApiQuerySiteinfo\appendInstalledLibraries(), DatabaseUpdater\applyPatch(), CheckStorage\check(), CategoryFinder\check(), FindOrphanedFiles\checkFiles(), FileRepo\cleanupBatch(), LocalRepo\cleanupDeletedBatch(), FileBackendStore\clearCache(), FSLockManager\closeLockHandles(), FileBackendMultiWrite\consistencyCheck(), SwiftFileBackendFileList\current(), UIDGenerator\deleteCacheFiles(), FileBackendStore\deleteFileCache(), FileOp\dependsOn(), PathRouter\doAdd(), FSFileBackend\doClearCache(), FileBackendStore\doConcatenate(), MemoryFileBackend\doDirectoryExists(), SwiftFileBackend\doGetFileContentsMulti(), FileBackendStore\doGetFileContentsMulti(), SwiftFileBackend\doGetFileStatMulti(), SwiftFileBackend\doGetLocalCopyMulti(), PostgreSqlLockManager\doGetLocksOnServer(), MySqlLockManager\doGetLocksOnServer(), NullLockManager\doLock(), FSLockManager\doLock(), QuorumLockManager\doLockByType(), FSLockManager\doSingleLock(), FSLockManager\doSingleUnlock(), NullLockManager\doUnlock(), FSLockManager\doUnlock(), QuorumLockManager\doUnlockByType(), FileRepo\enumFilesInStorage(), WebInstaller\envCheckPath(), WebInstaller\envPrepPath(), TransformationalImageHandler\escapeMagickInput(), TransformationalImageHandler\escapeMagickOutput(), TransformationalImageHandler\escapeMagickPath(), ValidateRegistrationFile\execute(), ApiHelp\execute(), FindOrphanedFiles\execute(), FindMissingFiles\execute(), ApiParamInfo\execute(), CheckImages\execute(), DeleteArchivedFiles\execute(), GenerateJsonI18n\execute(), CopyFileBackend\execute(), MediaWiki\Rest\Router\execute(), ResourceLoaderFileModule\expandPackageFiles(), ResourceLoaderModule\expandRelativePaths(), ExtensionRegistry\exportExtractedData(), SiteExporter\exportSite(), FileBackend\extensionFromPath(), ExtensionProcessor\extractAttributes(), ExtensionProcessor\extractCredits(), ExtensionProcessor\extractInfo(), ExtensionProcessor\extractPathBasedGlobal(), PathRouter\extractTitle(), WebRequest\extractTitle(), FileBackendStore\fileCacheKey(), FileRepo\fileExistsBatch(), ExecutableFinder\findExecutable(), ExecutableFinder\findInDefaultPaths(), MediaWiki\OutputHandler\findUriExtension(), AutoloadGenerator\forceClassPath(), MemcLockManager\freeLocksOnServer(), RedisLockManager\freeLocksOnServer(), Wikimedia\Rdbms\DatabaseSqlite\generateDatabaseName(), 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(), UploadStash\getFile(), FileBackendMultiWrite\getFileContentsMulti(), FileBackendStore\getFileContentsMulti(), MemoryFileBackend\getFileListInternal(), FileRepo\getFileSha1(), FileBackendStore\getFileSha1Base36(), FileRepo\getFileSize(), FileBackendStore\getFileStat(), FileRepo\getFileTimestamp(), MediaWikiSite\getFileUrl(), FileBackendStore\getFileXAttributes(), ApiBase\getFinalParamDescription(), SqliteInstaller\getGlobalDefaults(), MediaHandler\getHandler(), FileRepo\getHashPathForLevel(), ApiHelp\getHelpInternal(), ResourceLoaderImage\getImageData(), ExifBitmapHandler\getImageSize(), ImageHandler\getImageSize(), WebPHandler\getImageSize(), DjVuHandler\getImageSize(), FileOp\getJournalEntries(), FileRepo\getLocalCopy(), FileBackendMultiWrite\getLocalCopyMulti(), FileBackendStore\getLocalCopyMulti(), CSSMin\getLocalFileReferences(), ResourceLoaderImage\getLocalPath(), ResourceLoaderImageModule\getLocalPath(), ResourceLoaderFileModule\getLocalPath(), FileRepo\getLocalReference(), FileBackendMultiWrite\getLocalReferenceMulti(), FileBackendStore\getLocalReferenceMulti(), RedisLockManager\getLocksOnServer(), MemcLockManager\getLocksOnServer(), MimeAnalyzer\getMediaType(), DjVuHandler\getMetadata(), ApiBase\getModuleFromPath(), ApiParamInfo\getModuleInfo(), ApiBase\getModuleSourceInfo(), VirtualRESTServiceClient\getMountAndService(), ResourceLoaderFileModule\getPackageFileType(), ResourceLoaderFileModule\getPath(), WebRequest\getPathInfo(), MWFileProps\getPropsFromPath(), Site\getProtocol(), UploadBase\getRealPath(), MediaWiki\Rest\Router\getRelativePath(), ResourceLoaderModule\getRelativePaths(), FSFileBackendList\getRelPath(), ResourceLoaderFileModule\getRemotePath(), ApiResult\getResultData(), UIDGenerator\getSequentialPerNodeIDs(), MediaWiki\Interwiki\InterwikiLookupAdapter\getSiteInterwikis(), ExternalStoreFactory\getStoreForUrl(), ResourceLoaderFileModule\getStyleSheetLang(), getThemePath(), getThemePaths(), ExternalStoreMemory\getURLComponents(), FileRepo\getVirtualUrl(), WikiMap\getWikiReferenceFromWgConf(), WikiMap\getWikiWikiReferenceFromSites(), ForeignResourceManager\handleTypeFile(), ForeignResourceManager\handleTypeMultiFile(), WikiImporter\handleUpload(), FileBackendStore\ingestFreshFileStats(), FileRepo\initDirectory(), PathRouter\internalParse(), FileBackend\isPathTraversalFree(), Wikimedia\Rdbms\DatabaseSqlite\isProcessMemoryPath(), FileBackend\isStoragePath(), ExtensionRegistry\load(), SwiftFileBackend\loadListingStatInternal(), CheckDependencies\loadThing(), ResourceLoader\makeModuleResponse(), SiteImporter\makeSite(), PathRouter\makeWeight(), MediaWiki\Rest\PathTemplateMatcher\PathMatcher\match(), ConvertExtensionToRegistration\needsComposerAutoloader(), MediaWiki\FileBackend\FSFile\TempFSFileFactory\newTempFSFile(), FileBackend\normalizeContainerPath(), FileOp\normalizeIfValidStoragePath(), LockManager\normalizePathsByType(), AutoloadGenerator\normalizePathSeparator(), Wikimedia\Rdbms\DatabaseSqlite\open(), PathRouter\parse(), ExternalStoreDB\parseURL(), ApiResult\path(), CleanupImages\pokeFile(), ApiPageSet\populateGeneratorData(), FileOp\precheck(), FileBackendStore\preloadCache(), FileBackendStore\primeContainerCache(), FileBackendStore\primeFileCache(), PruneFileCache\prune_directory(), FSLockManager\pruneKeyLockFiles(), ExtensionRegistry\queue(), SquidPurgeClient\queuePurge(), FileRepo\quickPurge(), FileRepo\quickPurgeBatch(), AutoloadGenerator\readDir(), ExtensionRegistry\readFromQueue(), ResourceLoaderOOUIImageModule\readJSONFile(), ResourceLoaderFileModule\readStyleFile(), SqliteInstaller\realpath(), RedisLockManager\recordKeyForPath(), MemcLockManager\recordKeyForPath(), ResourceLoader\register(), ConvertExtensionToRegistration\removeAutodiscoveredParserTestFiles(), ApiResult\removePreserveKeysList(), ApiResult\removeSubelementsList(), ApiResult\removeValue(), FileRepo\resolveToStoragePathIfVirtual(), FileBackendMultiWrite\resyncFiles(), ApiQueryRandom\runQuery(), EraseArchivedFile\scrubVersion(), CookieJar\serializeToHttpRequest(), Wikimedia\Rdbms\DatabaseSqlite\serverIsReadOnly(), 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(), OutputPage\transformResourcePath(), FileBackendDBRepoWrapper\translateArrayResults(), SpecialRevisionDelete\tryShowFile(), SevenZipStream\url_stat(), ExtensionJsonValidator\validate(), PathRouter\validateRoute(), wfBaseName(), wfLoadExtension(), wfLoadSkin(), and wfRelativePath().

◆ $success

◆ $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 )
wfIniGetBool( $setting)
Safety wrapper around ini_get() for boolean settings.

Definition at line 37 of file NoLocalSettings.php.

◆ try

try
Initial value:
{
global $wgVersion
$wgVersion
MediaWiki version number.

Definition at line 50 of file NoLocalSettings.php.