diff --git a/pap/acl_security.pl b/pap/acl_security.pl
index f104bef99..e620e4be8 100755
--- a/pap/acl_security.pl
+++ b/pap/acl_security.pl
@@ -5,28 +5,28 @@ require 'pap-lib.pl';
# 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";
+my ($o) = @_;
-print " $text{'acl_direct'} \n";
-printf " %s\n",
- $_[0]->{'direct'} ? "checked" : "", $text{'yes'};
-printf " %s \n",
- $_[0]->{'direct'} ? "" : "checked", $text{'no'};
+print &u_table_row($text{'acl_pages'},
+ &ui_checkbox('mgetty', 1, $text{'mgetty_title'}, $o->{'mgetty'})." \n".
+ &ui_checkbox('options', 1, $text{'options_title'}, $o->{'options'})." \n".
+ &ui_checkbox('dialin', 1, $text{'dialin_title'}, $o->{'dialin'})." \n".
+ &ui_checkbox('secrets', 1, $text{'secrets_title'}, $o->{'secrets'})." \n".
+ &ui_checkbox('sync', 1, $text{'sync_title'}, $o->{'sync'}), 3);
+
+print &ui_table_row($text{'acl_direct'},
+ &ui_yesno_radio("direct", $o->{'direct'}));
}
# acl_security_save(&options)
# Parse the form for security options for the squid module
sub acl_security_save
{
+my ($o) = @_;
+
foreach $a ('mgetty', 'options', 'dialin', 'secrets', 'sync') {
- $_[0]->{$a} = $in{$a};
+ $o->{$a} = $in{$a};
}
-$_[0]->{'direct'} = $in{'direct'};
+$o->{'direct'} = $in{'direct'};
}