Файловый менеджер - Редактировать - /var/www/html/MsUpload.zip
Ðазад
PK ! �4s�� � README.mdnu �[��� # MsUpload ## Installation To install MsUpload, add the following to your LocalSettings.php: ### If necessary, adjust the global configuration: $wgEnableUploads = true; // Enable uploads\ $wgFileExtensions = array('png','gif','jpg','jpeg','doc','xls','mpp','pdf','ppt','tiff','bmp','docx','xlsx','pptx','ps','odt','ods','odp','odg');\ $wgAllowJavaUploads = true; // Solves problem with Office 2007 and newer files (docx, xlsx, etc.)\ $wgVerifyMimeType = false; // May solve problem with uploads of incorrect mime types ### Then load the extension and configure it as needed. The values shown below are the defaults, so they may be omitted: wfLoadExtension( 'MsUpload' );\ $wgMSU_useDragDrop = true;\ $wgMSU_showAutoCat = true;\ $wgMSU_checkAutoCat = true;\ $wgMSU_useMsLinks = false;\ $wgMSU_confirmReplace = true; // Show the "Replace file?" checkbox\ $wgMSU_imgParams = '400px'; ## Credits * Developed and coded by Martin Schwindl (wiki@ratin.de) * Idea, project management and bug fixing by Martin Keyler (wiki@keyler-consult.de) * Updated, debugged and enhanced by Felipe Schenone (schenonef@gmail.com) * Some icons by Yusuke Kamiyamane (http://p.yusukekamiyamane.com). All rights reserved. Licensed under a Creative Commons Attribution 3.0 License. PK ! �\$C� � Gruntfile.jsnu �[��� /* eslint-env node */ module.exports = function ( grunt ) { grunt.loadNpmTasks( 'grunt-eslint' ); grunt.loadNpmTasks( 'grunt-banana-checker' ); grunt.initConfig( { eslint: { options: { cache: true }, all: [ '**/*.{js,json}', '!node_modules/**', '!vendor/**', '!resources/plupload/**' ] }, banana: { all: 'i18n/' } } ); grunt.registerTask( 'test', [ 'eslint', 'banana' ] ); grunt.registerTask( 'default', 'test' ); }; PK ! �_�L L extension.jsonnu �[��� { "manifest_version": 2, "name": "MsUpload", "version": "14.1", "author": [ "[mailto:wiki@ratin.de Martin Schwindl]", "[mailto:wiki@keyler-consult.de Martin Keyler]", "[https://www.mediawiki.org/wiki/User:Sophivorus Felipe Schenone]" ], "url": "https://www.mediawiki.org/wiki/Extension:MsUpload", "descriptionmsg": "msu-desc", "license-name": "GPL-2.0-or-later", "type": "parserhook", "requires": { "MediaWiki": ">= 1.41.0" }, "MessagesDirs": { "MsUpload": [ "i18n" ] }, "AutoloadClasses": { "MsUpload\\Hooks": "includes/Hooks.php" }, "ResourceModules": { "ext.MsUpload": { "scripts": "MsUpload.js", "styles": "MsUpload.less", "messages": [ "msu-button-title", "msu-insert-link", "msu-insert-gallery", "msu-insert-files", "msu-insert-links", "msu-insert-image", "msu-insert-video", "msu-cancel-upload", "msu-continue", "msu-clean-all", "msu-ext-not-allowed", "msu-upload-this", "msu-upload-all", "msu-upload-good", "msu-dropzone", "msu-comment" ] } }, "ResourceFileModulePaths": { "localBasePath": "resources", "remoteExtPath": "MsUpload/resources" }, "Hooks": { "EditPage::showEditForm:initial": "MsUpload\\Hooks::onEditPageShowEditFormInitial" }, "config": { "MSU_useDragDrop": { "value": true }, "MSU_showAutoCat": { "value": true }, "MSU_checkAutoCat": { "value": true }, "MSU_useMsLinks": { "value": false }, "MSU_confirmReplace": { "value": true }, "MSU_imgParams": { "value": "400px" }, "MSU_uploadsize": { "value": "100mb" } } } PK ! Io��9 9 includes/Hooks.phpnu �[��� <?php namespace MsUpload; use EditPage; use MediaWiki\MediaWikiServices; use OutputPage; class Hooks { /** * Main Function * * @param EditPage $editPage * @param OutputPage $out * @return bool */ public static function onEditPageShowEditFormInitial( EditPage $editPage, OutputPage $out ) { global $wgFileExtensions, $wgExtensionAssetsPath; // Check if the page is editable $title = $out->getTitle(); if ( $title->isSpecialPage() ) { return true; } // Only show the upload bar in wikitext pages (T267563) $services = MediaWikiServices::getInstance(); $wikiPage = $services->getWikiPageFactory()->newFromTitle( $title ); $contentModel = $wikiPage->getContentModel(); if ( $contentModel !== CONTENT_MODEL_WIKITEXT ) { return true; } // Add some general config that we'll need $out->addJsConfigVars( 'wgFileExtensions', $wgFileExtensions ); // Add extension-specific config that we'll need $config = $out->getConfig(); $msuConfig = [ 'flash_swf_url' => __DIR__ . '/../resources/plupload/Moxie.swf', 'silverlight_xap_url' => __DIR__ . '/../resources/plupload/Moxie.xap', 'useDragDrop' => $config->get( 'MSU_useDragDrop' ), 'showAutoCat' => $config->get( 'MSU_showAutoCat' ), 'checkAutoCat' => $config->get( 'MSU_checkAutoCat' ), 'useMsLinks' => $config->get( 'MSU_useMsLinks' ), 'confirmReplace' => $config->get( 'MSU_confirmReplace' ), 'imgParams' => $config->get( 'MSU_imgParams' ), 'uploadsize' => $config->get( 'MSU_uploadsize' ), ]; $out->addJsConfigVars( 'msuConfig', $msuConfig ); // Add the extension module $out->addModules( 'ext.MsUpload' ); // @todo Figure out how to load this in a module without resource loader crashing $out->addScriptFile( "$wgExtensionAssetsPath/MsUpload/resources/plupload/plupload.full.min.js" ); return true; } } PK ! w=�!� � .git/info/excludenu �[��� # git ls-files --others --exclude-from=.git/info/exclude # Lines that start with '#' are comments. # For a project mostly in C, the following would be a good set of # exclude patterns (uncomment them if you want to use them): # *.[oa] # *~ PK ! ����� � .git/logs/HEADnu �[��� 0000000000000000000000000000000000000000 b0ed65ff3b0105fed2965d47194a5b5d60fff90a root <root@wiki.mekcity.com> 1737629039 -0800 clone: from https://gerrit.wikimedia.org/r/mediawiki/extensions/MsUpload PK ! ����� � "