Added a link in the HTML editor window to swich to plain text mode.
Files in the right-hand list are now sorted case-insensitively.
When uploading a file, you can now select which Unix user it gets uploaded as.
+Added Module Config options for the default unzip mode and default user to upload as.
nocharset=0
extract=1
force_text=0
+defzip=0
+defuser=root
nocharset=0
extract=1
force_text=0
+defzip=0
+defuser=root
nocharset=0
extract=1
force_text=0
+defzip=0
+defuser=root
nocharset=0
extract=1
force_text=0
+defzip=0
+defuser=root
fixed=Font size for text,3,Default (12 points)
small_fixed=Font size for buttons,3,Default (10 points)
force_text=Editor for HTML files,1,1-Text editor,0-HTML editor
+defzip=Default archive mode for uploads,1,2-Extract and delete,1-Extract,0-Do nothing
+defuser=Default user for uploads,10,root-root,*-Same as directory,Other user
if ($unarchive == 1) {
# Unzip file?
print &ui_table_row($text{'upload_zip'},
- &ui_radio("zip", 0,
+ &ui_radio("zip", int($config{'defzip'}),
[ [ 2, $text{'upload_yes'} ],
[ 1, $text{'yes'} ],
[ 0, $text{'no'} ] ]));
if ($running_as_root) {
# Upload as user
+ $user = $config{'defuser'} || "root";
+ if ($user eq "*") {
+ # Get from parent directory
+ local @st = stat(&unmake_chroot($in{'dir'}));
+ $user = getpwuid($st[4]);
+ }
print &ui_table_row($text{'upload_user'},
- &ui_user_textbox("user", "root"));
+ &ui_user_textbox("user", $user));
}
print &ui_table_end();