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

📄 view_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>#    Copyright (C) 2004 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.### Display options for creating a new view.#use strict;no strict 'vars';require './b9ddns-lib.pl';my $conf = my $disabled = '';&ReadParse();$conf = &get_config();%access = &get_module_acl();unless ($access{'views'} == 1) {	&terror('vcreate_ecannot');}if ($access{'ro'}) {	&terror('vcreate_ecannot');}&header($text{'vcreate_title'}, '');print '<hr>';print '<form action=create_view.cgi>';print '<table border width=100%>';print "<tr $tb><td><b>", $text{'view_opts'}, '</b></td></tr>';print "<tr $cb><td><table>";print '<tr><td><b>', $text{'view_name'}, '</b></td>';print "<td><input name=name size=40></td></tr>\n";print '<tr><td></td></tr>';print '<tr><td valign=top><b>', $text{'view_match_client'},	'</b></td><td colspan=3>';print '<input type=radio name=match_client value=0 checked> ',	$text{'vcreate_match_client_all'}, '&nbsp;&nbsp;';print '<input type=radio name=match_client value=1> ',	$text{'vcreate_match_sel'}, '<br>';print "<textarea name=match_clients rows=5 cols=40></textarea></td></tr>\n";$disabled = (&bind_version(0) < 9.2) ? 'disabled' : '';print '<tr><td></td></tr>';print '<tr><td valign=top><b>', $text{'view_match_dest'},	'</b></td><td colspan=3>';print "<input type=radio $disabled name=match_dest value=0 checked> ",	$text{'vcreate_match_dest_all'}, '&nbsp;&nbsp;';print "<input type=radio $disabled name=match_dest value=1> ",	$text{'vcreate_match_sel'}, '<br>';print "<textarea $disabled name=match_destinations rows=5 cols=40></textarea></td></tr>\n";print '<tr><td></td></tr>';print '<tr><td><b>', $text{'view_match_recursive'}, '</b></td>';print "<td><input type=radio $disabled name=match_recursive value='' checked> ",	$text{'default'}, '&nbsp;';print "<input type=radio $disabled name=match_recursive value=yes> ",	$text{'yes'}, '&nbsp;';print "<input type=radio $disabled name=match_recursive value=no> ",	$text{'no'};print "</td></tr>\n";print "</table></td></tr></table>\n";print '<table width=100%><tr><td align=left>';print '<input type=submit value="', $text{'create'}, '"></td></form>';print "</tr></table>\n";print '<hr>';&footer('', $text{'index_return'});exit;

⌨️ 快捷键说明

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