require 'mount-lib.pl';
# acl_security_form(&options)
# Output HTML for editing security options for the mount module
sub acl_security_form
{
print "
| $text{'acl_fs'} | \n";
print "",&ui_opt_textbox("fs", $_[0]->{'fs'}, 40,
$text{'acl_all'}, $text{'acl_list'})," |
\n";
print " | $text{'acl_types'} | \n";
print "",&ui_opt_textbox("types", $_[0]->{'types'}, 30,
$text{'acl_all'}, $text{'acl_fslist'})," |
\n";
print " | $text{'acl_create'} | \n";
print "",&ui_radio("create", $_[0]->{'create'},
[ [ 1, $text{'yes'} ], [ 0, $text{'no'} ] ])," | \n";
print "$text{'acl_only'} | \n";
print "",&ui_radio("only", $_[0]->{'only'},
[ [ 1, $text{'yes'} ], [ 0, $text{'no'} ] ])," |
\n";
print " | $text{'acl_user'} | \n";
print "",&ui_radio("user", $_[0]->{'user'},
[ [ 1, $text{'yes'} ], [ 0, $text{'no'} ] ])," | \n";
print "$text{'acl_hide'} | \n";
print "",&ui_radio("hide", $_[0]->{'hide'},
[ [ 1, $text{'yes'} ], [ 0, $text{'no'} ] ])," |
\n";
print " | $text{'acl_browse'} | \n";
print "",&ui_radio("browse", $_[0]->{'browse'},
[ [ 1, $text{'yes'} ], [ 0, $text{'no'} ] ])," | \n";
print "$text{'acl_sysinfo'} | \n";
print "",&ui_radio("sysinfo", $_[0]->{'sysinfo'},
[ [ 1, $text{'yes'} ], [ 0, $text{'no'} ] ])," |
\n";
}
# acl_security_save(&options)
# Parse the form for security options for the mount module
sub acl_security_save
{
$_[0]->{'fs'} = $in{'fs_def'} ? undef : $in{'fs'};
$_[0]->{'types'} = $in{'types_def'} ? undef : $in{'types'};
$_[0]->{'only'} = $in{'only'};
$_[0]->{'create'} = $in{'create'};
$_[0]->{'user'} = $in{'user'};
$_[0]->{'hide'} = $in{'hide'};
$_[0]->{'browse'} = $in{'browse'};
$_[0]->{'sysinfo'} = $in{'sysinfo'};
}