#!/usr/local/bin/perl # hint_form.cgi # Display options for creating a new root zone require './bind8-lib.pl'; $access{'master'} || &error($text{'hcreate_ecannot'}); $access{'ro'} && &error($text{'master_ero'}); &ui_print_header(undef, $text{'hcreate_title'}, ""); $conf = &get_config(); @views = &find("view", $conf); foreach $v (@views) { local @vz = &find("zone", $v->{'members'}); map { $view{$_} = $v } @vz; push(@zones, @vz); } push(@zones, &find("zone", $conf)); foreach $z (@zones) { $tv = &find_value("type", $z->{'members'}); if ($tv eq 'hint') { $file = &find_value("file", $z->{'members'}); $hashint{$view{$z}}++; } } print $text{'hcreate_desc'},"
\n"; print "
\n"; &ui_print_footer("", $text{'index_return'});