do 'burner-lib.pl';
# acl_security_form(&options)
# Output HTML for editing security options for the acl module
sub acl_security_form
{
print "
| $text{'acl_create'} | \n";
printf " $text{'yes'}\n",
$_[0]->{'create'} ? 'checked' : '';
printf " $text{'no'} | \n",
$_[0]->{'create'} ? '' : 'checked';
print "$text{'acl_edit'} | \n";
printf " $text{'yes'}\n",
$_[0]->{'edit'} ? 'checked' : '';
printf " $text{'no'} |
\n",
$_[0]->{'edit'} ? '' : 'checked';
print " | $text{'acl_global'} | \n";
printf " $text{'yes'}\n",
$_[0]->{'global'} ? 'checked' : '';
printf " $text{'no'} | \n",
$_[0]->{'global'} ? '' : 'checked';
print "
\n";
print " | $text{'acl_profiles'} | \n";
print "\n";
printf " %s\n",
$_[0]->{'profiles'} eq "*" ? "checked" : "", $text{'acl_all'};
printf " %s \n",
$_[0]->{'profiles'} eq "*" ? "" : "checked", $text{'acl_sel'};
print " |
\n";
print " | $text{'acl_dirs'} | \n";
printf " |
\n",
$_[0]->{'dirs'};
}
# acl_security_save(&options)
# Parse the form for security options for the acl module
sub acl_security_save
{
$_[0]->{'create'} = $in{'create'};
$_[0]->{'edit'} = $in{'edit'};
$_[0]->{'global'} = $in{'global'};
$_[0]->{'profiles'} = $in{'all'} ? "*" :
join(" ", split(/\0/, $in{'profiles'}));
$_[0]->{'dirs'} = $in{'dirs'};
}