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