diff --git a/wysiwyg/ckfinder/config.php b/wysiwyg/ckfinder/config.php index b1949fca..b249d8c6 100644 --- a/wysiwyg/ckfinder/config.php +++ b/wysiwyg/ckfinder/config.php @@ -1,5 +1,4 @@ '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',