#!/usr/local/bin/perl # edit_options.cgi # Display options for an existing master zone require './bind8-lib.pl'; &ReadParse(); $bconf = $conf = &get_config(); if ($in{'view'} ne '') { $view = $conf->[$in{'view'}]; $conf = $view->{'members'}; } $zconf = $conf->[$in{'index'}]->{'members'}; $dom = $conf->[$in{'index'}]->{'value'}; &can_edit_zone($conf->[$in{'index'}], $view) || &error($text{'master_ecannot'}); $access{'opts'} || &error($text{'master_eoptscannot'}); $desc = &ip6int_to_net(&arpa_to_ip($dom)); &ui_print_header($desc, $text{'master_opts'}, ""); # Form for editing zone options print "\n"; print "
\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "
$text{'master_opts'}
\n"; print "\n"; print &choice_input($text{'master_check'}, "check-names", $zconf, $text{'warn'}, "warn", $text{'fail'}, "fail", $text{'ignore'}, "ignore", $text{'default'}, undef); print &choice_input($text{'master_notify'}, "notify", $zconf, $text{'yes'}, "yes", $text{'no'}, "no", $text{'default'}, undef); print "\n"; print "\n"; print &address_input($text{'master_update'}, "allow-update", $zconf); print &address_input($text{'master_transfer'}, "allow-transfer", $zconf); print "\n"; print "\n"; print &address_input($text{'master_query'}, "allow-query", $zconf); print &address_input($text{'master_notify2'}, "also-notify", $zconf); print "\n"; print "
\n"; print "\n"; print "\n"; @views = grep { &can_edit_view($_) } &find("view", $bconf); if ($in{'view'} eq '' && @views || $in{'view'} ne '' && @views > 1) { print "\n"; print "\n"; print "\n"; print "\n"; } else { print "\n"; } if ($access{'slave'}) { print "\n"; print "\n"; print "\n"; print "\n"; } else { print "\n"; } print "
\n"; print "\n"; print "
\n"; print "\n"; print "
\n"; &ui_print_footer("edit_master.cgi?index=$in{'index'}&view=$in{'view'}", $text{'master_return'});