Ticket #2622: config.patch

File config.patch, 4.9 KB (added by Ralph, 15 years ago)

fckeditor_263/editor/filemanager/connectors/php/config.php

  • .php

    old new $Config['SecureImageUploads'] = true; 
    5151$Config['ConfigAllowedCommands'] = array('QuickUpload', 'FileUpload', 'GetFolders', 'GetFoldersAndFiles', 'CreateFolder') ;
    5252
    5353// Allowed Resource Types.
    54 $Config['ConfigAllowedTypes'] = array('File', 'Image', 'Flash', 'Media') ;
     54$Config['ConfigAllowedTypes'] = array('File', 'Image', 'Flash', 'Media', 'PDF') ;
     55
     56// Allow automatic file upload dispatching.
     57$Config['QuickUploadFileDispatching'] = true ;
    5558
    5659// For security, HTML is allowed in the first Kb of data for files having the
    5760// following extensions only.
    $Config['ChmodOnFolderCreate'] = 0777 ; 
    120123
    121124*/
    122125
    123 $Config['AllowedExtensions']['File']    = array('7z', 'aiff', 'asf', 'avi', 'bmp', 'csv', 'doc', 'fla', 'flv', 'gif', 'gz', 'gzip', 'jpeg', 'jpg', 'mid', 'mov', 'mp3', 'mp4', 'mpc', 'mpeg', 'mpg', 'ods', 'odt', 'pdf', 'png', 'ppt', 'pxd', 'qt', 'ram', 'rar', 'rm', 'rmi', 'rmvb', 'rtf', 'sdc', 'sitd', 'swf', 'sxc', 'sxw', 'tar', 'tgz', 'tif', 'tiff', 'txt', 'vsd', 'wav', 'wma', 'wmv', 'xls', 'xml', 'zip') ;
     126$Config['AllowedExtensions']['File']    = array('7z', 'csv', 'doc', 'gz', 'gzip', 'ods', 'odt', 'ppt', 'pxd', 'rar', 'rtf', 'sdc', 'sitd', 'sxc', 'sxw', 'tar', 'tgz', 'txt', 'vsd', 'xls', 'xml', 'zip') ;
    124127$Config['DeniedExtensions']['File']             = array() ;
    125 $Config['FileTypesPath']['File']                = $Config['UserFilesPath'] . 'file/' ;
    126 $Config['FileTypesAbsolutePath']['File']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'file/' ;
    127 $Config['QuickUploadPath']['File']              = $Config['UserFilesPath'] ;
    128 $Config['QuickUploadAbsolutePath']['File']= $Config['UserFilesAbsolutePath'] ;
     128$Config['FileTypesPath']['File']                = $Config['UserFilesPath'] . 'misc/' ;
     129$Config['FileTypesAbsolutePath']['File']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'misc/' ;
     130$Config['QuickUploadPath']['File']              = $Config['FileTypesPath']['File'] ;
     131$Config['QuickUploadAbsolutePath']['File']= $Config['FileTypesAbsolutePath']['File'] ;
    129132
    130133$Config['AllowedExtensions']['Image']   = array('bmp','gif','jpeg','jpg','png') ;
    131134$Config['DeniedExtensions']['Image']    = array() ;
    132135$Config['FileTypesPath']['Image']               = $Config['UserFilesPath'] . 'image/' ;
    133136$Config['FileTypesAbsolutePath']['Image']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'image/' ;
    134 $Config['QuickUploadPath']['Image']             = $Config['UserFilesPath'] ;
    135 $Config['QuickUploadAbsolutePath']['Image']= $Config['UserFilesAbsolutePath'] ;
     137$Config['QuickUploadPath']['Image']             = $Config['UserFilesPath']['Image'] ;
     138$Config['QuickUploadAbsolutePath']['Image']= $Config['UserFilesAbsolutePath']['Image'] ;
    136139
    137 $Config['AllowedExtensions']['Flash']   = array('swf','flv') ;
     140$Config['AllowedExtensions']['Flash']   = array('swf','fla', 'flv') ;
    138141$Config['DeniedExtensions']['Flash']    = array() ;
    139142$Config['FileTypesPath']['Flash']               = $Config['UserFilesPath'] . 'flash/' ;
    140143$Config['FileTypesAbsolutePath']['Flash']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'flash/' ;
    141 $Config['QuickUploadPath']['Flash']             = $Config['UserFilesPath'] ;
    142 $Config['QuickUploadAbsolutePath']['Flash']= $Config['UserFilesAbsolutePath'] ;
     144$Config['QuickUploadPath']['Flash']             = $Config['FileTypesPath']['Flash'] ;
     145$Config['QuickUploadAbsolutePath']['Flash']= $Config['FileTypesAbsolutePath']['Flash'] ;
    143146
    144 $Config['AllowedExtensions']['Media']   = array('aiff', 'asf', 'avi', 'bmp', 'fla', 'flv', 'gif', 'jpeg', 'jpg', 'mid', 'mov', 'mp3', 'mp4', 'mpc', 'mpeg', 'mpg', 'png', 'qt', 'ram', 'rm', 'rmi', 'rmvb', 'swf', 'tif', 'tiff', 'wav', 'wma', 'wmv') ;
     147$Config['AllowedExtensions']['Media']   = array('aiff', 'asf', 'avi', 'mid', 'mov', 'mp3', 'mp4', 'mpc', 'mpeg', 'mpg', 'qt', 'ram', 'rm', 'rmi', 'rmvb', 'tif', 'tiff', 'wav', 'wma', 'wmv') ;
    145148$Config['DeniedExtensions']['Media']    = array() ;
    146149$Config['FileTypesPath']['Media']               = $Config['UserFilesPath'] . 'media/' ;
    147150$Config['FileTypesAbsolutePath']['Media']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'media/' ;
    148 $Config['QuickUploadPath']['Media']             = $Config['UserFilesPath'] ;
    149 $Config['QuickUploadAbsolutePath']['Media']= $Config['UserFilesAbsolutePath'] ;
     151$Config['QuickUploadPath']['Media']             = $Config['FileTypesPath']['Media'] ;
     152$Config['QuickUploadAbsolutePath']['Media']= $Config['FileTypesAbsolutePath']['Media'] ;
     153
     154$Config['AllowedExtensions']['PDF']     = array('pdf') ;
     155$Config['DeniedExtensions']['PDF']      = array() ;
     156$Config['FileTypesPath']['PDF']         = $Config['UserFilesPath'] . 'pdf/' ;
     157$Config['FileTypesAbsolutePath']['PDF']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'pdf/' ;
     158$Config['QuickUploadPath']['PDF']               = $Config['FileTypesPath']['PDF'] ;
     159$Config['QuickUploadAbsolutePath']['PDF']= $Config['FileTypesAbsolutePath']['PDF'] ;
    150160
    151161?>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy