Show
Ignore:
Timestamp:
2008-02-25 17:13:58 (6 months ago)
Author:
wwalc
Message:

Fix for #1871. Permissions applied with chmod commmand are now configurable (php).

Files:
1 modified

Legend:

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

    r1615 r1625  
    221221                                        if ( is_file( $sFilePath ) ) 
    222222                                        { 
     223                                                if ( isset( $Config['ChmodOnUpload'] ) && !$Config['ChmodOnUpload'] ) 
     224                                                { 
     225                                                        break ; 
     226                                                } 
     227                                                 
     228                                                $permissions = 0777; 
     229                                                 
     230                                                if ( isset( $Config['ChmodOnUpload'] ) && $Config['ChmodOnUpload'] ) 
     231                                                { 
     232                                                        $permissions = $Config['ChmodOnUpload'] ; 
     233                                                } 
     234                                                 
    223235                                                $oldumask = umask(0) ; 
    224                                                 chmod( $sFilePath, 0777 ) ; 
     236                                                chmod( $sFilePath, $permissions ) ; 
    225237                                                umask( $oldumask ) ; 
    226238                                        }