⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 slave_form.cgi

📁 BIND 9 dynamic DNS webmin module. This module supports both static and dynamic zones, and IPv4 and I
💻 CGI
字号:
#! /usr/bin/perl##    B9DDNS - BIND 9 dynamic DNS webmin module.#    Copyright (C) 2003 John Horne. <john.horne@plymouth.ac.uk>##    This program is free software; you can redistribute it and/or modify#    it under the terms of the GNU General Public License as published by#    the Free Software Foundation; either version 2 of the License, or#    (at your option) any later version.##    This program is distributed in the hope that it will be useful,#    but WITHOUT ANY WARRANTY; without even the implied warranty of#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the#    GNU General Public License for more details.##    You should have received a copy of the GNU General Public License#    along with this program; if not, write to the Free Software#    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.### A form for creating a new slave or stub zone.#use strict;no strict 'vars';require './b9ddns-lib.pl';my $conf = my $slave = my $view = '';my @views = ();&ReadParse();$slave = $in{'slave'};%access = &get_module_acl();unless ($access{'slave'}) {	&terror($slave ? 'screate_ecannot1' : 'screate_ecannot2');}$conf = &get_config();@views = &find('view', $conf);&header($slave ? $text{'screate_title1'} : $text{'screate_title2'}, '');print '<hr>';print '<form action=create_slave.cgi>';print '<input type=hidden name=type value="', $slave, '">';print '<table border width=100%>';print "<tr><td $tb><b>", $slave ? $text{'screate_header1'}				: $text{'screate_header2'}, '</b></td></tr>';print "<tr><td $cb><table width=100%>\n";print '<tr><td><b>', $text{'screate_type'}, '</b></td>';print '<td colspan=3><input type=radio name=rev value=0 checked> ', $text{'screate_fwd'};print '&nbsp;&nbsp;<input type=radio name=rev value=1>', $text{'screate_rev'},      '</td></tr>';print '<tr><td><b>', $text{'screate_dom'}, '</b></td>';print '<td colspan=3><input name=zone size=40></td></tr>';if (@views) {	print '<tr><td><b>', $text{'mcreate_view'}, '</b></td>';	print "<td colspan=3><select name=view>\n";	foreach $view (grep { &can_edit_view(\%access, $_) } @views) {		printf "<option value=%d>%s\n",			$view->{'index'}, $view->{'value'};	}	print "</select></td></tr>\n";}print '<tr><td><b>', $text{'slave_file'}, '</b></td><td colspan=3>';print '<input type=radio name=file_def value=1> ', $text{'slave_none'};print '<input type=radio name=file_def value=2 checked> ', $text{'slave_auto'};print '<input type=radio name=file_def value=0>';print '<input name=file size=30>', &file_chooser_button('file'), '</td></tr>';print '<tr>';print &addr_match_input($text{'slave_masters'}, 'masters', [ ], 1);print "</tr>\n";print '</table></td></tr></table>';print '<input type=submit value="', $text{'create'}, '"></form>';print "<hr>\n";&footer('', $text{'index_return'});exit;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -