<?php

//在这里加入判断，如果是已经登陆过信息平台或者有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
  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(
	//在当前上传目录下建立虚拟链接指向对应的文件夹，就可以上传编辑站点文件
//	mklink /D "C:\Dropbox\wwwroot\information-system-all_in_one\kcfinder\upload\gm\image" "C:\inetpub\wwwroot\gmsite\www\image"
        'default' => '4sj4837Rjk37L', //默认站点，设置一个怎么也猜不到的后缀
        'ch' => '*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',
        'vc' => '*mime image/gif image/png image/jpeg',
        'it' => '*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
    // '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' => 80,
    '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' => false,
            '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}",
);
?>