do 'fsdump-lib.pl'; # acl_security_form(&options) # Output HTML for editing security options for the acl module sub acl_security_form { print " $text{'acl_edit'} \n"; printf " %s\n", $_[0]->{'edit'} ? "checked" : "", $text{'yes'}; printf " %s\n", $_[0]->{'edit'} ? "" : "checked", $text{'no'}; print "$text{'acl_restore'} \n"; printf " %s\n", $_[0]->{'restore'} ? "checked" : "", $text{'yes'}; printf " %s \n", $_[0]->{'restore'} ? "" : "checked", $text{'no'}; print " $text{'acl_cmds'} \n"; printf " %s\n", $_[0]->{'cmds'} ? "checked" : "", $text{'yes'}; printf " %s\n", $_[0]->{'cmds'} ? "" : "checked", $text{'no'}; print "$text{'acl_extra'} \n"; printf " %s\n", $_[0]->{'extra'} ? "checked" : "", $text{'yes'}; printf " %s \n", $_[0]->{'extra'} ? "" : "checked", $text{'no'}; print " $text{'acl_dirs'} \n"; printf " %s\n", $_[0]->{'dirs'} eq "*" ? "checked" : "", $text{'acl_all'}; printf " %s
\n", $_[0]->{'dirs'} eq "*" ? "" : "checked", $text{'acl_list'}; print " \n"; } # acl_security_save(&options) # Parse the form for security options for the acl module sub acl_security_save { $_[0]->{'edit'} = $in{'edit'}; $_[0]->{'restore'} = $in{'restore'}; $_[0]->{'cmds'} = $in{'cmds'}; $_[0]->{'extra'} = $in{'extra'}; $in{'dirs'} =~ s/\r//g; $_[0]->{'dirs'} = $in{'dirs_def'} ? "*" : join("\t", split(/\n/, $in{'dirs'})); }