Line 53... |
Line 53... |
53 |
|
53 |
|
54 |
// What the user can do with this connector.
|
54 |
// What the user can do with this connector.
|
Line 55... |
Line 55... |
55 |
$Config['ConfigAllowedCommands'] = array('QuickUpload', 'FileUpload', 'GetFolders', 'GetFoldersAndFiles', 'CreateFolder') ;
|
55 |
$Config['ConfigAllowedCommands'] = array('QuickUpload', 'FileUpload', 'GetFolders', 'GetFoldersAndFiles', 'CreateFolder') ;
|
- |
|
56 |
|
56 |
|
57 |
// Allowed Resource Types.
|
Line 57... |
Line 58... |
57 |
// Allowed Resource Types.
|
58 |
// ATTENTION : Suppression de 'Flash' car redondant avec Media
|
58 |
$Config['ConfigAllowedTypes'] = array('File', 'Image', 'Flash', 'Media') ;
|
59 |
$Config['ConfigAllowedTypes'] = array('File', 'Image', 'Media') ;
|
59 |
|
60 |
|
Line 121... |
Line 122... |
121 |
into:
|
122 |
into:
|
122 |
$Config['QuickUploadPath']['Image'] = $Config['FileTypesPath']['Image'] ;
|
123 |
$Config['QuickUploadPath']['Image'] = $Config['FileTypesPath']['Image'] ;
|
123 |
$Config['QuickUploadAbsolutePath']['Image'] = $Config['FileTypesAbsolutePath']['Image'] ;
|
124 |
$Config['QuickUploadAbsolutePath']['Image'] = $Config['FileTypesAbsolutePath']['Image'] ;
|
Line 124... |
Line 125... |
124 |
|
125 |
|
125 |
*/
|
- |
|
- |
|
126 |
*/
|
126 |
|
127 |
// ATTENTION : suppression des formats d'images et média
|
127 |
$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') ;
|
128 |
$Config['AllowedExtensions']['File'] = array('7z', 'csv', 'doc', 'gz', 'gzip', 'ods', 'odt', 'pdf', 'ppt', 'pxd', 'qt', 'ram', 'rar', 'rm', 'rmi', 'rmvb', 'rtf', 'sdc', 'sitd', 'sxc', 'sxw', 'tar', 'tgz', 'txt', 'vsd', 'xls', 'xml', 'zip') ;
|
128 |
$Config['DeniedExtensions']['File'] = array() ;
|
129 |
$Config['DeniedExtensions']['File'] = array() ;
|
129 |
$Config['FileTypesPath']['File'] = $Config['UserFilesPath'] . 'documents/' ;
|
130 |
$Config['FileTypesPath']['File'] = $Config['UserFilesPath'] . 'documents/' ;
|
130 |
$Config['FileTypesAbsolutePath']['File']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'file/' ;
|
131 |
$Config['FileTypesAbsolutePath']['File']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'documents/' ;
|
131 |
$Config['QuickUploadPath']['File'] = $Config['UserFilesPath'] ;
|
132 |
$Config['QuickUploadPath']['File'] = $Config['UserFilesPath'] ;
|
Line 132... |
Line 133... |
132 |
$Config['QuickUploadAbsolutePath']['File']= $Config['UserFilesAbsolutePath'] ;
|
133 |
$Config['QuickUploadAbsolutePath']['File']= $Config['UserFilesAbsolutePath'] ;
|
133 |
|
134 |
|
134 |
$Config['AllowedExtensions']['Image'] = array('bmp','gif','jpeg','jpg','png') ;
|
135 |
$Config['AllowedExtensions']['Image'] = array('bmp','gif','jpeg','jpg','png','tiff','tif') ;
|
135 |
$Config['DeniedExtensions']['Image'] = array() ;
|
136 |
$Config['DeniedExtensions']['Image'] = array() ;
|
136 |
$Config['FileTypesPath']['Image'] = $Config['UserFilesPath'] . 'images/' ;
|
137 |
$Config['FileTypesPath']['Image'] = $Config['UserFilesPath'] . 'images/' ;
|
137 |
$Config['FileTypesAbsolutePath']['Image']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'image/' ;
|
138 |
$Config['FileTypesAbsolutePath']['Image']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'images/' ;
|
Line 138... |
Line 139... |
138 |
$Config['QuickUploadPath']['Image'] = $Config['UserFilesPath'] ;
|
139 |
$Config['QuickUploadPath']['Image'] = $Config['UserFilesPath'] ;
|
139 |
$Config['QuickUploadAbsolutePath']['Image']= $Config['UserFilesAbsolutePath'] ;
|
140 |
$Config['QuickUploadAbsolutePath']['Image']= $Config['UserFilesAbsolutePath'] ;
|
140 |
|
141 |
|
141 |
$Config['AllowedExtensions']['Flash'] = array('swf','flv') ;
|
142 |
$Config['AllowedExtensions']['Flash'] = array('swf','flv') ;
|
142 |
$Config['DeniedExtensions']['Flash'] = array() ;
|
143 |
$Config['DeniedExtensions']['Flash'] = array() ;
|
143 |
$Config['FileTypesPath']['Flash'] = $Config['UserFilesPath'] . 'flash/' ;
|
144 |
$Config['FileTypesPath']['Flash'] = $Config['UserFilesPath'] . 'flash/' ;
|
144 |
$Config['FileTypesAbsolutePath']['Flash']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'flash/' ;
|
- |
|
- |
|
145 |
$Config['FileTypesAbsolutePath']['Flash']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'flash/' ;
|
145 |
$Config['QuickUploadPath']['Flash'] = $Config['UserFilesPath'] ;
|
146 |
$Config['QuickUploadPath']['Flash'] = $Config['UserFilesPath'] ;
|
146 |
$Config['QuickUploadAbsolutePath']['Flash']= $Config['UserFilesAbsolutePath'] ;
|
147 |
$Config['QuickUploadAbsolutePath']['Flash']= $Config['UserFilesAbsolutePath'] ;
|
147 |
|
148 |
// ATTENTION : suppression des formats d'images
|
148 |
$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') ;
|
149 |
$Config['AllowedExtensions']['Media'] = array('aiff', 'asf', 'avi', 'fla', 'flv', 'mid', 'mov', 'mp3', 'mp4', 'mpc', 'mpeg', 'mpg', 'swf', 'wav', 'wma', 'wmv') ;
|
149 |
$Config['DeniedExtensions']['Media'] = array() ;
|
150 |
$Config['DeniedExtensions']['Media'] = array() ;
|
150 |
$Config['FileTypesPath']['Media'] = $Config['UserFilesPath'] . 'media/' ;
|
151 |
$Config['FileTypesPath']['Media'] = $Config['UserFilesPath'] . 'media/' ;
|