require 'pap-lib.pl';
# acl_security_form(&options)
# Output HTML for editing security options for the pap module
sub acl_security_form
{
print "
| $text{'acl_pages'} | \n";
foreach $a ('mgetty', 'options', 'dialin', 'secrets', 'sync') {
print " \n" if ($a eq 'sync');
printf " %s \n",
$a, $_[0]->{$a} ? "checked" : "", $text{$a."_title"};
}
print " |
\n";
print " | $text{'acl_direct'} | \n";
printf " %s\n",
$_[0]->{'direct'} ? "checked" : "", $text{'yes'};
printf " %s |
\n",
$_[0]->{'direct'} ? "" : "checked", $text{'no'};
}
# acl_security_save(&options)
# Parse the form for security options for the squid module
sub acl_security_save
{
foreach $a ('mgetty', 'options', 'dialin', 'secrets', 'sync') {
$_[0]->{$a} = $in{$a};
}
$_[0]->{'direct'} = $in{'direct'};
}