MediaWiki REL1_35
|
Router for the php cli-server built-in webserver. More...
Go to the source code of this file.
Variables | |
$acceptGzip = preg_match( '/\bgzip\b/', $_SERVER['HTTP_ACCEPT_ENCODING'] ?? '' ) | |
$content = file_get_contents( $file ) | |
if(!is_readable( $file)) | $ext = pathinfo( $file, PATHINFO_EXTENSION ) |
if(PHP_SAPI !='cli-server') if(!isset( $_SERVER['SCRIPT_FILENAME'])) | $file = $_SERVER['SCRIPT_FILENAME'] |
Item class for a filearchive table row. | |
$mime = 'text/plain' | |
if( $ext=='php') | else |
return | true |
Router for the php cli-server built-in webserver.
https://www.php.net/manual/en/features.commandline.webserver.php
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 router.php.
$acceptGzip = preg_match( '/\bgzip\b/', $_SERVER['HTTP_ACCEPT_ENCODING'] ?? '' ) |
Definition at line 79 of file router.php.
$content = file_get_contents( $file ) |
Definition at line 76 of file router.php.
Referenced by PoolWorkArticleView\__construct(), OutputPage\addContentOverride(), InfoAction\addTable(), ResourceLoaderModule\buildContent(), MediaWiki\Revision\RevisionStore\checkContent(), MediaWiki\Permissions\PermissionManager\checkUserConfigPermissions(), CleanupSpam\cleanupArticle(), MediaWiki\Storage\PageUpdater\computeEffectiveTags(), Message\content(), Installer\createMainpage(), EditPage\displayPermissionsError(), EditPage\displayViewSourcePage(), WikiPage\doDeleteArticleBatched(), Article\doDeleteUpdates(), WikiPage\doDeleteUpdates(), WikiPage\doEditContent(), FileBackendStore\doGetFileContentsMulti(), SwiftFileBackend\doGetFileContentsMulti(), EditPage\doPreviewParse(), ApiEditPage\execute(), ApiStashEdit\execute(), BenchmarkJavaScriptMinifier\execute(), BenchmarkJSMinPlus\execute(), EditCLI\execute(), GetTextMaint\execute(), ImportSiteScripts\execute(), ImportTextFiles\execute(), MakeTestEdits\execute(), DumpRev\execute(), ViewCLI\execute(), Parser\extensionSubstitution(), ApiQueryRevisionsBase\extractAllSlotInfo(), ApiQueryRevisionsBase\extractDeprecatedContent(), ApiQueryRevisionsBase\extractSlotInfo(), Parser\extractTagsAndParams(), SpecialNewpages\feedItemDesc(), ApiFeedContributions\feedItemDesc(), Xml\fieldset(), WikiImporter\finishImportPage(), RefreshLinks\fixRedirect(), FormatMetadata\flattenArrayReal(), ApiParse\formatHeadItems(), CoreTagHooks\gallery(), AutoloadGenerator\generatePHPAutoload(), BaseTemplate\getAfterPortlet(), ContentHandler\getAutoDeleteReason(), PreferencesFormOOUI\getBody(), MediaWiki\Widget\CheckMatrixWidget\getCellTag(), MediaWiki\Revision\RevisionRecord\getContent(), ResourceLoaderWikiModule\getContent(), MWHttpRequest\getContent(), MediaWiki\Storage\PageEditStash\getContentHash(), ResourceLoaderWikiModule\getContentObj(), EditPage\getContentObject(), Article\getContentObject(), ApiParse\getContentParserOutput(), ContentHandler\getContentText(), EditPage\getCurrentContent(), ContentHandler\getDataForSearchIndex(), WikiPage\getDeletionUpdates(), Article\getDeletionUpdates(), ApiComparePages\getDiffRevision(), Article\getEmptyPageParserOutput(), FileBackendStore\getFileContentsMulti(), ContentHandler\getForContent(), ChangeTagsLogItem\getHTML(), ChangeTagsRevisionItem\getHTML(), RevDelRevisionItem\getHTML(), BaseTemplate\getIndicators(), Skin\getIndicatorsData(), MessageCache\getMessageTextFromContent(), PNGMetadataExtractor\getMetadata(), ResourceLoaderFileModule\getPackageFiles(), ContentHandler\getPageViewLanguage(), EditPage\getPreloadedContent(), EditPage\getPreviewText(), RawAction\getRawText(), LogFormatter\getRestrictedElement(), Article\getRevisionRedirectTarget(), MediaWiki\Rest\Handler\CompareHandler\getRevisionText(), Revision\getRevisionText(), OutputPage\getRlClientContext(), MediaWiki\Storage\DerivedPageDataUpdater\getSecondaryDataUpdates(), ApiParse\getSectionContent(), BaseTemplate\getSidebar(), DifferenceEngine\getSlotDiffRenderers(), MediaWiki\Revision\RenderedRevision\getSlotParserOutput(), MediaWiki\Revision\RenderedRevision\getSlotParserOutputUncached(), Article\getSubstituteContent(), ResourceLoaderFileModule\getTemplates(), ResourceLoaderWikiModule\getTitleInfo(), FileBackendGroup\guessMimeInternal(), DumpRenderer\handleRevision(), FixDefaultJsonContentPages\handleRow(), CoreTagHooks\html(), implodeTokens(), CheckStorage\importRevision(), MediaWiki\Storage\PageEditStash\incrStatsByContent(), CoreTagHooks\indicator(), EditPage\initialiseForm(), initText(), WikiPage\insertRedirect(), EditPage\internalAttemptSave(), WikiPage\isCountable(), MediaWiki\Storage\DerivedPageDataUpdater\isCountable(), MovePage\isValidMoveTarget(), JobRunner\loadBackoffs(), MessageCache\loadCachedMessagePageEntry(), Benchmarker\loadFile(), MessageCache\loadFromDB(), MediaWiki\Storage\PageUpdater\makeAutoSummary(), WikiImporter\makeContent(), ResourceLoader\makeModuleResponse(), MediaWiki\Storage\PageUpdater\makeNewRevision(), MediaWiki\Rest\Handler\EditHandler\mapActionModuleResult(), LinkFilter\matchEntry(), MediaWiki\Storage\RevisionSlotsUpdate\modifyContent(), MediaWiki\Storage\RevisionSlotsUpdate\newFromContent(), MediaWiki\Revision\RevisionStore\newMutableRevisionFromArray(), CoreTagHooks\nowiki(), MediaWiki\HookContainer\HookRunner\onAlternateEditPreview(), MediaWiki\HookContainer\HookRunner\onArticleDeleteComplete(), MediaWiki\HookContainer\HookRunner\onContentAlterParserOutput(), MediaWiki\HookContainer\HookRunner\onContentGetParserOutput(), MediaWiki\HookContainer\HookRunner\onConvertContent(), MediaWiki\HookContainer\HookRunner\onEditFilterMergedContent(), MediaWiki\HookContainer\HookRunner\onEditPageGetPreviewContent(), MediaWiki\HookContainer\HookRunner\onPageContentInsertComplete(), MediaWiki\HookContainer\HookRunner\onPageContentSave(), MediaWiki\HookContainer\HookRunner\onPageContentSaveComplete(), MediaWiki\HookContainer\HookRunner\onParserOutputStashForEdit(), MediaWiki\HookContainer\HookRunner\onPlaceNewSection(), InfoAction\onView(), MediaWiki\HookContainer\HookRunner\onWikiPageDeletionUpdates(), OutputPage\output(), SpecialUploadStash\outputContents(), MediaWiki\outputResponsePayload(), MediaWiki\Storage\PageEditStash\parseAndCache(), ApiStashEdit\parseAndStash(), RebuildTextIndex\populateSearchIndex(), CoreTagHooks\pre(), MediaWiki\Storage\DerivedPageDataUpdater\prepareContent(), Article\prepareContentForEdit(), WikiPage\prepareContentForEdit(), WikiImporter\processRevision(), CompareParsers\processRevision(), PreprocessDump\processRevision(), WikiImporter\processUpload(), MWHttpRequest\read(), CurlHttpRequest\readHeader(), ApiFormatXml\recXmlPrint(), DoubleRedirectJob\run(), BenchmarkParse\runParser(), EditPage\runPostMergeFilters(), TextContentHandler\serializeContent(), UnknownContentHandler\serializeContent(), WikitextContentHandler\serializeContent(), MediaWiki\Revision\MutableRevisionRecord\setContent(), MediaWiki\Revision\MutableRevisionSlots\setContent(), MediaWiki\Storage\PageUpdater\setContent(), ParserOutput\setIndicator(), EditPage\setPreloadedContent(), SpecialRecentChanges\setTopText(), ParserOptions\setupFakeRevision(), EditPage\showEditForm(), SpecialBookSources\showList(), SpecialUndelete\showRevision(), Parser\statelessFetchTemplate(), MediaWiki\Revision\RevisionStore\storeContentBlob(), LogFormatter\styleRestricedElement(), JobRunner\syncBackoffDeltas(), Xml\textarea(), EditPage\toEditContent(), EditPage\toEditText(), PageArchive\undeleteRevisions(), MessageCache\updateMessageOverride(), WikiPage\updateRevisionOn(), wfThumbError(), OOUIHTMLForm\wrapForm(), XmlDumpWriter\writeRevision(), XmlDumpWriter\writeSlot(), and XmlDumpWriter\writeText().
if (!is_readable($file)) $ext = pathinfo( $file, PATHINFO_EXTENSION ) |
Definition at line 48 of file router.php.
Referenced by ResourceLoaderImage\__construct(), ApiQuerySiteinfo\appendExtensions(), ApiQuerySiteinfo\appendFileExtensions(), PHPVersionCheck\checkExtensionExistence(), UploadBase\checkFileExtension(), UploadBase\checkFileExtensionList(), UploadFromChunks\concatenateChunks(), HTTPFileStreamer\contentTypeFromPath(), StreamFile\contentTypeFromPath(), Installer\dirIsExecutable(), LocalFileDeleteBatch\doDBInserts(), FSFileBackend\doGetLocalCopyMulti(), MemoryFileBackend\doGetLocalCopyMulti(), SwiftFileBackend\doGetLocalCopyMulti(), SpecialVersion\execute(), ApiImageRotate\execute(), LocalFileDeleteBatch\execute(), WebInstallerOptions\execute(), FileBackend\extensionFromPath(), ImportImages\findFiles(), File\getArchiveThumbUrl(), File\getArchiveUrl(), MediaWiki\Revision\MainSlotRoleHandler\getDefaultModel(), SpecialMediaStatistics\getExtensionList(), ApiFormatBase\getFilename(), CSSMin\getMimeType(), ResourceLoaderImage\getMimeType(), IEContentAnalyzer\getMimeTypeForVersion(), ApiBase\getModuleSourceInfo(), MWFileProps\getPropsFromPath(), FSFile\getPropsFromPath(), File\getStorageKey(), MediaHandler\getThumbType(), UploadBase\getTitle(), File\getUrl(), FileRepo\getZoneUrl(), ForeignAPIRepo\getZoneUrl(), File\getZoneUrl(), FileBackendGroup\guessMimeInternal(), MediaWiki\OutputHandler\handleGzip(), LocalRepo\hiddenFileHasKey(), ChannelFeed\httpHeaders(), FileRepo\nameForThumb(), MediaWiki\FileBackend\FSFile\TempFSFileFactory\newTempFSFile(), MediaWiki\HookContainer\HookRunner\onMimeMagicImproveFromExtension(), ImagePage\openShowImage(), AutoloadGenerator\readDir(), GenerateSitemap\sitemapFilename(), WebInstallerOptions\submit(), and wfLoadExtensions().
ArchivedFile $file = $_SERVER['SCRIPT_FILENAME'] |
Item class for a filearchive table row.
Definition at line 42 of file router.php.
Referenced by DumpPipeOutput\__construct(), DumpBZip2Output\__construct(), DumpDBZip2Output\__construct(), DumpFileOutput\__construct(), DumpGZipOutput\__construct(), DumpLBZip2Output\__construct(), Dump7ZipOutput\__construct(), ThumbnailImage\__construct(), UnlistedSpecialPage\__construct(), IncludableSpecialPage\__construct(), ImageBuilder\addMissingImage(), OutputPage\addScriptFile(), Wikimedia\Rdbms\DatabaseSqlite\attachDatabase(), AutoLoader\autoload(), OutputPage\buildCssLinksArray(), GIFHandler\canAnimateThumbnail(), ApiDelete\canDeleteFile(), ImageHandler\canRender(), TiffHandler\canRender(), WebPHandler\canRender(), XCFHandler\canRender(), FindOrphanedFiles\checkFiles(), Sqlite\checkSqlSyntax(), UploadBase\checkXMLEncodingMissmatch(), ForeignResourceManager\cleanUp(), ImagePage\delete(), ApiDelete\deleteFile(), UploadBase\detectScript(), UploadBase\detectVirus(), Installer\dirIsExecutable(), SpecialRedirect\dispatchFile(), PopulateImageSha1\doDBUpdates(), FileOpPerfTest\doPerfTest(), RevDelFileList\doPostCommitUpdates(), UploadBase\doStashFile(), MovePageForm\doSubmit(), DjVuImage\dump(), DjVuImage\dumpForm(), MediaWiki\Logger\LegacyLogger\emit(), CSSMin\encodeImageAsDataURI(), SpecialUndelete\execute(), SpecialVersion\execute(), ApiImageRotate\execute(), ApiQueryFilearchive\execute(), ApiQueryStashImageInfo\execute(), BenchmarkCSSMin\execute(), BenchmarkJavaScriptMinifier\execute(), BenchmarkTidy\execute(), CheckImages\execute(), CleanupUploadStash\execute(), DeleteArchivedFiles\execute(), DeleteBatch\execute(), EraseArchivedFile\execute(), ExportSites\execute(), FindDeprecated\execute(), FindMissingFiles\execute(), ImportImages\execute(), ImportSites\execute(), ImportTextFiles\execute(), InvalidateUserSesssions\execute(), GenerateNormalizerDataAr\execute(), GeneratePhpCharToUpperMappings\execute(), MigrateFileRepoLayout\execute(), MoveBatch\execute(), PatchSql\execute(), RefreshFileHeaders\execute(), RefreshImageMetadata\execute(), MwSql\execute(), UpdateMediaWiki\execute(), UpdateSearchIndex\execute(), ResourceLoaderFileModule\expandPackageFiles(), ExtensionProcessor\extractExtensionMessagesFiles(), ExtensionProcessor\extractMessagesDirs(), FormatMetadata\fetchExtendedMetadata(), Parser\fetchFileAndTitle(), Parser\fetchFileNoRegister(), FileRepo\fileExists(), FileRepo\fileExistsBatch(), ForeignAPIRepo\fileExistsBatch(), CoreParserFunctions\filepath(), DumpUploads\filterItem(), ImportImages\findAuxFile(), LocalRepo\findBySha1s(), RiffExtractor\findChunks(), RiffExtractor\findChunksFromFile(), Installer\findExtensionsByType(), RepoGroup\findFileFromKey(), ImportImages\findFiles(), FileRepo\findFiles(), LocalRepo\findFiles(), SpecialUndelete\formatFileRow(), SvgHandler\formatMetadata(), ImageListPager\formatValue(), GenerateCollationData\generateFirstChars(), MediaWiki\ExtensionInfo\getAuthorsFileName(), SvgHandler\getAvailableLanguages(), ImageHistoryPseudoPager\getBody(), MWDebug\getCallerDescription(), ExifBitmapHandler\getCommonMetaArray(), SvgHandler\getCommonMetaArray(), FileContentHandler\getDataForSearchIndex(), PurgeChangedFiles\getDeletedPath(), UploadForm\getDescriptionSection(), DjVuHandler\getDimensionInfo(), ImageHandler\getDimensionsString(), SpecialUpload\getDupeWarning(), WikiFilePage\getDuplicates(), MediaHandler\getEntireText(), SpecialUpload\getExistsWarning(), FormatMetadata\getExtendedMetadataFromFile(), FormatMetadata\getExtendedMetadataFromHook(), MediaTransformOutput\getFile(), SpecialUndelete\getFileComment(), ImportImages\getFileCommentFromSourceWiki(), WebInstallerDocument\getFileContents(), SpecialUndelete\getFileLink(), WebRequest\getFileName(), MWDebug\getFilesIncluded(), WebRequest\getFileTempname(), SpecialUndelete\getFileUser(), ImportImages\getFileUserFromSourceWiki(), WikiFilePage\getForeignCategories(), MediaHandler\getGeneralLongDesc(), MediaHandler\getGeneralShortDesc(), SvgHandler\getImageSize(), WebPHandler\getImageSize(), ApiQueryImageInfo\getInfo(), DjVuImage\getInfo(), ImagePage\getLanguageForRendering(), GIFHandler\getLength(), PNGHandler\getLength(), MediaWiki\ExtensionInfo\getLicenseFileNames(), MWExceptionHandler\getLogMessage(), MWExceptionHandler\getLogNormalMessage(), ImageHandler\getLongDesc(), MediaHandler\getLongDesc(), SvgHandler\getLongDesc(), MediaWiki\Languages\LanguageNameUtils\getMessagesFileName(), CSSMin\getMimeType(), DjVuImage\getMultiPageInfo(), InstallerOverrides\getOverrides(), DjVuImage\getPageInfo(), SpecialFilepath\getRedirect(), ExifBitmapHandler\getRotation(), ResourceLoaderFileModule\getScript(), ResourceLoaderFileModule\getScriptURLsForDebug(), ImageHandler\getShortDesc(), MediaHandler\getShortDesc(), ResourceLoaderFileModule\getStyles(), ResourceLoaderFileModule\getStyleURLsForDebug(), ImageHistoryList\getThumbForLine(), LocalFile\getThumbnails(), ForeignAPIFile\getThumbnails(), TransformationalImageHandler\getThumbnailSource(), DjVuHandler\getUnserializedMetadata(), Wikimedia\ParamValidator\SimpleCallbacks\getUploadedFile(), WebRequest\getUploadError(), MWExceptionHandler\handleError(), ConvertExtensionToRegistration\handleExtensionMessagesFiles(), MWExceptionHandler\handleFatalError(), Parser\handleInternalLinks2(), ForeignResourceManager\handleTypeMultiFile(), ForeignResourceManager\handleTypeTar(), MediaWiki\Rest\Handler\MediaFileHandler\hasRepresentation(), ThumbnailRenderJob\hitThumbUrl(), ImageBuilder\imageCallback(), ImagePage\imageDupes(), ImageHistoryList\imageHistoryLine(), ImportableUploadRevisionImporter\import(), SiteImporter\importFromFile(), BackupReader\importFromFile(), BackupReader\importFromStdin(), Installer\includeExtensionFiles(), UploadStash\initFile(), MediaWiki\initializeArticle(), AutoloadGenerator\initMediaWikiDefault(), SvgHandler\isAnimatedImage(), MediaWiki\BadFileLookup\isBadFile(), DjVuHandler\isExpensiveToThumbnail(), TiffHandler\isExpensiveToThumbnail(), TransformationalImageHandler\isImageAreaOkForThumbnaling(), MovePage\isValidFileMove(), MovePage\isValidMoveTarget(), JobRunner\loadBackoffs(), Benchmarker\loadFile(), BackupDumper\loadPlugin(), RecompressTracked\logToFile(), Parser\makeImage(), Linker\makeImageLink(), DummyLinker\makeImageLink(), Linker\makeMediaLinkFile(), DummyLinker\makeMediaLinkFile(), SqliteInstaller\makeStubDBFile(), Linker\makeThumbLink2(), DummyLinker\makeThumbLink2(), Linker\makeThumbLinkObj(), DummyLinker\makeThumbLinkObj(), MovePage\moveFile(), TransformationalImageHandler\mustRender(), ImportStreamSource\newFromFile(), ArchivedFile\newFromRow(), LocalFile\newFromRow(), OldLocalFile\newFromRow(), ImportStreamSource\newFromURL(), ImageBuilder\oldimageCallback(), MediaWiki\HookContainer\HookRunner\onFileDeleteComplete(), MediaWiki\HookContainer\HookRunner\onFileTransformed(), MediaWiki\HookContainer\HookRunner\onFileUpload(), MediaWiki\HookContainer\HookRunner\onGetExtendedMetadata(), MediaWiki\HookContainer\HookRunner\onImageBeforeProduceHTML(), MediaWiki\HookContainer\HookRunner\onImagePageFileHistoryLine(), MediaWiki\HookContainer\HookRunner\onImagePageFindFile(), MediaWiki\HookContainer\HookRunner\onLanguage__getMessagesFileName(), MediaWiki\HookContainer\HookRunner\onLinkerMakeMediaLinkFile(), MediaWiki\HookContainer\HookRunner\onLocalFile__getHistory(), MediaWiki\HookContainer\HookRunner\onLocalFilePurgeThumbnails(), MediaWiki\HookContainer\HookRunner\onMimeMagicGuessFromContent(), MediaWiki\HookContainer\HookRunner\onParserMakeImageParams(), MediaWiki\HookContainer\HookRunner\onValidateExtendedMetadataCache(), DumpUploads\outputItem(), SpecialUploadStash\outputLocalFile(), SpecialUploadStash\outputLocallyScaledThumb(), SpecialUploadStash\outputRemoteScaledThumb(), SpecialUploadStash\outputThumbFromStash(), SpecialUploadStash\parseKey(), ApiUpload\performUpload(), ExtensionRegistry\processAutoLoader(), MediaWiki\Rest\Handler\MediaLinksHandler\processDbResults(), BackupDumper\processOptions(), DummyLinker\processResponsiveImages(), Linker\processResponsiveImages(), ResourceLoaderFileModule\processStyle(), PruneFileCache\prune_directory(), FileRepo\publishBatch(), PurgeChangedFiles\purgeFromArchiveTable(), PurgeChangedFiles\purgeFromLogType(), LocalFile\purgeThumbList(), ForeignAPIFile\purgeThumbnails(), DjVuImage\readChunk(), AutoloadGenerator\readDir(), XmlTypeCheck\readNext(), ResourceLoaderFileModule\readStyleFiles(), CSSMin\remap(), CSSMin\remapOne(), MediaWiki\Search\SearchWidgets\FullSearchResultWidget\render(), Parser\renderImageGallery(), CheckStorage\restoreText(), BitmapHandler\rotate(), JpegHandler\rotate(), ApiQueryAllImages\run(), ApiQueryDuplicateFiles\run(), ThumbnailRenderJob\run(), ImagePage\setFile(), WikiFilePage\setFile(), OutputPage\setFileVersion(), Dump7ZipOutput\setup7zCommand(), SpecialUndelete\showFileConfirmationForm(), EditPage\showIntro(), SpecialUploadStash\showUploads(), SpecialUpload\showUploadWarning(), DjVuImage\skipChunk(), JobRunner\syncBackoffDeltas(), Language\transformUsingPairFile(), ApiUpload\transformWarnings(), UploadBase\tryStashFile(), wfBacktrace(), wfExtractThumbParams(), wfGenerateThumbnail(), wfGetPrecompiledData(), wfImageAuthMain(), wfThumbIsStandard(), and XmlDumpWriter\writeUpload().
$mime = 'text/plain' |
Definition at line 60 of file router.php.
Referenced by ApiFormatBase\closePrinter(), UploadBase\detectScript(), RefreshImageMetadata\getConditions(), FileBackendStore\getContentType(), SpecialMediaStatistics\getExtensionList(), ApiQueryImageInfo\getInfo(), File\getIsSafeFileUncached(), LocalFile\getMimeType(), FSFile\getProps(), DjVuHandler\getThumbType(), MediaHandler\getThumbType(), UploadBase\getTitle(), ApiFormatBase\initPrinter(), MediaWiki\Api\ApiHookRunner\onApiFormatHighlight(), MediaWiki\HookContainer\HookRunner\onMimeMagicGuessFromContent(), MediaWiki\HookContainer\HookRunner\onMimeMagicImproveFromExtension(), MediaWiki\HookContainer\HookRunner\onUploadVerifyFile(), SpecialMediaStatistics\outputResults(), SpecialMediaStatistics\outputTableRow(), ApiQueryAllImages\run(), UserMailer\sendInternal(), File\splitMime(), UploadBase\verifyExtension(), UploadBase\verifyFile(), UploadBase\verifyMimeType(), and UploadBase\verifyPartialFile().
foreach(\Wikimedia\Mime\MimeMap::MIME_EXTENSIONS as $type=> $exts) if (preg_match('#^text/#', $mime) else) |
Definition at line 52 of file router.php.
return true |
Definition at line 92 of file router.php.
Referenced by MemcachedPeclBagOStuff\__construct(), MediaWiki\Tidy\RemexDriver\__construct(), ResourceLoaderSkinModule\__construct(), MessageCache\__construct(), DatabaseUpdater\addExtensionField(), DatabaseUpdater\addExtensionIndex(), DatabaseUpdater\addExtensionTable(), SkinTemplate\buildContentNavigationUrls(), Wikimedia\Rdbms\MySQLMasterPos\channelsMatch(), FileRepo\cleanupBatch(), FileBackendMultiWrite\consistencyCheck(), CommentStore\createComment(), FileRepo\deleteBatch(), MemcachedPeclBagOStuff\doDelete(), MemcachedPeclBagOStuff\doSet(), DatabaseUpdater\dropExtensionField(), DatabaseUpdater\dropExtensionIndex(), DatabaseUpdater\dropExtensionTable(), ApiEditPage\execute(), ApiFormatJson\execute(), ApiHelp\execute(), ApiQueryUsers\execute(), FixDoubleRedirects\execute(), EtcdConfig\fetchAllFromEtcdServer(), FileOp\fileExists(), CoreParserFunctions\filepath(), FileOp\fileSha1(), FileOp\fileSize(), ApiImageRotate\getAllowedParams(), ApiUserrights\getAllowedParams(), ApiEmailUser\getAllowedParams(), ApiMove\getAllowedParams(), ApiOptions\getAllowedParams(), ApiQueryAllPages\getAllowedParams(), ApiQueryBlocks\getAllowedParams(), ApiQueryDeletedrevs\getAllowedParams(), ApiQueryQueryPage\getAllowedParams(), ApiQueryRandom\getAllowedParams(), ApiQueryRecentChanges\getAllowedParams(), ApiQueryRevisions\getAllowedParams(), ApiQuerySearch\getAllowedParams(), ApiQueryUserContribs\getAllowedParams(), ApiQueryUsers\getAllowedParams(), ApiRevisionDelete\getAllowedParams(), ApiRollback\getAllowedParams(), ApiStashEdit\getAllowedParams(), ApiUndelete\getAllowedParams(), ApiValidatePassword\getAllowedParams(), RefreshSecondaryDataUpdate\getAsJobSpecification(), Wikimedia\Rdbms\DatabasePostgres\getAttributes(), Wikimedia\Rdbms\DatabaseSqlite\getAttributes(), OOUIHTMLForm\getButtons(), PostgresUpdater\getCoreUpdateList(), ParserCache\getDirty(), SpecialChangeContentModel\getFormFields(), DatabaseUpdater\getOldGlobalUpdates(), PostgresUpdater\getOldGlobalUpdates(), MWFileProps\getPropsFromPath(), UploadForm\getSourceSection(), Wikimedia\ParamValidator\TypeDef\PresenceBooleanDef\getValue(), MediaWiki\Rest\Handler\RevisionHandler\hasRepresentation(), FileRepo\initDirectory(), MemcachedPeclBagOStuff\initializeClient(), Language\internalUserTimeAndDate(), MediaWiki\Block\DatabaseBlock\isHardblock(), User\isItemLoaded(), ApiAuthManagerHelper\loadAuthenticationRequests(), Skin\makeKnownUrlDetails(), WANObjectCache\makeSisterKey(), JavaScriptMinifier\minify(), DatabaseUpdater\modifyExtensionField(), DatabaseUpdater\modifyExtensionTable(), MediaWiki\Session\UserInfo\newAnonymous(), HTMLCacheUpdateJob\newForBacklinks(), XmlTypeCheck\newFromFilename(), DuplicateJob\newFromJob(), ForeignAPIFile\newFromTitle(), ApiQuery\outputGeneralPageInfo(), ConverterRule\parse(), ConverterRule\parseFlags(), FileRepo\publishBatch(), FileRepo\quickPurgeBatch(), UploadFromUrl\reallyFetchFile(), CSSMin\remap(), DatabaseUpdater\renameExtensionIndex(), FileBackendMultiWrite\resyncFiles(), Message\setContext(), Profiler\setTemplated(), FileRepo\storeBatch(), MediaWiki\Storage\PageEditStash\storeStashValue(), WebInstallerName\submit(), SkinTemplate\tabAction(), Wikimedia\Rdbms\DatabaseSqlite\tableExists(), and MediaWiki\Session\UserInfo\verified().