📄 forward_form.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 forward zone.#use strict;no strict 'vars';require './b9ddns-lib.pl';my $conf = my $view = '';my @views = ();%access = &get_module_acl();unless ($access{'forward'}) { &terror('fcreate_ecannot');}if ($access{'ro'}) { &terror('master_ero');}$conf = &get_config();@views = &find('view', $conf);&header($text{'fcreate_title'}, '');print '<hr>';print '<form action=create_forward.cgi>';print '<table border width=100%>';print "<tr><td $tb><b>$text{'fcreate_opts'}</b></td></tr>\n";print "<tr><td $cb><table width=100%>\n";print '<tr><td><b>', $text{'fcreate_type'}, '</b></td>';print '<td colspan=3><input type=radio name=rev value=0 checked>', $text{'fcreate_fwd'};print ' <input type=radio name=rev value=1>', $text{'fcreate_rev'}, '</td></tr>';print '<tr><td><b>', $text{'fcreate_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>'; 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>';print &addr_match_input($text{'fcreate_masters'}, 'forwarders', [ ], 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 + -