|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /proc/self/root/usr/libexec/webmin/bind8/ |
Upload File : |
#!/usr/bin/perl
# delegation_form.cgi
# A form for creating a new delegation-only
require './bind8-lib.pl';
$access{'delegation'} || &error($text{'dcreate_ecannot'});
$access{'ro'} && &error($text{'master_ero'});
&ui_print_header(undef, $text{'dcreate_title'}, "");
# Form start
print &ui_form_start("create_delegation.cgi");
print &ui_table_start($text{'dcreate_opts'}, "width=100%", 4);
# Forward or reverse?
print &ui_table_row($text{'fcreate_type'},
&ui_radio("rev", 0, [ [ 0, $text{'fcreate_fwd'} ],
[ 1, $text{'fcreate_rev'} ] ]), 3);
# Domain name
print &ui_table_row($text{'fcreate_dom'},
&ui_textbox("zone", undef, 60), 3);
# In view
$conf = &get_config();
@views = &find("view", $conf);
if (@views) {
print &ui_table_row($text{'mcreate_view'},
&ui_select("view", undef,
[ map { [ $_->{'index'}, $_->{'values'}->[0] ] }
grep { &can_edit_view($_) } @views ]), 3);
}
print &ui_table_end();
print &ui_form_end([ [ undef, $text{'create'} ] ]);
&ui_print_footer("", $text{'index_return'});