diff --git a/bind8/acl_security.pl b/bind8/acl_security.pl
index e1d42d0d5..c59dab6f1 100755
--- a/bind8/acl_security.pl
+++ b/bind8/acl_security.pl
@@ -1,11 +1,15 @@
+use strict;
+use warnings;
require 'bind8-lib.pl';
+# Globals from bind8-lib.pl
+our (%config, %text, %in);
# acl_security_form(&options)
# Output HTML for editing security options for the bind8 module
sub acl_security_form
{
-local $m = $_[0]->{'zones'} eq '*' ? 1 :
+my $m = $_[0]->{'zones'} eq '*' ? 1 :
$_[0]->{'zones'} =~ /^\!/ ? 2 : 0;
print "
| $text{'acl_zones'} | \n";
print " | \n";
@@ -17,24 +21,23 @@ printf " %s | \n",
$m == 2 ? 'checked' : '', $text{'acl_znsel'};
print " | \n",
$_[0]->{'defaults'} ? "" : "checked";
print " | $text{'acl_ztypes'} | \n";
-foreach $t ("master", "slave", "forward", "delegation") {
+foreach my $t ("master", "slave", "forward", "delegation") {
printf " %s\n",
$t, $_[0]->{$t} ? "checked" : "", $text{'acl_ztypes_'.$t};
}
@@ -185,7 +188,7 @@ printf " $text{'no'} | \n",
$_[0]->{'views'} ? "" : "checked";
if (@views) {
- local $m = $_[0]->{'vlist'} eq '*' ? 1 :
+ my $m = $_[0]->{'vlist'} eq '*' ? 1 :
$_[0]->{'vlist'} =~ /^\!/ ? 2 :
$_[0]->{'vlist'} eq '' ? 3 : 0;
print " | $text{'acl_vlist'} | \n";
@@ -200,9 +203,9 @@ if (@views) {
$m == 3 ? 'checked' : '', $text{'acl_vnone'};
print "\n";
- local ($v, %vcan);
+ my ($v, %vcan);
map { $vcan{$_}++ } split(/\s+/, $_[0]->{'vlist'});
- foreach $v (sort { $a->{'value'} cmp $b->{'value'} } @views) {
+ foreach my $v (sort { $a->{'value'} cmp $b->{'value'} } @views) {
printf "\n",
$v->{'value'},
$vcan{$v->{'value'}} ? "selected" : "", $v->{'value'};
| |