MediaWiki REL1_28
|
Import one or more images from the local file system into the wiki without using the web-based interface. More...
Go to the source code of this file.
Functions | |
showUsage ( $reason=false) | |
Variables | |
$comment = 'Importing file' | |
if(isset($options[ 'comment-file'])) elseif(isset( $options['comment'])) | $commentExt = isset( $options['comment-ext'] ) ? $options['comment-ext'] : false |
$count = count( $files ) | |
if(count( $args)==0) | $dir = $args[0] |
$extensions | |
$files = findFiles( $dir, $extensions, isset( $options['search-recursively'] ) ) | |
$from = $options['from'] | |
$license = isset( $options['license'] ) ? $options['license'] : '' | |
$limit = $options['limit'] | |
$optionsWithArgs | |
$optionsWithoutArgs | |
$processed = $added = $ignored = $skipped = $overwritten = $failed = 0 | |
$sleep = $options['sleep'] | |
$summary = isset( $options['summary'] ) ? $options['summary'] : '' | |
if( $limit) | $timestamp = isset( $options['timestamp'] ) ? $options['timestamp'] : false |
$user | |
if(isset($options[ 'protect']) &&isset($options[ 'unprotect'])) if(isset( $options['protect']) && $options['protect']==1) global | $wgFileExtensions |
if(! $user instanceof User) | $wgUser = $user |
if(isset( $options['check-userblock'])) | else |
Import one or more images from the local file system into the wiki without using the web-based interface.
"Smart import" additions:
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 importImages.php.
showUsage | ( | $reason = false | ) |
$comment = 'Importing file' |
Definition at line 122 of file importImages.php.
Referenced by BackupDumperLoggerTest\addLogEntry(), LogFormatterTest\assertIRCComment(), BackupDumperLoggerTest\assertLogItem(), Orphans\checkOrphans(), DummyLinker\commentBlock(), Linker\commentBlock(), ApiFeedWatchlist\createFeedItem(), ApiTestCaseUpload\deleteFileByTitle(), GenderCache\doQuery(), UserCache\doQuery(), ApiImageRotate\execute(), ApiQueryRevisionsBase\extractRevisionInfo(), Linker\formatAutocomments(), DummyLinker\formatComment(), Linker\formatComment(), FeedUtils\formatDiffRow(), SpecialUndelete\formatFileRow(), DummyLinker\formatLinksInComment(), Linker\formatLinksInComment(), DeletedContribsPager\formatRevisionRow(), SpecialMergeHistory\formatRevisionRow(), SpecialUndelete\formatRevisionRow(), SpecialNewpages\formatRow(), ContribsPager\formatRow(), LogFormatter\getComment(), UploadBase\getFilenamePrefixBlacklist(), ChangeTagsLogItem\getHTML(), ChangeTagsRevisionItem\getHTML(), RevDelLogItem\getHTML(), RevDelRevisionItem\getHTML(), RevisionItem\getHTML(), ApiQueryImageInfo\getInfo(), SpecialUpload\getInitialPageText(), LogFormatter\getIRCActionComment(), IRCColourfulRCFeedFormatter\getLine(), GIFMetadataExtractor\getMetadata(), MediaWikiTestCase\insertPage(), LogEventsList\logLine(), MovePage\move(), MovePage\moveToInternal(), RecentChange\newForCategorization(), CategoryMembershipChange\notifyCategorization(), RecentChange\notifyEdit(), RecentChange\notifyNew(), RevertAction\onSubmit(), UploadBase\performUpload(), OldLocalFile\recordOldUpload(), LocalFile\recordUpload2(), ImportReporter\reportPage(), RevDelList\setVisibility(), EditPage\showEditForm(), SpecialRevisionDelete\submit(), LinkerTest\testFormatComment(), LanguageTest\testGetParentLanguage(), LanguageTest\testIsSupportedLanguage(), LogFormatterTest\testLogComment(), PageArchive\undelete(), PageArchive\undeleteRevisions(), LocalFile\upload(), OldLocalFile\uploadOld(), and XmlDumpWriter\writeUpload().
if(isset( $options['comment-file'])) elseif (isset($options[ 'comment'])) $commentExt = isset( $options['comment-ext'] ) ? $options['comment-ext'] : false |
Definition at line 133 of file importImages.php.
$count = count( $files ) |
Definition at line 141 of file importImages.php.
Referenced by RedisLockManager\__destruct(), Benchmarker\bench(), ImageBuilder\buildTable(), SectionProfiler\calltreeCount(), CheckStorage\check(), UserDupes\checkDupes(), NamespaceConflictChecker\checkNamespace(), DumpMultiWriter\closeAndRename(), LanguageKsh\convertPlural(), Language\convertPlural(), SpecialWatchlist\countItems(), Sanitizer\decodeCharReferencesAndNormalize(), CategoryViewer\doCategoryQuery(), FixExtLinksProtocolRelative\doDBUpdates(), PopulateParentId\doDBUpdates(), DeleteOldRevisions\doDelete(), JobQueueDB\doGetAbandonedCount(), JobQueueDB\doGetAcquiredCount(), SpecialRecentChanges\doHeader(), PopulateRevisionLength\doLenUpdates(), PopulateRevisionSha1\doSha1LegacyUpdates(), PopulateRevisionSha1\doSha1Updates(), MovePageForm\doSubmit(), MysqlUpdater\doTemplatelinksUpdate(), MultiWriteBagOStuff\doWrite(), DatabasePostgres\estimateRowCount(), ApiFeedContributions\execute(), ApiQueryAllUsers\execute(), ApiQueryBlocks\execute(), ApiQueryContributors\execute(), ApiQueryDeletedrevs\execute(), ApiQueryExternalLinks\execute(), ApiQueryFilearchive\execute(), ApiQueryImageInfo\execute(), ApiQueryIWLinks\execute(), ApiQueryLangLinks\execute(), ApiQueryLogEvents\execute(), ApiQueryMyStashedFiles\execute(), ApiQueryPagePropNames\execute(), ApiQueryTags\execute(), ApiQueryContributions\execute(), CheckBadRedirects\execute(), CleanupSpam\execute(), CopyFileBackend\execute(), DeleteArchivedFiles\execute(), DeleteArchivedRevisions\execute(), DeleteOrphanedRevisions\execute(), ImportTextFiles\execute(), MakeTestEdits\execute(), MigrateUserGroup\execute(), NukeNS\execute(), NukePage\execute(), RefreshFileHeaders\execute(), RemoveInvalidEmails\execute(), RemoveUnusedAccounts\execute(), RenameDbPrefix\execute(), ShowJobs\execute(), StorageTypeStats\execute(), UpdateCollation\execute(), PPFrame_DOM\expand(), TextPassDumper\finalOptionCheck(), TemplatesOnThisPageFormatter\format(), MostcategoriesPage\formatResult(), MostinterwikisPage\formatResult(), CategoryPager\formatRow(), ActiveUsersPager\formatRow(), UsersPager\formatRow(), CreditsAction\getContributors(), InfoAction\getContributors(), JobQueueFederated\getCrossPartitionSum(), DjVuHandler\getDimensionInfo(), User\getEditCount(), DumpMultiWriter\getFilenames(), ApiHelp\getHelpInternal(), ApiBase\getModuleFromPath(), SpecialEditWatchlist\getNormalForm(), BacklinkCache\getNumLinks(), WantedPagesPage\getQueryInfo(), RandomImageGenerator\getRandomWordPairs(), MergeHistory\getRevisionCount(), UIDGenerator\getSequentialPerNodeIDs(), Language\handleExplicitPluralForms(), SearchHighlighter\highlightText(), ImagePage\imageLinks(), MediaWiki\Auth\Throttler\increase(), DatabaseOracle\indexExists(), ImageBuilder\init(), User\initEditCount(), RemoveUnusedAccounts\isInactiveAccount(), Title\moveSubpages(), moveToExternal(), UIDGenerator\newSequentialPerNodeIDs(), ChangesList\numberofWatchingusers(), ImagePage\openShowImage(), MediaStatisticsPage\outputTableRow(), CheckLanguageCLI\outputText(), CheckLanguageCLI\outputWiki(), PurgeChangedPages\pageableSortedRows(), CoreParserFunctions\pagesincategory(), FormatJson\parse(), PPFuzzTester\pickEntryPoint(), User\pingLimiter(), RebuildTextIndex\populateSearchIndex(), Language\preConvertPlural(), Preprocessor_Hash\preprocessToObj(), ImageBuilder\progress(), Maintenance\purgeRedundantText(), MediaWiki\Tidy\BalanceActiveFormattingElements\push(), ApiQueryContinueTestBase\query(), AllMessagesTablePager\reallyDoQuery(), EnhancedChangesList\recentChangesBlockGroup(), JobQueueDB\recycleAndDeleteStaleJobs(), DatabasePostgres\relationExists(), DbTestPreviewer\report(), ChangeTags\restrictedTagError(), ApiQueryAllCategories\run(), ApiQueryAllImages\run(), ApiQueryAllLinks\run(), ApiQueryAllPages\run(), ApiQueryCategories\run(), ApiQueryCategoryMembers\run(), ApiQueryDuplicateFiles\run(), ApiQueryExtLinksUsage\run(), ApiQueryImages\run(), ApiQueryIWBacklinks\run(), ApiQueryLangBacklinks\run(), ApiQueryLinks\run(), ApiQueryPagesWithProp\run(), ApiQueryPrefixSearch\run(), ApiQueryProtectedTitles\run(), ApiQueryQueryPage\run(), ApiQueryRecentChanges\run(), ApiQuerySearch\run(), ApiQueryWatchlist\run(), ApiQueryWatchlistRaw\run(), ApiQueryAllDeletedRevisions\run(), ApiQueryAllRevisions\run(), ApiQueryBacklinksprop\run(), ApiQueryDeletedRevisions\run(), ApiQueryRevisions\run(), ApiQueryBacklinks\runFirstQuery(), ApiQueryRandom\runQuery(), ApiQueryBacklinks\runSecondQuery(), Maintenance\shouldExecute(), UserrightsPage\showEditUserGroupsForm(), MovePageForm\showSubpages(), SpecialUpload\showUploadWarning(), SpecialUpload\showViewDeletedLinks(), SearchHighlighter\splitAndAdd(), UploadSourceAdapter\stream_read(), SevenZipStream\stream_read(), ApiEditPageTest\testEdit_redirect(), ApiEditPageTest\testEdit_redirectText(), ApiEditPageTest\testEditAppend(), ApiEditPageTest\testEditConflict(), ApiEditPageTest\testEditConflict_bug41990(), ApiEditPageTest\testEditConflict_newSection(), ServiceContainerTest\testGetService(), SpecialPageFactoryTest\testHookNotCalledTwice(), SiteTest\testSetAndRemovePath(), GenericArrayObjectTest\testUnset(), BagOStuff\trackDuplicateKeys(), PopulateContentModel\updatePageRows(), PopulateContentModel\updateRevisionOrArchiveRows(), UserOptions\USAGER(), Exif\validate(), wfIncrStats(), DumpMultiWriter\writeClosePage(), DumpMultiWriter\writeCloseStream(), DumpMultiWriter\writeOpenPage(), DumpMultiWriter\writeOpenStream(), and DumpMultiWriter\writeRevision().
if (count($args)==0) $dir = $args[0] |
Definition at line 56 of file importImages.php.
Referenced by FSFileBackendList\__construct(), FileBackendStoreShardListIterator\__construct(), IndexPager\__construct(), CheckSyntax\addDirectoryContent(), OutputPage\addStyle(), ApiQueryBase\addTimestampWhereRange(), ApiQueryBase\addWhereRange(), HHVMMakeRepo\appendDir(), FileCacheBase\cachePath(), JobQueueDB\claimRandom(), FileRepo\cleanDir(), SqliteInstaller\dataDirOKmaybeCreate(), UploadFromUrlTestSuite\deleteDirs(), FileBackendStore\directoryExists(), CliInstaller\dirIsExecutable(), Installer\dirIsExecutable(), FileBackendStore\doClean(), SwiftFileBackend\doCleanInternal(), FSFileBackend\doCleanInternal(), SwiftFileBackend\doDirectoryExists(), FSFileBackend\doDirectoryExists(), TestFileOpPerformance\doPerfTest(), FileBackendStore\doPrepare(), FSFileBackend\doPrepareInternal(), FileBackendStore\doPublish(), FSFileBackend\doPublishInternal(), FileBackendStore\doSecure(), FSFileBackend\doSecureInternal(), FileBackendTest\doTestRecursiveClean(), Language\embedBidi(), Installer\envCheckUploadsDirectory(), SpecialExport\execute(), ApiQueryAllUsers\execute(), ApiQueryDeletedrevs\execute(), ApiQueryFilearchive\execute(), UploadStashCleanup\execute(), FindHooks\execute(), HHVMMakeRepo\execute(), PruneFileCache\execute(), Exif\exifGPStoNumber(), ExtensionProcessor\extractExtensionMessagesFiles(), ExtensionProcessor\extractInfo(), ExtensionProcessor\extractResourceLoaderModules(), findFiles(), FileBackendStore\getDirectoryList(), MemoryFileBackend\getDirectoryListInternal(), SwiftFileBackend\getDirectoryListInternal(), FSFileBackend\getDirectoryListInternal(), SwiftFileBackend\getDirListPageInternal(), FileBackendStore\getFileList(), SwiftFileBackend\getFileListInternal(), FSFileBackend\getFileListInternal(), SwiftFileBackend\getFileListPageInternal(), SpecialVersion\getGitCurrentBranch(), SpecialVersion\getGitHeadSha1(), FindHooks\getHooksFromDir(), SqliteInstaller\getLocalSettings(), SpecialRandomInCategory\getQueryInfo(), RandomImageGenerator\getRandomFilenames(), FSFileBackendList\getRelPath(), ResourceLoaderTestCase\getResourceLoaderContext(), LocalFile\getThumbnails(), ForeignAPIFile\getThumbnails(), FileRepo\initDirectory(), FSFileBackendList\initIterator(), AutoloadGenerator\initMediaWikiDefault(), SqliteInstaller\makeStubDBFile(), SqliteInstaller\needsUpgrade(), SqliteInstaller\openConnection(), ImageCleanup\pokeFile(), ExtensionRegistry\processAutoLoader(), PruneFileCache\prune_directory(), LocalFile\purgeOldThumbnails(), LocalFile\purgeThumbList(), ForeignAPIFile\purgeThumbnails(), LocalFile\purgeThumbnails(), FileRepo\quickCleanDir(), AutoloadGenerator\readDir(), LocalisationCache\recache(), ApiQueryAllCategories\run(), ApiQueryAllPages\run(), ApiQueryCategoryMembers\run(), ApiQueryPagesWithProp\run(), ApiQueryAllDeletedRevisions\run(), ApiQueryAllRevisions\run(), ApiQueryDeletedRevisions\run(), WikiImporter\setImageBasePath(), SqliteInstaller\setupDatabase(), OutputPage\setupOOUI(), UploadFromUrlTestSuite\setupUploadDir(), Article\showCssOrJsPage(), LogEventsList\showLogExtract(), Article\showMissingArticle(), SqliteInstaller\submitConnectForm(), GitInfoTest\testMissingJsonData(), wfMkdirParents(), wfRecursiveRemoveDir(), and RandomImageGenerator\writeImages().
Definition at line 69 of file importImages.php.
Referenced by ResourceLoaderImage\__construct(), ApiQuerySiteinfo\appendExtensions(), UploadBase\checkWarnings(), SpecialVersion\execute(), WebInstallerOptions\execute(), HHVMMakeRepo\execute(), SpecialVersion\getExtensionCredits(), UploadStash\getExtensionForPath(), MediaHandler\getThumbType(), SpecialUpload\processVerificationError(), and wfEntryPointCheck().
$files = findFiles( $dir, $extensions, isset( $options['search-recursively'] ) ) |
Definition at line 74 of file importImages.php.
Referenced by MediaWikiTestCase\addTmpFiles(), HHVMMakeRepo\appendDir(), CheckSyntax\buildFileList(), AutoLoaderTest\checkAutoLoadConf(), TextPassDumperDatabaseTest\checkpointHelper(), Sqlite\checkSqlSyntax(), SqliteMaintenance\checkSyntax(), FileRepo\cleanupBatch(), LocalFileMoveBatch\cleanupSource(), ResourceLoaderFileModule\compileLessFile(), ParserTestRunner\deleteFiles(), UploadFromUrlTestSuite\deleteFiles(), FileBackendTest\doTestDoQuickOperations(), FileBackendTest\doTestGetDirectoryList(), FileBackendTest\doTestGetFileList(), FindDeprecated\execute(), HHVMMakeRepo\execute(), ImportTextFiles\execute(), JSParseHelper\execute(), PatchSql\execute(), ParserFuzzTest\execute(), ParserTestsMaintenance\execute(), ExtensionProcessor\extractMessagesDirs(), FileRepo\fileExistsBatch(), ForeignAPIRepo\fileExistsBatch(), FileRepo\findBySha1s(), RepoGroup\findBySha1s(), findFiles(), LocalRepo\findFilesByPrefix(), ResourceLoaderFileModule\getFileHashes(), ResourceLoaderImageModule\getFileHashes(), SwiftFileBackend\getFileListPageInternal(), FindDeprecated\getFiles(), MWDebug\getFilesIncluded(), CSSMin\getLocalFileReferences(), ResourceLoaderFileModule\getScript(), ResourceLoaderFileModule\getScriptFiles(), LocalFile\getThumbnails(), ForeignAPIFile\getThumbnails(), CryptRand\initialRandomState(), ResourcesTest\provideMediaStylesheets(), ResourcesTest\provideResourceFiles(), LocalFile\purgeOldThumbnails(), LocalFile\purgeThumbList(), ForeignAPIFile\purgeThumbnails(), LocalFile\purgeThumbnails(), MergeMessageFileList\readFile(), ResourceLoaderFileModule\readStyleFiles(), LocalFileDeleteBatch\removeNonexistentFiles(), LocalFileRestoreBatch\removeNonexistentFiles(), LocalFileMoveBatch\removeNonexistentFiles(), LocalFileRestoreBatch\removeNonexistentFromCleanup(), ApiQueryDuplicateFiles\run(), ResourceLoaderModule\setFileDependencies(), SpecialUndelete\showHistory(), SpecialUploadStash\showUploads(), ResourcesTest\testCommentedLocalFileReferences(), and FileContentsHasherTest\testMultipleFileHash().
$from = $options['from'] |
Definition at line 98 of file importImages.php.
Referenced by DoubleReplacer\__construct(), MediaWiki\Session\SessionInfo\__construct(), CategoryPager\__construct(), LanguageConverter\applyManualConv(), MediaWiki\Auth\AuthManager\autoCreateUser(), CategoryPage\closeShowCategory(), WikiPage\commitRollback(), ReassignEdits\doReassignEdits(), SiteConfiguration\doReplace(), SpecialAllPages\execute(), SpecialCategories\execute(), SpecialPrefixindex\execute(), ApiQueryAllUsers\execute(), ApiQueryDeletedrevs\execute(), ApiQueryFilearchive\execute(), CleanupBlocks\execute(), ConvertLinks\execute(), ReassignEdits\execute(), SpecialWatchlist\fetchOptionsFromRequest(), WikiFilePage\followRedirect(), BrokenRedirectsPage\formatResult(), ApiFeedWatchlist\getAllowedParams(), FormatJsonTest\getEncodeTestCases(), WikiFilePage\getRedirectTarget(), ApiPageSet\getRedirectTargets(), ConverterRule\getRulesDesc(), CategoryPager\getStartForm(), Article\loadFromRow(), WikiPage\loadFromRow(), Article\loadPageData(), WikiPage\loadPageData(), ApiMergeHistory\merge(), ApiMove\movePage(), SpecialPrefixindex\namespacePrefixForm(), WikiPage\newFromID(), WikiPage\newFromRow(), RollbackAction\onView(), SpecialAllPages\outputHTMLForm(), ConverterRule\parseRules(), UserDupes\reassignEdits(), File\redirectedFrom(), ReplacementArray\removeArray(), ReplacementArray\removePair(), ApiQueryAllCategories\run(), ApiQueryAllImages\run(), ApiQueryAllLinks\run(), ApiQueryAllPages\run(), ApiQueryCategoryMembers\run(), ApiQueryIWBacklinks\run(), ApiQueryLangBacklinks\run(), ApiQueryPagesWithProp\run(), User\saveSettings(), ApiOpenSearch\search(), Database\selectSQLText(), UserMailer\send(), UserMailer\sendInternal(), User\sendMail(), ReplacementArray\setPair(), Article\setRedirectedFrom(), SpecialAllPages\showChunk(), SpecialWhatLinksHere\showIndirectLinks(), SpecialPrefixindex\showPrefixChunk(), SpecialAllPages\showToplevel(), SpecialEmailUser\submit(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest\testAccountCreationEmail(), FormatJsonTest\testEncodeAllOk(), FormatJsonTest\testEncodeDefault(), FormatJsonTest\testEncodeUtf8(), FormatJsonTest\testEncodeXmlMeta(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProviderTest\testProviderChangeAuthenticationDataEmail(), and wfRelativePath().
Definition at line 138 of file importImages.php.
Referenced by SpecialUpload\getInitialPageText(), and LocalFile\recordUpload().
$limit = $options['limit'] |
Definition at line 112 of file importImages.php.
$optionsWithArgs |
Definition at line 35 of file importImages.php.
$optionsWithoutArgs |
Definition at line 40 of file importImages.php.
$processed = $added = $ignored = $skipped = $overwritten = $failed = 0 |
Definition at line 47 of file importImages.php.
Referenced by SearchHighlighter\highlightText(), ImageBuilder\progress(), and SearchUpdateTest\testUnicodeLinkSearchIndexError().
$sleep = $options['sleep'] |
Definition at line 103 of file importImages.php.
Definition at line 135 of file importImages.php.
Referenced by FetchTextTest\addRevision(), DumpTestCase\addRevision(), DumpTestCase\assertRevision(), WikiPage\commitRollback(), Article\commitRollback(), ApiQueryWatchlistIntegrationTest\doAnonPageEdit(), ApiQueryWatchlistIntegrationTest\doBotPageEdit(), WikiPage\doCreate(), Article\doEdit(), WikiPage\doEdit(), Article\doEditContent(), WikiPage\doEditContent(), ApiQueryWatchlistIntegrationTest\doMinorPageEdit(), WikiPage\doModify(), ApiQueryWatchlistIntegrationTest\doPageEdit(), ApiQueryWatchlistIntegrationTest\doPatrolledPageEdit(), WikiPage\doRollback(), Article\doRollback(), ApiTestCase\editPage(), ApiRollback\execute(), EditCLI\execute(), ImportTextFiles\execute(), MakeTestEdits\execute(), RollbackEdits\execute(), ApiParse\formatSummary(), ResourceLoaderFileModule\getDefinitionSummary(), ResourceLoaderImageModule\getDefinitionSummary(), ResourceLoaderStartUpModule\getDefinitionSummary(), ResourceLoaderWikiModule\getDefinitionSummary(), SpecialJavaScriptTest\getSummaryHtml(), ResourceLoaderModule\getVersionHash(), Revision\newNullRevision(), ApiStashEdit\parseAndStash(), User\pingLimiter(), SpecialJavaScriptTest\plainQUnit(), EditPageTest\testCreatePage(), EditPageTest\testCreatePageTrx(), WikitextContentHandlerTest\testGetAutosummary(), EditPageTest\testSectionEdit(), EditPageTest\testUpdatePage(), and EditPageTest\testUpdatePageTrx().
Definition at line 119 of file importImages.php.
Referenced by MergeHistory\__construct(), ParserOutput\addImage(), ImageBuilder\addMissingImage(), LocalFileMoveBatch\addOlds(), ProtectionForm\buildForm(), ApiStashEdit\buildStashValue(), FileCacheBase\cacheTimestamp(), AjaxResponse\checkLastModified(), OutputPage\checkLastModified(), RevisionDeleter\checkRevisionExistence(), SwiftFileBackend\convertSwiftDate(), ApiFeedWatchlist\createFeedItem(), Xml\dateMenu(), SqlBagOStuff\deleteObjectsExpiringBefore(), ApiTestCase\doApiRequestWithToken(), Block\doAutoblock(), JobQueue\doDeduplicateRootJob(), JobQueueDB\doDeduplicateRootJob(), JobQueueRedis\doDeduplicateRootJob(), SpecialWatchlist\doHeader(), JobQueue\doIsRootJobOldDuplicate(), JobQueueRedis\doIsRootJobOldDuplicate(), RevDelFileList\doPostCommitUpdates(), RevDelFileList\doQuery(), ApiMergeHistory\execute(), ApiQueryAllUsers\execute(), ApiSetNotificationTimestamp\execute(), LocalFileRestoreBatch\execute(), FixTimestamps\execute(), FixUserRegistration\execute(), ImportTextFiles\execute(), ApiEditPageTest\forceRevisionDate(), EditPageTest\forceRevisionDate(), FeedUtils\formatDiff(), FeedUtils\formatDiffRow(), AtomFeed\formatTime(), BlockListPager\formatValue(), CreditsAction\getAuthor(), Block\getAutoblockExpiry(), EnhancedChangesListTest\getCategorizationChange(), NewUsersLogFormatter\getComment(), ReverseChronologicalPager\getDateCond(), TestRecentChangesHelper\getDefaultAttributes(), EnhancedChangesListTest\getEditChange(), RevertAction\getFormFields(), User\getNewMessageLinks(), PageArchive\getPreviousRevision(), ActiveUsersPager\getQueryInfo(), BenchmarkParse\getRevIdForTime(), PageArchive\getRevision(), DifferenceEngine\getRevisionHeader(), Parser\getRevisionTimestamp(), ImageHistoryList\getThumbForLine(), FSFile\getTimestamp(), Revision\getTimestampFromId(), Preferences\getTimezoneOptions(), ImageHistoryList\imageHistoryLine(), EditPage\internalAttemptSave(), FileCacheBase\isCacheGood(), Block\isExpired(), RecentChange\isInRCLifespan(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider\isTimestampValid(), Skin\lastModified(), JobRunner\loadBackoffs(), Revision\loadFromTimestamp(), MediaWiki\main(), TestRecentChangesHelper\makeCategorizationRecentChange(), MediaWiki\Logger\Monolog\SyslogHandler\makeCommonSyslogHeader(), TestRecentChangesHelper\makeDeletedEditRecentChange(), TestRecentChangesHelper\makeEditRecentChange(), TestRecentChangesHelper\makeLogRecentChange(), TestRecentChangesHelper\makeNewBotEditRecentChange(), WANObjectCache\makePurgeValue(), MediaWiki\Session\Token\match(), ApiMergeHistory\merge(), RecentChange\newForCategorization(), RecentChange\newLogEntry(), RecentChange\notifyEdit(), RecentChange\notifyLog(), RecentChange\notifyNew(), SpecialLockdb\onSubmit(), RevertAction\onSuccess(), SpecialRecentChanges\optionsPanel(), IPTC\parse(), Parser\pstPass2(), ZipDirectoryReader\readCentralDirectory(), ApiQueryRecentChanges\run(), DeleteLinksJob\run(), User\setEmailAuthenticationTimestamp(), OutputPage\setLastModified(), WatchedItemStore\setNotificationTimestampsForUser(), Article\setOldSubtitle(), OutputPage\setRevisionTimestamp(), ParserOutput\setTimestamp(), MessageBlobStoreTest\setUp(), SpecialSearch\showHit(), SpecialUndelete\showRevision(), JobRunner\syncBackoffDeltas(), WatchedItemUnitTest\testAddWatch(), ConvertibleTimestampTest\testConstructWithNoTimestamp(), WatchedItemUnitTest\testFromUserTitle(), ReverseChronologicalPagerTest\testGetDateCond(), ConvertibleTimestampTest\testInvalidOutput(), RecentChangeTest\testIsInRCLifespan(), MergeHistoryTest\testIsValidMerge(), WatchedItemUnitTest\testIsWatched(), WfTimestampTest\testOldTimestamps(), ConvertibleTimestampTest\testOutOfRangeTimestamps(), WatchedItemUnitTest\testRemoveWatch(), WatchedItemStoreUnitTest\testSetNotificationTimestampsForUser_allRows(), WatchedItemStoreUnitTest\testSetNotificationTimestampsForUser_specificTargets(), ConvertibleTimestampTest\testToString(), ConvertibleTimestampTest\testValidOutput(), ConvertibleTimestampTest\testValidParse(), MediaWiki\Session\Token\toStringAtTimestamp(), File\transform(), LinksUpdate\updateLinksTimestamp(), WatchedItemStore\updateNotificationTimestamp(), User\validateCache(), and XmlDumpWriter\writeTimestamp().
$user |
Definition at line 77 of file importImages.php.
if(isset( $options['protect']) &&isset( $options['unprotect'])) if (isset($options[ 'protect']) &&$options[ 'protect']==1) global $wgFileExtensions |
Definition at line 68 of file importImages.php.
if (! $user instanceof User) $wgUser = $user |
Definition at line 83 of file importImages.php.
if ($count > 0) else |
Definition at line 92 of file importImages.php.