strict/warn

This commit is contained in:
Joe Cooper
2016-06-01 23:44:22 -07:00
parent c51d78c804
commit f846fbd43b

View File

@ -1,16 +1,20 @@
#!/usr/local/bin/perl
# Show a form for adding a record to multiple domains at once
use strict;
use warnings;
our (%text, %in, %config);
require './bind8-lib.pl';
&ReadParse();
&error_setup($text{'rmass_err'});
@d = split(/\0/, $in{'d'});
my @d = split(/\0/, $in{'d'});
@d || &error($text{'rmass_enone'});
&ui_print_header(undef, $text{'rmass_title'}, "");
print &ui_form_start("mass_rcreate.cgi", "post");
foreach $d (@d) {
my $dc;
foreach my $d (@d) {
print &ui_hidden("d", $d),"\n";
$dc++;
}
@ -20,7 +24,7 @@ print &ui_table_start($text{'rmass_header'}, undef, 2);
print &ui_table_row($text{'umass_sel'}, $dc);
# Type to add
@rtypes = ( 'A', 'CNAME', 'NS', 'MX', 'PTR', 'TXT', 'SPF',
my @rtypes = ( 'A', 'CNAME', 'NS', 'MX', 'PTR', 'TXT', 'SPF',
$config{'support_aaaa'} ? ( "AAAA" ) : ( ) );
print &ui_table_row($text{'rmass_type'},
&ui_select("type", "A",