FileList
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:This extension implements a new tag, , which generates a list of all images or other media that were uploaded to the page. Also, the tag adds an input field to add a new file. Originally by Jens Nyman
**** DISCLAIMER ****
Copyright (C) 2010 - Jens Nyman 
Copyright (C) 2011 - Simon Peeters 

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.

**** DESCRIPTION ****
This extension implements a new tag, , which generates a list of
all images or other media that were uploaded to the page. Also, the tag adds
an input field to add a new file if the user is alowed to upload.

**** INSTALLATION ****
- copy FileList/ to extensions folder
- Add to LocalSettings.php:
    require_once("$IP/extensions/FileList/FileList.php");
    $wgFileListConfig['upload_anonymously'] = false; // set this if uploads need to be anonymous
    
- Allow file uploads
- set allowed file types to something like
    $wgFileExtensions = array(
        'pdf','rar','zip','txt','7z','gz',
        'doc','ppt','xls',
        'docx','pptx','xlsx',
        'odt','odp','ods',
        'mws', 'm', 'cad', 'dwg', 'java',
        'jpg','jpeg','gif','png',
    );

**** NOTES ****
as of this update the FileList extension no longer changes global settings.

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。