Changeset 736


Ignore:
Timestamp:
08/28/2007 08:56:17 PM (7 years ago)
Author:
wwalc
Message:

PHP connector: corrected sample PHP config so that QuickUpload command send file into directory accessible via file browser (like it is done in python config file)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/filemanager/connectors/php/config.php

    r684 r736  
    101101*/ 
    102102 
    103 $Config['AllowedExtensions']['File']    = array() ; 
    104 $Config['DeniedExtensions']['File']             = array('html','htm','php','php2','php3','php4','php5','phtml','pwml','inc','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','com','dll','vbs','js','reg','cgi','htaccess','asis','sh','shtml','shtm','phtm') ; 
    105 $Config['FileTypesPath']['File']                = $Config['UserFilesPath'] . 'file/' ; 
    106 $Config['FileTypesAbsolutePath']['File']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'file/' ; 
    107 $Config['QuickUploadPath']['File']              = $Config['UserFilesPath'] ; 
    108 $Config['QuickUploadAbsolutePath']['File']= $Config['UserFilesAbsolutePath'] ; 
     103$Config['AllowedExtensions']['File']            = array() ; 
     104$Config['DeniedExtensions']['File']                     = array('html','htm','php','php2','php3','php4','php5','phtml','pwml','inc','asp','aspx','ascx','jsp','cfm','cfc','pl','bat','exe','com','dll','vbs','js','reg','cgi','htaccess','asis','sh','shtml','shtm','phtm') ; 
     105$Config['FileTypesPath']['File']                        = $Config['UserFilesPath'] . 'file/' ; 
     106$Config['FileTypesAbsolutePath']['File']        = ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'file/' ; 
     107$Config['QuickUploadPath']['File']                      = $Config['FileTypesPath']['File'] ; 
     108$Config['QuickUploadAbsolutePath']['File']      = $Config['FileTypesAbsolutePath']['File'] ; 
    109109 
    110 $Config['AllowedExtensions']['Image']   = array('jpg','gif','jpeg','png') ; 
    111 $Config['DeniedExtensions']['Image']    = array() ; 
    112 $Config['FileTypesPath']['Image']               = $Config['UserFilesPath'] . 'image/' ; 
    113 $Config['FileTypesAbsolutePath']['Image']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'image/' ; 
    114 $Config['QuickUploadPath']['Image']             = $Config['UserFilesPath'] ; 
    115 $Config['QuickUploadAbsolutePath']['Image']= $Config['UserFilesAbsolutePath'] ; 
     110$Config['AllowedExtensions']['Image']           = array('jpg','gif','jpeg','png') ; 
     111$Config['DeniedExtensions']['Image']            = array() ; 
     112$Config['FileTypesPath']['Image']                       = $Config['UserFilesPath'] . 'image/' ; 
     113$Config['FileTypesAbsolutePath']['Image']       = ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'image/' ; 
     114$Config['QuickUploadPath']['Image']                     = $Config['FileTypesPath']['Image'] ; 
     115$Config['QuickUploadAbsolutePath']['Image']     = $Config['FileTypesAbsolutePath']['Image'] ; 
    116116 
    117 $Config['AllowedExtensions']['Flash']   = array('swf','fla') ; 
    118 $Config['DeniedExtensions']['Flash']    = array() ; 
    119 $Config['FileTypesPath']['Flash']               = $Config['UserFilesPath'] . 'flash/' ; 
    120 $Config['FileTypesAbsolutePath']['Flash']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'flash/' ; 
    121 $Config['QuickUploadPath']['Flash']             = $Config['UserFilesPath'] ; 
    122 $Config['QuickUploadAbsolutePath']['Flash']= $Config['UserFilesAbsolutePath'] ; 
     117$Config['AllowedExtensions']['Flash']           = array('swf','fla') ; 
     118$Config['DeniedExtensions']['Flash']            = array() ; 
     119$Config['FileTypesPath']['Flash']                       = $Config['UserFilesPath'] . 'flash/' ; 
     120$Config['FileTypesAbsolutePath']['Flash']       = ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'flash/' ; 
     121$Config['QuickUploadPath']['Flash']                     = $Config['FileTypesPath']['Flash'] ; 
     122$Config['QuickUploadAbsolutePath']['Flash']     = $Config['FileTypesAbsolutePath']['Flash'] ; 
    123123 
    124 $Config['AllowedExtensions']['Media']   = array('swf','fla','jpg','gif','jpeg','png','avi','mpg','mpeg') ; 
    125 $Config['DeniedExtensions']['Media']    = array() ; 
    126 $Config['FileTypesPath']['Media']               = $Config['UserFilesPath'] . 'media/' ; 
    127 $Config['FileTypesAbsolutePath']['Media']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'media/' ; 
    128 $Config['QuickUploadPath']['Media']             = $Config['UserFilesPath'] ; 
    129 $Config['QuickUploadAbsolutePath']['Media']= $Config['UserFilesAbsolutePath'] ; 
     124$Config['AllowedExtensions']['Media']           = array('swf','fla','jpg','gif','jpeg','png','avi','mpg','mpeg') ; 
     125$Config['DeniedExtensions']['Media']            = array() ; 
     126$Config['FileTypesPath']['Media']                       = $Config['UserFilesPath'] . 'media/' ; 
     127$Config['FileTypesAbsolutePath']['Media']       = ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'media/' ; 
     128$Config['QuickUploadPath']['Media']                     = $Config['FileTypesPath']['Media'] ; 
     129$Config['QuickUploadAbsolutePath']['Media']     = $Config['FileTypesAbsolutePath']['Media'] ; 
    130130 
    131131?> 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy