Changeset 1626
- Timestamp:
- 2008-02-25 17:17:51 (7 months ago)
- Location:
- FCKeditor/trunk
- Files:
-
- 4 modified
-
editor/filemanager/connectors/perl/commands.pl (modified) (1 diff)
-
editor/filemanager/connectors/perl/io.pl (modified) (1 diff)
-
editor/filemanager/connectors/perl/upload_fck.pl (modified) (2 diffs)
-
_whatsnew.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/filemanager/connectors/perl/commands.pl
r1565 r1626 141 141 } else { 142 142 copy("$img_dir/$new_fname","$sFilePath"); 143 chmod(0777,$sFilePath); 143 if (defined $CHMOD_ON_UPLOAD) { 144 if ($CHMOD_ON_UPLOAD) { 145 umask(000); 146 chmod($CHMOD_ON_UPLOAD,$sFilePath); 147 } 148 } 149 else { 150 umask(000); 151 chmod(0777,$sFilePath); 152 } 144 153 unlink("$img_dir/$new_fname"); 145 154 last; -
FCKeditor/trunk/editor/filemanager/connectors/perl/io.pl
r1565 r1626 88 88 } 89 89 if(!(-e $folderPath)) { 90 umask(000); 91 mkdir("$folderPath",0777); 92 chmod(0777,"$folderPath"); 90 if (defined $CHMOD_ON_FOLDER_CREATE && !$CHMOD_ON_FOLDER_CREATE) { 91 mkdir("$folderPath"); 92 } 93 else { 94 umask(000); 95 if (defined $CHMOD_ON_FOLDER_CREATE) { 96 mkdir("$folderPath",$CHMOD_ON_FOLDER_CREATE); 97 } 98 else { 99 mkdir("$folderPath",0777); 100 } 101 } 102 93 103 return(0); 94 104 } else { -
FCKeditor/trunk/editor/filemanager/connectors/perl/upload_fck.pl
r1565 r1626 28 28 # File size max(unit KB) 29 29 $MAX_CONTENT_SIZE = 30000; 30 31 # After file is uploaded, sometimes it is required to change its permissions 32 # so that it was possible to access it at the later time. 33 # If possible, it is recommended to set more restrictive permissions, like 0755. 34 # Set to 0 to disable this feature. 35 $CHMOD_ON_UPLOAD = 0777; 36 37 # See comments above. 38 # Used when creating folders that does not exist. 39 $CHMOD_ON_FOLDER_CREATE = 0755; 30 40 31 41 # Filelock (1=use,0=not use) … … 125 135 my ($FORM) = @_; 126 136 127 128 mkdir($img_dir,0777); 129 chmod(0777,$img_dir); 137 if (defined $CHMOD_ON_FOLDER_CREATE && !$CHMOD_ON_FOLDER_CREATE) { 138 mkdir("$img_dir"); 139 } 140 else { 141 umask(000); 142 if (defined $CHMOD_ON_FOLDER_CREATE) { 143 mkdir("$img_dir",$CHMOD_ON_FOLDER_CREATE); 144 } 145 else { 146 mkdir("$img_dir",0777); 147 } 148 } 130 149 131 150 undef $img_data_exists; -
FCKeditor/trunk/_whatsnew.html
r1625 r1626 134 134 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1871">#1871</a>] PHP file browser: permissions 135 135 applied with the chmod command are now configurable.</li> 136 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1872">#1872</a>] Perl file browser: permissions 137 applied with the chmod command are now configurable.</li> 136 138 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1873">#1873</a>] Python file browser: permissions 137 139 applied with the chmod command are now configurable.</li>