require 'pptp-server-lib.pl';
# acl_security_form(&options)
# Output HTML for editing security options for the pptp-server module
sub acl_security_form
{
print "
$text{'acl_conf'} \n";
print "\n";
printf " $text{'yes'}\n",
$_[0]->{'conf'} ? "checked" : "";
printf " $text{'no'} \n",
$_[0]->{'conf'} ? "" : "checked";
print "$text{'acl_options'} \n";
print "\n";
printf " $text{'yes'}\n",
$_[0]->{'options'} ? "checked" : "";
printf " $text{'no'} \n",
$_[0]->{'options'} ? "" : "checked";
print "$text{'acl_secrets'} \n";
print "\n";
printf " $text{'yes'}\n",
$_[0]->{'secrets'} ? "checked" : "";
printf " $text{'no'} \n",
$_[0]->{'secrets'} ? "" : "checked";
print "$text{'acl_conns'} \n";
print "\n";
printf " $text{'yes'}\n",
$_[0]->{'conns'} ? "checked" : "";
printf " $text{'no'} \n",
$_[0]->{'conns'} ? "" : "checked";
print "$text{'acl_stop'} \n";
print "\n";
printf " $text{'yes'}\n",
$_[0]->{'stop'} ? "checked" : "";
printf " $text{'no'} \n",
$_[0]->{'stop'} ? "" : "checked";
print "$text{'acl_apply'} \n";
print "\n";
printf " $text{'yes'}\n",
$_[0]->{'apply'} ? "checked" : "";
printf " $text{'no'} \n",
$_[0]->{'apply'} ? "" : "checked";
}
# acl_security_save(&options)
# Parse the form for security options for the pptp-server module
sub acl_security_save
{
$_[0]->{'conf'} = $in{'conf'};
$_[0]->{'options'} = $in{'options'};
$_[0]->{'secrets'} = $in{'secrets'};
$_[0]->{'conns'} = $in{'conns'};
$_[0]->{'stop'} = $in{'stop'};
$_[0]->{'apply'} = $in{'apply'};
}