@ -19,7 +19,7 @@ ini_set('display_errors', 0);
/*============================ General Settings =======================================*/
/*============================ General Settings =======================================*/
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html
$config = array() ;
$config = [] ;
/*============================ Enable PHP Connector HERE ==============================*/
/*============================ Enable PHP Connector HERE ==============================*/
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_authentication
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_authentication
@ -37,27 +37,27 @@ $config['licenseKey'] = '*J?L-*1**-C**X-*D**-*B**-Z*6*-3**J';
/*============================ CKFinder Internal Directory ============================*/
/*============================ CKFinder Internal Directory ============================*/
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_privateDir
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_privateDir
$config['privateDir'] = array(
$config['privateDir'] = [
'backend' => 'default',
'backend' => 'default',
'tags' => '.ckfinder/tags',
'tags' => '.ckfinder/tags',
'logs' => '.ckfinder/logs',
'logs' => '.ckfinder/logs',
'cache' => '.ckfinder/cache',
'cache' => '.ckfinder/cache',
'thumbs' => '.ckfinder/cache/thumbs',
'thumbs' => '.ckfinder/cache/thumbs',
) ;
] ;
/*============================ Images and Thumbnails ==================================*/
/*============================ Images and Thumbnails ==================================*/
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_images
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_images
$config['images'] = array(
$config['images'] = [
'maxWidth' => 2560,
'maxWidth' => 2560,
'maxHeight' => 1440,
'maxHeight' => 1440,
'quality' => 0,
'quality' => 0,
'sizes' => array(
'sizes' => [
'small' => array('width' => 480, 'height' => 320, 'quality' => 0) ,
'small' => ['width' => 480, 'height' => 320, 'quality' => 0] ,
'medium' => array('width' => 600, 'height' => 480, 'quality' => 0) ,
'medium' => ['width' => 600, 'height' => 480, 'quality' => 0] ,
'large' => array('width' => 800, 'height' => 600, 'quality' => 0)
'large' => ['width' => 800, 'height' => 600, 'quality' => 0],
)
],
) ;
] ;
/*=================================== Backends ========================================*/
/*=================================== Backends ========================================*/
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_backends
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_backends
@ -75,7 +75,7 @@ switch ($sitecode) {
$site_url = 'https://data.chinahighlights.com';
$site_url = 'https://data.chinahighlights.com';
break;
break;
case 'gm':
case 'gm':
$site_url = 'https://data.chinarundreisen.com ';
$site_url = 'https://data.chinahighlightstravel.de ';
break;
break;
case 'gh':
case 'gh':
$site_url = 'https://data.globalhighlights.com';
$site_url = 'https://data.globalhighlights.com';
@ -124,7 +124,7 @@ if ('gh-int.mycht.cn' == $_SERVER["SERVER_NAME"] || 'origin-gm.mycht.cn' == $_SE
$site_upload_dir = dirname(dirname(dirname(dirname(__FILE__)))) . '/uploader-file/' . $sitecode;
$site_upload_dir = dirname(dirname(dirname(dirname(__FILE__)))) . '/uploader-file/' . $sitecode;
}
}
$config['backends'][] = array(
$config['backends'][] = [
'name' => 'default',
'name' => 'default',
'adapter' => 'local',
'adapter' => 'local',
'baseUrl' => $site_url,
'baseUrl' => $site_url,
@ -133,7 +133,7 @@ $config['backends'][] = array(
'chmodFolders' => 0755,
'chmodFolders' => 0755,
'filesystemEncoding' => 'UTF-8',
'filesystemEncoding' => 'UTF-8',
'followSymlinks' => true,
'followSymlinks' => true,
) ;
] ;
/*================================ Resource Types =====================================*/
/*================================ Resource Types =====================================*/
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_resourceTypes
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_resourceTypes
@ -142,22 +142,22 @@ $config['defaultResourceTypes'] = '';
//按日期生成不同文件夹,每周一个文件夹
//按日期生成不同文件夹,每周一个文件夹
//$week_folder= date("Y-m_W", time());
//$week_folder= date("Y-m_W", time());
$config['resourceTypes'][] = array(
$config['resourceTypes'][] = [
'name' => 'image', // Single quotes not allowed.
'name' => 'image', // Single quotes not allowed.
'directory' => 'image',
'directory' => 'image',
'maxSize' => 0,
'maxSize' => 0,
'allowedExtensions' => '7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pptx,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,zip,svg',
'allowedExtensions' => '7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pptx,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,zip,svg',
'deniedExtensions' => '',
'deniedExtensions' => '',
'backend' => 'default'
'backend' => 'default',
) ;
] ;
$config['resourceTypes'][] = array(
$config['resourceTypes'][] = [
'name' => 'pic', // Single quotes not allowed.
'name' => 'pic', // Single quotes not allowed.
'directory' => 'pic',
'directory' => 'pic',
'maxSize' => 0,
'maxSize' => 0,
'allowedExtensions' => '7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pptx,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,zip,svg',
'allowedExtensions' => '7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pptx,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,zip,svg',
'deniedExtensions' => '',
'deniedExtensions' => '',
'backend' => 'default'
'backend' => 'default',
) ;
] ;
/*
/*
$config['resourceTypes'][] = array(
$config['resourceTypes'][] = array(
@ -192,7 +192,7 @@ $config['resourceTypes'][] = array(
$config['roleSessionVar'] = 'CKFinder_UserRole';
$config['roleSessionVar'] = 'CKFinder_UserRole';
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_accessControl
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_accessControl
$config['accessControl'][] = array(
$config['accessControl'][] = [
'role' => '*',
'role' => '*',
'resourceType' => '*',
'resourceType' => '*',
'folder' => '/',
'folder' => '/',
@ -208,9 +208,8 @@ $config['accessControl'][] = array(
'FILE_DELETE' => true,
'FILE_DELETE' => true,
'IMAGE_RESIZE' => true,
'IMAGE_RESIZE' => true,
'IMAGE_RESIZE_CUSTOM' => true
'IMAGE_RESIZE_CUSTOM' => true,
);
];
/*================================ Other Settings =====================================*/
/*================================ Other Settings =====================================*/
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html
@ -220,9 +219,9 @@ $config['checkDoubleExtension'] = true;
$config['disallowUnsafeCharacters'] = true;
$config['disallowUnsafeCharacters'] = true;
$config['secureImageUploads'] = true;
$config['secureImageUploads'] = true;
$config['checkSizeAfterScaling'] = true;
$config['checkSizeAfterScaling'] = true;
$config['htmlExtensions'] = array('html', 'htm', 'xml', 'js') ;
$config['htmlExtensions'] = ['html', 'htm', 'xml', 'js'] ;
$config['hideFolders'] = array('.*', 'CVS', '__thumbs') ;
$config['hideFolders'] = ['.*', 'CVS', '__thumbs'] ;
$config['hideFiles'] = array('.*') ;
$config['hideFiles'] = ['.*'] ;
$config['forceAscii'] = false;
$config['forceAscii'] = false;
$config['xSendfile'] = false;
$config['xSendfile'] = false;
@ -233,16 +232,16 @@ $config['debug'] = false;
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_plugins
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_plugins
$config['pluginsDirectory'] = __DIR__ . '/plugins';
$config['pluginsDirectory'] = __DIR__ . '/plugins';
$config['plugins'] = array() ;
$config['plugins'] = [] ;
/*================================ Cache settings =====================================*/
/*================================ Cache settings =====================================*/
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_cache
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_cache
$config['cache'] = array(
$config['cache'] = [
'imagePreview' => 24 * 3600,
'imagePreview' => 24 * 3600,
'thumbnails' => 24 * 3600 * 365,
'thumbnails' => 24 * 3600 * 365,
'proxyCommand' => 0
'proxyCommand' => 0,
) ;
] ;
/*============================ Temp Directory settings ================================*/
/*============================ Temp Directory settings ================================*/
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_tempDirectory
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_tempDirectory
@ -262,7 +261,7 @@ $config['csrfProtection'] = true;
/*===================================== Headers =======================================*/
/*===================================== Headers =======================================*/
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_headers
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_headers
$config['headers'] = array() ;
$config['headers'] = [] ;
/*============================== End of Configuration =================================*/
/*============================== End of Configuration =================================*/