コード例 #1
0
<?php

/** This file is part of KCFinder project
 *
 *      @desc Base configuration file
 *   @package KCFinder
 *   @version 2.52-dev
 *    @author Pavel Tzonkov <*****@*****.**>
 * @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
// === START ===
define("BASE_PATH", realpath(dirname(__FILE__)) . '/../../../../../../../../');
$session_id = session_id();
session_start();
mb_internal_encoding("UTF-8");
require_once BASE_PATH . '/vendor/autoload.php';
use App\Config\Config;
require_once BASE_PATH . '/globals.php';
require_once BASE_PATH . '/config/config.common.php';
require_once BASE_PATH . '/config/config.unique.php';
$config = new Config();
// === END ===
$_CONFIG = array('disabled' => false, 'theme' => "oxygen", 'uploadURL' => $config->getProtected("kcFinderUploadPath"), 'uploadDir' => "", 'types' => array('files' => "", 'flash' => "swf", 'images' => "*img", 'file' => "", 'media' => "swf flv avi mpg mpeg qt mov wmv asf rm", 'image' => "*img"), 'imageDriversPriority' => "imagick gmagick gd", 'jpegQuality' => 90, 'thumbsDir' => ".thumbs", 'maxImageWidth' => 0, 'maxImageHeight' => 0, 'thumbWidth' => 100, 'thumbHeight' => 100, 'watermark' => "", 'denyZipDownload' => false, 'denyUpdateCheck' => false, 'denyExtensionRename' => false, '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", 'filenameChangeChars' => array(), 'dirnameChangeChars' => array(), 'mime_magic' => "", 'cookieDomain' => "", 'cookiePath' => "", 'cookiePrefix' => 'KCFINDER_', '_check4htaccess' => true, '_sessionVar' => &$_SESSION['KCFINDER']);