#!/usr/bin/perl # edit_anon.cgi # Display anonymous FTP options require './wuftpd-lib.pl'; &ui_print_header(undef, $text{'anon_title'}, "", "anon"); $conf = &get_ftpaccess(); @class = &find_value("class", $conf); if (!getpwnam("ftp")) { print "<b>$text{'anon_eftp'}</b> <p>\n"; } print "<form action=save_anon.cgi>\n"; print "<table border width=100%>\n"; print "<tr $tb> <td><b>$text{'anon_header'}</b></td> </tr>\n"; print "<tr $cb> <td><table width=100%>\n"; # Display anonymous-root options @root = ( &find_value('anonymous-root', $conf), [ ] ); print "<tr> <td valign=top><b>$text{'anon_root'}</b></td>\n"; print "<td colspan=3><table border>\n"; print "<tr $tb> <td><b>$text{'anon_dir'}</b></td>\n", "<td><b>$text{'anon_class'}</b></td> </tr>\n"; $i = 0; foreach $r (@root) { print "<tr $cb>\n"; printf "<td><input name=dir_$i size=35 value='%s'> %s</td>\n", $r->[0], &file_chooser_button("dir_$i", 1); print "<td><select name=class_$i>\n"; printf "<option value='' %s>%s</option>\n", $r->[1] ? '' : 'selected', $text{'anon_any'}; foreach $c (@class) { printf "<option %s>%s</option>\n", $r->[1] eq $c->[0] ? 'selected' : '', $c->[0]; } print "</select></td> </tr>\n"; $i++; } print "</table></td> </tr>\n"; # Display guest-root options @root = ( &find_value('guest-root', $conf), [ ] ); print "<tr> <td valign=top><b>$text{'anon_groot'}</b></td>\n"; print "<td colspan=3><table border>\n"; print "<tr $tb> <td><b>$text{'anon_dir'}</b></td>\n", "<td><b>$text{'anon_uids'}</b></td> </tr>\n"; $i = 0; foreach $r (@root) { print "<tr $cb>\n"; printf "<td><input name=gdir_$i size=35 value='%s'> %s</td>\n", $r->[0], &file_chooser_button("gdir_$i", 1); printf "<td><input name=uids_$i size=20 value='%s'> %s</td>\n", join(" ", @$r[1..@$r-1]), &user_chooser_button("uids_$i", 1); print "</tr>\n"; $i++; } print "</table></td> </tr>\n"; print "<tr> <td colspan=4><hr></td> </tr>\n"; # Display autogroup options @auto = ( &find_value('autogroup', $conf), [ ] ); print "<tr> <td valign=top><b>$text{'anon_auto'}</b></td>\n"; print "<td colspan=3><table border>\n"; print "<tr $tb> <td><b>$text{'anon_group'}</b></td>\n", "<td><b>$text{'anon_classes'}</b></td> </tr>\n"; $i = 0; foreach $a (@auto) { local %aclass; map { $aclass{$_}++ } @$a[1..@$a-1]; print "<tr $cb>\n"; print "<td><input name=agroup_$i size=8 value='$a->[0]'> ", &group_chooser_button("agroup_$i"),"</td>\n"; print "<td>\n"; foreach $c (@class) { printf "<input name=aclass_$i type=checkbox %s value=%s> %s\n", $aclass{$c->[0]} ? 'checked' : '', $c->[0], $c->[0]; } print "</td> </tr>\n"; $i++; } print "</table></td> </tr>\n"; print "<tr> <td colspan=4><hr></td> </tr>\n"; # Display passwd-check field $p = &find_value('passwd-check', $conf); print "<tr> <td><b>$text{'anon_passwd'}</b></td> <td colspan=3>\n"; printf "<input type=radio name=passwd_def value=1 %s> %s\n", $p ? '' : 'checked', $text{'default'}; printf "<input type=radio name=passwd_def value=0 %s>\n", $p ? 'checked' : ''; print "<select name=level>\n"; foreach $l ('none', 'trivial', 'rfc822') { printf "<option %s value='%s'>%s</option>\n", $p->[0] eq $l ? 'selected' : '', $l, $text{"anon_$l"}; } print "</select> <select name=action>\n"; foreach $a ('enforce', 'warn') { printf "<option %s value='%s'>%s</option>\n", $p->[1] eq $a ? 'selected' : '', $a, $text{"anon_$a"}; } print "</select></td> </tr>\n"; print "<tr> <td><b>$text{'anon_email'}</b></td>\n"; printf "<td colspan=3><input name=email size=50 value='%s'></td> </tr>\n", join(" ", map { $_->[0] } &find_value('deny-email', $conf)); print "</table></td></tr></table>\n"; print "<input type=submit value=\"$text{'save'}\"></form>\n"; &ui_print_footer("", $text{'index_return'});
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
help | Folder | 0755 |
|
|
images | Folder | 0755 |
|
|
lang | Folder | 0755 |
|
|
backup_config.pl | File | 953 B | 0755 |
|
config-aix | File | 214 B | 0644 |
|
config-coherent-linux | File | 212 B | 0644 |
|
config-corel-linux | File | 212 B | 0644 |
|
config-debian-linux | File | 257 B | 0644 |
|
config-freebsd | File | 218 B | 0644 |
|
config-generic-linux | File | 212 B | 0644 |
|
config-hpux | File | 212 B | 0644 |
|
config-irix | File | 212 B | 0644 |
|
config-lfs-linux | File | 212 B | 0644 |
|
config-macos | File | 212 B | 0644 |
|
config-mandrake-linux | File | 212 B | 0644 |
|
config-msc-linux | File | 212 B | 0644 |
|
config-netbsd | File | 216 B | 0644 |
|
config-open-linux | File | 212 B | 0644 |
|
config-openSUSE-Linux-15.0-ALL | File | 212 B | 0644 |
|
config-openbsd | File | 212 B | 0644 |
|
config-openserver | File | 200 B | 0644 |
|
config-osf1 | File | 212 B | 0644 |
|
config-redhat-linux | File | 212 B | 0644 |
|
config-slackware-linux | File | 212 B | 0644 |
|
config-solaris | File | 212 B | 0644 |
|
config-solaris-8-ALL | File | 211 B | 0644 |
|
config-suse-linux | File | 212 B | 0644 |
|
config-turbo-linux | File | 237 B | 0644 |
|
config-united-linux | File | 212 B | 0644 |
|
config.info | File | 330 B | 0644 |
|
config.info.ca | File | 401 B | 0644 |
|
config.info.cs | File | 336 B | 0644 |
|
config.info.de | File | 401 B | 0644 |
|
config.info.es | File | 389 B | 0644 |
|
config.info.fr | File | 293 B | 0644 |
|
config.info.hr | File | 323 B | 0644 |
|
config.info.hu | File | 314 B | 0644 |
|
config.info.ms | File | 330 B | 0644 |
|
config.info.nl | File | 374 B | 0644 |
|
config.info.no | File | 335 B | 0644 |
|
config.info.pl | File | 454 B | 0644 |
|
config.info.ru | File | 430 B | 0644 |
|
config.info.sv | File | 347 B | 0644 |
|
config.info.tr | File | 295 B | 0644 |
|
config.info.uk | File | 448 B | 0644 |
|
config.info.zh | File | 273 B | 0644 |
|
config.info.zh_TW | File | 291 B | 0644 |
|
edit_acl.cgi | File | 8.33 KB | 0755 |
|
edit_alias.cgi | File | 1.23 KB | 0755 |
|
edit_anon.cgi | File | 3.68 KB | 0755 |
|
edit_class.cgi | File | 2.77 KB | 0755 |
|
edit_log.cgi | File | 2.48 KB | 0755 |
|
edit_message.cgi | File | 4.34 KB | 0755 |
|
edit_misc.cgi | File | 2.86 KB | 0755 |
|
edit_net.cgi | File | 2.58 KB | 0755 |
|
edit_perm.cgi | File | 3.19 KB | 0755 |
|
index.cgi | File | 3.68 KB | 0755 |
|
install_check.pl | File | 359 B | 0755 |
|
log_parser.pl | File | 387 B | 0755 |
|
module.info | File | 391 B | 0644 |
|
module.info.af | File | 0 B | 0644 |
|
module.info.af.auto | File | 118 B | 0644 |
|
module.info.ar | File | 0 B | 0644 |
|
module.info.ar.auto | File | 193 B | 0644 |
|
module.info.be | File | 0 B | 0644 |
|
module.info.be.auto | File | 167 B | 0644 |
|
module.info.bg | File | 0 B | 0644 |
|
module.info.bg.auto | File | 177 B | 0644 |
|
module.info.ca | File | 105 B | 0644 |
|
module.info.ca.auto | File | 12 B | 0644 |
|
module.info.cs | File | 22 B | 0644 |
|
module.info.cs.auto | File | 104 B | 0644 |
|
module.info.da | File | 0 B | 0644 |
|
module.info.da.auto | File | 117 B | 0644 |
|
module.info.de | File | 115 B | 0644 |
|
module.info.de.auto | File | 12 B | 0644 |
|
module.info.el | File | 0 B | 0644 |
|
module.info.el.auto | File | 193 B | 0644 |
|
module.info.es | File | 24 B | 0644 |
|
module.info.es.auto | File | 98 B | 0644 |
|
module.info.eu | File | 0 B | 0644 |
|
module.info.eu.auto | File | 131 B | 0644 |
|
module.info.fa | File | 0 B | 0644 |
|
module.info.fa.auto | File | 162 B | 0644 |
|
module.info.fi | File | 0 B | 0644 |
|
module.info.fi.auto | File | 116 B | 0644 |
|
module.info.fr | File | 23 B | 0644 |
|
module.info.fr.auto | File | 105 B | 0644 |
|
module.info.he | File | 0 B | 0644 |
|
module.info.he.auto | File | 160 B | 0644 |
|
module.info.hr | File | 0 B | 0644 |
|
module.info.hr.auto | File | 124 B | 0644 |
|
module.info.hu | File | 0 B | 0644 |
|
module.info.hu.auto | File | 143 B | 0644 |
|
module.info.it | File | 0 B | 0644 |
|
module.info.it.auto | File | 123 B | 0644 |
|
module.info.ja | File | 25 B | 0644 |
|
module.info.ja.auto | File | 125 B | 0644 |
|
module.info.ko | File | 22 B | 0644 |
|
module.info.ko.auto | File | 102 B | 0644 |
|
module.info.lt | File | 0 B | 0644 |
|
module.info.lt.auto | File | 126 B | 0644 |
|
module.info.lv | File | 0 B | 0644 |
|
module.info.lv.auto | File | 125 B | 0644 |
|
module.info.ms | File | 108 B | 0644 |
|
module.info.ms.auto | File | 12 B | 0644 |
|
module.info.mt | File | 0 B | 0644 |
|
module.info.mt.auto | File | 129 B | 0644 |
|
module.info.nl | File | 22 B | 0644 |
|
module.info.nl.auto | File | 100 B | 0644 |
|
module.info.no | File | 22 B | 0644 |
|
module.info.no.auto | File | 101 B | 0644 |
|
module.info.pl | File | 103 B | 0644 |
|
module.info.pl.auto | File | 12 B | 0644 |
|
module.info.pt | File | 24 B | 0644 |
|
module.info.pt.auto | File | 99 B | 0644 |
|
module.info.pt_BR | File | 0 B | 0644 |
|
module.info.pt_BR.auto | File | 132 B | 0644 |
|
module.info.ro | File | 0 B | 0644 |
|
module.info.ro.auto | File | 121 B | 0644 |
|
module.info.ru | File | 28 B | 0644 |
|
module.info.ru.auto | File | 143 B | 0644 |
|
module.info.sk | File | 0 B | 0644 |
|
module.info.sk.auto | File | 125 B | 0644 |
|
module.info.sl | File | 0 B | 0644 |
|
module.info.sl.auto | File | 121 B | 0644 |
|
module.info.sv | File | 22 B | 0644 |
|
module.info.sv.auto | File | 102 B | 0644 |
|
module.info.th | File | 0 B | 0644 |
|
module.info.th.auto | File | 269 B | 0644 |
|
module.info.tr | File | 24 B | 0644 |
|
module.info.tr.auto | File | 114 B | 0644 |
|
module.info.uk | File | 0 B | 0644 |
|
module.info.uk.auto | File | 171 B | 0644 |
|
module.info.ur | File | 0 B | 0644 |
|
module.info.ur.auto | File | 169 B | 0644 |
|
module.info.vi | File | 0 B | 0644 |
|
module.info.vi.auto | File | 151 B | 0644 |
|
module.info.zh | File | 25 B | 0644 |
|
module.info.zh.auto | File | 86 B | 0644 |
|
module.info.zh_TW | File | 25 B | 0644 |
|
module.info.zh_TW.auto | File | 92 B | 0644 |
|
restart.cgi | File | 296 B | 0755 |
|
save_acl.cgi | File | 3.87 KB | 0755 |
|
save_alias.cgi | File | 870 B | 0755 |
|
save_anon.cgi | File | 1.57 KB | 0755 |
|
save_class.cgi | File | 1.7 KB | 0755 |
|
save_log.cgi | File | 1005 B | 0755 |
|
save_message.cgi | File | 2.5 KB | 0755 |
|
save_misc.cgi | File | 1.46 KB | 0755 |
|
save_net.cgi | File | 1.58 KB | 0755 |
|
save_perm.cgi | File | 1.35 KB | 0755 |
|
start.cgi | File | 221 B | 0755 |
|
wuftpd-lib.pl | File | 2.96 KB | 0755 |
|