Handle hostnames with upper-case letters
[webmin.git] / bind8 / conf_acls.cgi
1 #!/usr/local/bin/perl
2 # conf_acls.cgi
3 # Display global ACLs
4
5 require './bind8-lib.pl';
6 $access{'defaults'} || &error($text{'acls_ecannot'});
7 &ui_print_header(undef, $text{'acls_title'}, "",
8                  undef, undef, undef, undef, &restart_links());
9
10 $conf = &get_config();
11 @acls = ( &find("acl", $conf), { } );
12
13 print &ui_form_start("save_acls.cgi", "post");
14 print &ui_columns_start([ $text{'acls_name'}, $text{'acls_values'} ]);
15 for($i=0; $i<@acls; $i++) {
16         @cols = ( );
17         push(@cols, &ui_textbox("name_$i", $acls[$i]->{'value'}, 15));
18         @vals = map { join(" ", $_->{'name'}, @{$_->{'values'}}) }
19                     @{$acls[$i]->{'members'}};
20         push(@cols, &ui_textarea("values_$i", join("\n", @vals), 5, 60, "off"));
21         print &ui_columns_row(\@cols, [ "valign=top" ]);
22         }
23 print &ui_columns_end();
24 print &ui_form_end([ [ undef, $text{'save'} ] ]);
25
26 &ui_print_footer("", $text{'index_return'});
27