\n";
if ($config{'securenets'}) {
print " $text{'security_nets'} | \n";
print "\n";
print " $text{'security_mask'} | ",
"$text{'security_net'} | \n";
open(NETS, $config{'securenets'});
while() {
s/#.*$//;
if (/(\S+)\s+(\S+)/) {
push(@nets, [ $1 eq '255.255.255.255' ? 1 :
$1 eq 'host' ? 1 :
$1 eq '0.0.0.0' ? 2 : 0, $1, $2 ]);
}
}
close(NETS);
local $i = 0;
foreach $n (@nets, [ -1, "", "" ]) {
print "\n";
printf " %s\n",
$n->[0] == -1 ? 'checked' : '', $text{'security_none'};
printf " %s\n",
$n->[0] == 2 ? 'checked' : '', $text{'security_any'};
printf " %s\n",
$n->[0] == 1 ? 'checked' : '', $text{'security_single'};
printf " %s\n",
$n->[0] == 0 ? 'checked' : '', $text{'security_mask'};
printf " | \n",
$n->[0] == 0 ? $n->[1] : '';
printf " | \n",
$n->[0] == 2 ? "" : $n->[2];
print " \n";
$i++;
}
print " | \n";
}
&show_server_security();
print " |