Handle hostnames with upper-case letters
[webmin.git] / bind8 / mass_update_form.cgi
1 #!/usr/local/bin/perl
2 # Show a form for changing the IPs in multiple zones
3
4 require './bind8-lib.pl';
5 &ReadParse();
6 &error_setup($text{'umass_err'});
7 @d = split(/\0/, $in{'d'});
8 @d || &error($text{'umass_enone'});
9
10 &ui_print_header(undef, $text{'umass_title'}, "");
11
12 print &ui_form_start("mass_update.cgi", "post");
13 foreach $d (@d) {
14         print &ui_hidden("d", $d),"\n";
15         $dc++;
16         }
17 print &ui_table_start($text{'umass_header'}, undef, 2);
18
19 # Number of domains selected
20 print &ui_table_row($text{'umass_sel'}, $dc);
21
22 # Type to change
23 @rtypes = ( 'ttl', 'A', 'CNAME', 'NS', 'MX', 'PTR', 'TXT', 'SPF',
24             $config{'support_aaaa'} ? ( "AAAA" ) : ( ) );
25 print &ui_table_row($text{'umass_type'},
26         &ui_select("type", "A",
27                    [ map { [ $_, $text{'recs_'.$_} ] } @rtypes ]));
28
29 # Value to change
30 print &ui_table_row($text{'umass_old'},
31                     &ui_opt_textbox("old", undef, 30, $text{'umass_any'}));
32
33 # New value
34 print &ui_table_row($text{'umass_new'},
35                     &ui_textbox("new", undef, 30));
36
37 print &ui_table_end();
38 print &ui_form_end([ [ "update", $text{'umass_ok'} ] ]);
39
40 &ui_print_footer("", $text{'index_return'});