You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
132 lines
3.1 KiB
PHP
132 lines
3.1 KiB
PHP
<?php
|
|
|
|
/** This file is part of KCFinder project
|
|
*
|
|
* @desc Base configuration file
|
|
* @package KCFinder
|
|
* @version 3.12
|
|
* @author Pavel Tzonkov <sunhater@sunhater.com>
|
|
* @copyright 2010-2014 KCFinder Project
|
|
* @license http://opensource.org/licenses/GPL-3.0 GPLv3
|
|
* @license http://opensource.org/licenses/LGPL-3.0 LGPLv3
|
|
* @link http://kcfinder.sunhater.com
|
|
*/
|
|
|
|
/* IMPORTANT!!! Do not comment or remove uncommented settings in this file
|
|
even if you are using session configuration.
|
|
See http://kcfinder.sunhater.com/install for setting descriptions */
|
|
|
|
$_CONFIG = array(
|
|
|
|
|
|
// GENERAL SETTINGS
|
|
|
|
'disabled' => false, //是否启用
|
|
'uploadURL' => "upload",
|
|
'uploadDir' => "", //文件夹管理目录
|
|
'theme' => "default",//主题
|
|
|
|
'types' => array(
|
|
'ah'=>array(
|
|
'types'=>'*mime image/gif image/png image/jpeg'
|
|
)
|
|
|
|
// (F)CKEditor types
|
|
// 'files' => "",
|
|
// 'flash' => "swf",
|
|
// 'images' => "*mime image/gif image/png image/jpeg",
|
|
|
|
// TinyMCE types
|
|
// 'file' => "",
|
|
// 'media' => "swf flv avi mpg mpeg qt mov wmv asf rm",
|
|
// 'image' => "*img",
|
|
),
|
|
|
|
|
|
// IMAGE SETTINGS
|
|
|
|
'imageDriversPriority' => "gmagick gd imagick",
|
|
'jpegQuality' => 90,
|
|
'thumbsDir' => ".thumbs",
|
|
|
|
'maxImageWidth' => 0,
|
|
'maxImageHeight' => 0,
|
|
|
|
'thumbWidth' => 100,
|
|
'thumbHeight' => 100,
|
|
|
|
'watermark' => "",
|
|
|
|
|
|
// DISABLE / ENABLE SETTINGS
|
|
|
|
'denyZipDownload' => true,//是否禁止打包下载
|
|
'denyUpdateCheck' => true,//是否禁止检测升级
|
|
'denyExtensionRename' => true,//是否禁止重命名文件后缀
|
|
|
|
|
|
// PERMISSION SETTINGS
|
|
|
|
'dirPerms' => 0755, //创建的文件夹权限 windows下可以忽略
|
|
'filePerms' => 0644,//新文件权限
|
|
|
|
'access' => array(
|
|
|
|
'files' => array(
|
|
'upload' => true,
|
|
'delete' => true,
|
|
'copy' => true,
|
|
'move' => true,
|
|
'rename' => true
|
|
),
|
|
|
|
'dirs' => array(
|
|
'create' => true,
|
|
'delete' => true,
|
|
'rename' => true
|
|
)
|
|
),
|
|
//禁止操作的文件后缀
|
|
'deniedExts' => "exe com msi bat cgi pl php phps phtml php3 php4 php5 php6 py pyc pyo pcgi pcgi3 pcgi4 pcgi5 pchi6 asp aspx zip rar",
|
|
|
|
|
|
// MISC SETTINGS
|
|
//文件名字符串替换
|
|
'filenameChangeChars' => array(
|
|
' ' => "_",
|
|
':' => "_"
|
|
),
|
|
|
|
'dirnameChangeChars' => array(
|
|
' ' => "_",
|
|
':' => "_"
|
|
),
|
|
|
|
'mime_magic' => "",
|
|
|
|
'cookieDomain' => "",
|
|
'cookiePath' => "",
|
|
'cookiePrefix' => 'KCFINDER_',
|
|
|
|
|
|
// THE FOLLOWING SETTINGS CANNOT BE OVERRIDED WITH SESSION SETTINGS
|
|
|
|
'_normalizeFilenames' => false, //特殊字符替换为下划线
|
|
'_check4htaccess' => true,
|
|
//'_tinyMCEPath' => "/tiny_mce",
|
|
|
|
'_sessionVar' => "KCFINDER",
|
|
//'_sessionLifetime' => 30,
|
|
//'_sessionDir' => "/full/directory/path",
|
|
//'_sessionDomain' => ".mysite.com",
|
|
//'_sessionPath' => "/my/path",
|
|
|
|
//'_cssMinCmd' => "java -jar /path/to/yuicompressor.jar --type css {file}",
|
|
//'_jsMinCmd' => "java -jar /path/to/yuicompressor.jar --type js {file}",
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
?>
|