赵鹏 5 years ago
commit 0239e6d0c7

@ -1,5 +1,4 @@
<?php
/*
* CKFinder Configuration File
*
@ -100,11 +99,15 @@ switch ($sitecode){
$site_url='';
}
//文件上传目录,使用相对路径,在文件夹中建立虚拟目录指向真实文件夹
//需要移出项目文件夹防止FTP访问到防止误删
$site_upload_dir=dirname(dirname(dirname(dirname(__FILE__)))).'/uploader-file/'.$sitecode;
$config['backends'][] = array(
'name' => 'default',
'adapter' => 'local',
'baseUrl' => $site_url,
'root' => dirname(__FILE__).('/userfiles/').$sitecode, // Can be used to explicitly set the CKFinder user files directory.
'root' => $site_upload_dir, // Can be used to explicitly set the CKFinder user files directory.
'chmodFiles' => 0777,
'chmodFolders' => 0755,
'filesystemEncoding' => 'UTF-8',
@ -127,22 +130,23 @@ $config['resourceTypes'][] = array(
'backend' => 'default'
);
$config['resourceTypes'][] = array(
'name' => 'css', // Single quotes not allowed.
'directory' => 'css',
'name' => 'pic', // Single quotes not allowed.
'directory' => 'pic',
'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',
'deniedExtensions' => '',
'backend' => 'default'
);
/*
$config['resourceTypes'][] = array(
'name' => 'pic', // Single quotes not allowed.
'directory' => 'pic',
'name' => 'css', // Single quotes not allowed.
'directory' => 'css',
'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',
'deniedExtensions' => '',
'backend' => 'default'
);
/*
$config['resourceTypes'][] = array(
'name' => 'Files', // Single quotes not allowed.
'directory' => 'file',

Loading…
Cancel
Save