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.
information-system/js/kcfinder/config.php

137 lines
3.9 KiB
PHTML

<?php
/** This file is part of KCFinder project
*
* @desc Base configuration file
* @package KCFinder
* @version 2.51
* @author Pavel Tzonkov <pavelc@users.sourceforge.net>
* @copyright 2010, 2011 KCFinder Project
* @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
* @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
* @link http://kcfinder.sunhater.com
*/
// IMPORTANT!!! Do not remove uncommented settings in this file even if
// you are using session configuration.
// See http://kcfinder.sunhater.com/install for setting descriptions
/*
* @@@@@@@@@@@@@@@@@@@@@@@@@@【所有的改动记录在这里】@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
1.修改config.php在底部添加了一个翰特图片库配置
2.修改tpl/tpl_browser.php,增加翰特图片库和自定义图片库的切换按钮
*/
$_CONFIG = array(
'disabled' => false,
'denyZipDownload' => false,
'denyUpdateCheck' => false,
'denyExtensionRename' => false,
'theme' => "oxygen",
'uploadURL' => "//",
'uploadDir' => "../../",
'dirPerms' => 0755,
'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 php phps phtml php3 php4 cgi pl",
'types' => array(
'photos' => '*img',
'hunter_image' => '*img',
// CKEditor & FCKEditor types
'files' => "",
'flash' => "swf",
'images' => "*img",
// TinyMCE types
'file' => "",
'media' => "swf flv avi mpg mpeg qt mov wmv asf rm",
'image' => "*img",
),
'filenameChangeChars' => array(
' ' => "-",
':' => ".",
'A' => 'a',
'B' => 'b',
'C' => 'c',
'D' => 'd',
'E' => 'e',
'F' => 'f',
'G' => 'g',
'H' => 'h',
'I' => 'i',
'J' => 'j',
'K' => 'k',
'L' => 'l',
'M' => 'm',
'N' => 'n',
'O' => 'o',
'P' => 'p',
'Q' => 'q',
'R' => 'r',
'S' => 's',
'T' => 't',
'U' => 'u',
'V' => 'v',
'W' => 'w',
'X' => 'x',
'Y' => 'y',
'Z' => 'z'
),
'dirnameChangeChars' => array(
' ' => "-",
':' => "."
),
'mime_magic' => "",
'maxImageWidth' => 800,
'maxImageHeight' => 0,
'thumbWidth' => 180,
'thumbHeight' => 120,
'thumbsDir' => "photos-thumbs",
'jpegQuality' => 90,
'cookieDomain' => " ", //超级bug必须为空格否则读取不了列表
'cookiePath' => "/",
'cookiePrefix' => 'KCFINDER_',
// THE FOLLOWING SETTINGS CANNOT BE OVERRIDED WITH SESSION CONFIGURATION
'_check4htaccess' => true,
//'_tinyMCEPath' => "/tiny_mce",
'_sessionVar' => &$_SESSION['KCFINDER'],
//'_sessionLifetime' => 30,
//'_sessionDir' => "/full/directory/path",
//'_sessionDomain' => ".mysite.com",
//'_sessionPath' => "/my/path",
);
if (isset($_GET['type']) && $_GET['type'] == 'hunter_image') {
$_CONFIG['thumbsDir'] = 'hunter-image-thumbs';
$_CONFIG['uploadURL'] = '//';
$_CONFIG['uploadDir'] = '../../';
$_CONFIG['access'] = array(
'files' => array(
'upload' => false,
'delete' => false,
'copy' => false,
'move' => false,
'rename' => false
),
'dirs' => array(
'create' => false,
'delete' => false,
'rename' => false
));
}
?>