|
|
@ -1,90 +1,81 @@
|
|
|
|
<?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
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//在这里加入判断,如果是已经登陆过信息平台或者有CI的session
|
|
|
|
|
|
|
|
if (empty($_COOKIE['ci_session'])) {
|
|
|
|
|
|
|
|
echo '请重新登陆信息平台,或者联系YCC !';
|
|
|
|
|
|
|
|
die();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
//CI的session加密了,所以只能以长度来做判断,不严谨,待优化
|
|
|
|
|
|
|
|
if (strlen($_COOKIE['ci_session']) < 800) {
|
|
|
|
|
|
|
|
echo '请重新登陆信息平台,或者联系YCC !' . strlen($_COOKIE['ci_session']);
|
|
|
|
|
|
|
|
die();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 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
|
|
|
|
/* IMPORTANT!!! Do not comment or remove uncommented settings in this file
|
|
|
|
even if you are using session configuration.
|
|
|
|
even if you are using session configuration.
|
|
|
|
See http://kcfinder.sunhater.com/install for setting descriptions */
|
|
|
|
See http://kcfinder.sunhater.com/install for setting descriptions */
|
|
|
|
|
|
|
|
|
|
|
|
$_CONFIG = array(
|
|
|
|
$_CONFIG = array(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// GENERAL SETTINGS
|
|
|
|
// GENERAL SETTINGS
|
|
|
|
|
|
|
|
|
|
|
|
'disabled' => false, //是否启用
|
|
|
|
'disabled' => false, //是否启用
|
|
|
|
'uploadURL' => "upload",
|
|
|
|
'uploadURL' => "upload",
|
|
|
|
'uploadDir' => "", //文件夹管理目录
|
|
|
|
'uploadDir' => "", //文件夹管理目录
|
|
|
|
'theme' => "default",//主题
|
|
|
|
'theme' => "default", //主题
|
|
|
|
|
|
|
|
|
|
|
|
'types' => array(
|
|
|
|
'types' => array(
|
|
|
|
'default'=>'4sj4837Rjk37L',//默认站点,设置一个怎么也猜不到的后缀
|
|
|
|
'default' => '4sj4837Rjk37L', //默认站点,设置一个怎么也猜不到的后缀
|
|
|
|
'ah'=>'*mime image/gif image/png image/jpeg', //这个名称就是目录名,每个站点不同
|
|
|
|
'ah' => '*mime image/gif image/png image/jpeg', //这个名称就是目录名,每个站点不同
|
|
|
|
'gm'=>'*mime image/gif image/png image/jpeg',
|
|
|
|
//国际站点
|
|
|
|
'vac'=>'*mime image/gif image/png image/jpeg',
|
|
|
|
'gm' => '*mime image/gif image/png image/jpeg',
|
|
|
|
'vc'=>'*mime image/gif image/png image/jpeg',
|
|
|
|
'vac' => '*mime image/gif image/png image/jpeg',
|
|
|
|
'it'=>'*mime image/gif image/png image/jpeg',
|
|
|
|
'vc' => '*mime image/gif image/png image/jpeg',
|
|
|
|
'ru'=>'*mime image/gif image/png image/jpeg',
|
|
|
|
'it' => '*mime image/gif image/png image/jpeg',
|
|
|
|
'jp'=>'*mime image/gif image/png image/jpeg',
|
|
|
|
'ru' => '*mime image/gif image/png image/jpeg',
|
|
|
|
|
|
|
|
'jp' => '*mime image/gif image/png image/jpeg',
|
|
|
|
|
|
|
|
|
|
|
|
// (F)CKEditor types
|
|
|
|
// (F)CKEditor types
|
|
|
|
// 'files' => "",
|
|
|
|
// 'files' => "",
|
|
|
|
// 'flash' => "swf",
|
|
|
|
// 'flash' => "swf",
|
|
|
|
// 'images' => "*mime image/gif image/png image/jpeg",
|
|
|
|
// 'images' => "*mime image/gif image/png image/jpeg",
|
|
|
|
|
|
|
|
|
|
|
|
// TinyMCE types
|
|
|
|
// TinyMCE types
|
|
|
|
// 'file' => "",
|
|
|
|
// 'file' => "",
|
|
|
|
// 'media' => "swf flv avi mpg mpeg qt mov wmv asf rm",
|
|
|
|
// 'media' => "swf flv avi mpg mpeg qt mov wmv asf rm",
|
|
|
|
// 'image' => "*img",
|
|
|
|
// 'image' => "*img",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// IMAGE SETTINGS
|
|
|
|
// IMAGE SETTINGS
|
|
|
|
|
|
|
|
|
|
|
|
'imageDriversPriority' => "gmagick gd imagick",
|
|
|
|
'imageDriversPriority' => "gmagick gd imagick",
|
|
|
|
'jpegQuality' => 80,
|
|
|
|
'jpegQuality' => 80,
|
|
|
|
'thumbsDir' => ".thumbs",
|
|
|
|
'thumbsDir' => ".thumbs",
|
|
|
|
|
|
|
|
|
|
|
|
'maxImageWidth' => 0,
|
|
|
|
'maxImageWidth' => 0,
|
|
|
|
'maxImageHeight' => 0,
|
|
|
|
'maxImageHeight' => 0,
|
|
|
|
|
|
|
|
|
|
|
|
'thumbWidth' => 100,
|
|
|
|
'thumbWidth' => 100,
|
|
|
|
'thumbHeight' => 100,
|
|
|
|
'thumbHeight' => 100,
|
|
|
|
|
|
|
|
|
|
|
|
'watermark' => "",
|
|
|
|
'watermark' => "",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// DISABLE / ENABLE SETTINGS
|
|
|
|
// DISABLE / ENABLE SETTINGS
|
|
|
|
|
|
|
|
'denyZipDownload' => true, //是否禁止打包下载
|
|
|
|
'denyZipDownload' => true,//是否禁止打包下载
|
|
|
|
'denyUpdateCheck' => true, //是否禁止检测升级
|
|
|
|
'denyUpdateCheck' => true,//是否禁止检测升级
|
|
|
|
'denyExtensionRename' => true, //是否禁止重命名文件后缀
|
|
|
|
'denyExtensionRename' => true,//是否禁止重命名文件后缀
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// PERMISSION SETTINGS
|
|
|
|
// PERMISSION SETTINGS
|
|
|
|
|
|
|
|
|
|
|
|
'dirPerms' => 0755, //创建的文件夹权限 windows下可以忽略
|
|
|
|
'dirPerms' => 0755, //创建的文件夹权限 windows下可以忽略
|
|
|
|
'filePerms' => 0644,//新文件权限
|
|
|
|
'filePerms' => 0644, //新文件权限
|
|
|
|
|
|
|
|
|
|
|
|
'access' => array(
|
|
|
|
'access' => array(
|
|
|
|
|
|
|
|
|
|
|
|
'files' => array(
|
|
|
|
'files' => array(
|
|
|
|
'upload' => true,
|
|
|
|
'upload' => true,
|
|
|
|
'delete' => true,
|
|
|
|
'delete' => true,
|
|
|
|
'copy' => true,
|
|
|
|
'copy' => true,
|
|
|
|
'move' => true,
|
|
|
|
'move' => true,
|
|
|
|
'rename' => true
|
|
|
|
'rename' => true
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
'dirs' => array(
|
|
|
|
'dirs' => array(
|
|
|
|
'create' => true,
|
|
|
|
'create' => true,
|
|
|
|
'delete' => false,
|
|
|
|
'delete' => false,
|
|
|
@ -93,45 +84,30 @@ $_CONFIG = array(
|
|
|
|
),
|
|
|
|
),
|
|
|
|
//禁止操作的文件后缀
|
|
|
|
//禁止操作的文件后缀
|
|
|
|
'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",
|
|
|
|
'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
|
|
|
|
// MISC SETTINGS
|
|
|
|
//文件名字符串替换
|
|
|
|
//文件名字符串替换
|
|
|
|
'filenameChangeChars' => array(
|
|
|
|
'filenameChangeChars' => array(
|
|
|
|
' ' => "_",
|
|
|
|
' ' => "_",
|
|
|
|
':' => "_"
|
|
|
|
':' => "_"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
'dirnameChangeChars' => array(
|
|
|
|
'dirnameChangeChars' => array(
|
|
|
|
' ' => "_",
|
|
|
|
' ' => "_",
|
|
|
|
':' => "_"
|
|
|
|
':' => "_"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
'mime_magic' => "",
|
|
|
|
'mime_magic' => "",
|
|
|
|
|
|
|
|
|
|
|
|
'cookieDomain' => "",
|
|
|
|
'cookieDomain' => "",
|
|
|
|
'cookiePath' => "",
|
|
|
|
'cookiePath' => "",
|
|
|
|
'cookiePrefix' => 'KCFINDER_',
|
|
|
|
'cookiePrefix' => 'KCFINDER_',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// THE FOLLOWING SETTINGS CANNOT BE OVERRIDED WITH SESSION SETTINGS
|
|
|
|
// THE FOLLOWING SETTINGS CANNOT BE OVERRIDED WITH SESSION SETTINGS
|
|
|
|
|
|
|
|
|
|
|
|
'_normalizeFilenames' => false, //特殊字符替换为下划线
|
|
|
|
'_normalizeFilenames' => false, //特殊字符替换为下划线
|
|
|
|
'_check4htaccess' => true,
|
|
|
|
'_check4htaccess' => true,
|
|
|
|
//'_tinyMCEPath' => "/tiny_mce",
|
|
|
|
//'_tinyMCEPath' => "/tiny_mce",
|
|
|
|
|
|
|
|
|
|
|
|
'_sessionVar' => "KCFINDER",
|
|
|
|
'_sessionVar' => "KCFINDER",
|
|
|
|
//'_sessionLifetime' => 30,
|
|
|
|
//'_sessionLifetime' => 30,
|
|
|
|
//'_sessionDir' => "/full/directory/path",
|
|
|
|
//'_sessionDir' => "/full/directory/path",
|
|
|
|
//'_sessionDomain' => ".mysite.com",
|
|
|
|
//'_sessionDomain' => ".mysite.com",
|
|
|
|
//'_sessionPath' => "/my/path",
|
|
|
|
//'_sessionPath' => "/my/path",
|
|
|
|
|
|
|
|
//'_cssMinCmd' => "java -jar /path/to/yuicompressor.jar --type css {file}",
|
|
|
|
//'_cssMinCmd' => "java -jar /path/to/yuicompressor.jar --type css {file}",
|
|
|
|
//'_jsMinCmd' => "java -jar /path/to/yuicompressor.jar --type js {file}",
|
|
|
|
//'_jsMinCmd' => "java -jar /path/to/yuicompressor.jar --type js {file}",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
?>
|