Ticket #2622: config.patch
File config.patch, 4.9 KB (added by , 16 years ago) |
---|
-
.php
old new $Config['SecureImageUploads'] = true; 51 51 $Config['ConfigAllowedCommands'] = array('QuickUpload', 'FileUpload', 'GetFolders', 'GetFoldersAndFiles', 'CreateFolder') ; 52 52 53 53 // 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 ; 55 58 56 59 // For security, HTML is allowed in the first Kb of data for files having the 57 60 // following extensions only. … … $Config['ChmodOnFolderCreate'] = 0777 ; 120 123 121 124 */ 122 125 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') ; 124 127 $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'] ; 129 132 130 133 $Config['AllowedExtensions']['Image'] = array('bmp','gif','jpeg','jpg','png') ; 131 134 $Config['DeniedExtensions']['Image'] = array() ; 132 135 $Config['FileTypesPath']['Image'] = $Config['UserFilesPath'] . 'image/' ; 133 136 $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'] ; 136 139 137 $Config['AllowedExtensions']['Flash'] = array('swf','fl v') ;140 $Config['AllowedExtensions']['Flash'] = array('swf','fla', 'flv') ; 138 141 $Config['DeniedExtensions']['Flash'] = array() ; 139 142 $Config['FileTypesPath']['Flash'] = $Config['UserFilesPath'] . 'flash/' ; 140 143 $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'] ; 143 146 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') ; 145 148 $Config['DeniedExtensions']['Media'] = array() ; 146 149 $Config['FileTypesPath']['Media'] = $Config['UserFilesPath'] . 'media/' ; 147 150 $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'] ; 150 160 151 161 ?>