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

📄 edit_forward.cgi

📁 Unix下基于Web的管理工具
💻 CGI
字号:
#!/usr/local/bin/perl# edit_forward.cgi# Display options for an existing forward zonerequire './bind8-lib.pl';&ReadParse();$conf = &get_config();$zconf = $conf->[$in{'index'}]->{'members'};$dom = $conf->[$in{'index'}]->{'value'};%access = &get_module_acl();&can_edit_zone(\%access, $dom) || &error($text{'fwd_ecannot'});&header($text{'fwd_title'}, "");print "<center><font size=+2>",&arpa_to_ip($dom),"</font></center>\n";print "<hr>\n";print "<form action=save_forward.cgi>\n";print "<input type=hidden name=index value=\"$in{'index'}\">\n";print "<table border width=100%>\n";print "<tr $tb> <td><b>$text{'fwd_opts'}</b></td> </tr>\n";print "<tr $cb> <td><table width=100%>\n";print "<tr>\n";print &address_input($text{'fwd_masters'}, "forwarders", $zconf);print "</tr>\n";print "<tr>\n";print &choice_input($text{'fwd_forward'}, "forward", $zconf,		    $text{'yes'}, "first", $text{'no'}, "only",		    $text{'default'}, undef);print &choice_input($text{'fwd_check'}, "check-names", $zconf,		    $text{'warn'}, "warn", $text{'fail'}, "fail",		    $text{'ignore'}, "ignore", $text{'default'}, undef);print "</tr>\n";print "</table></td></tr> </table><br>\n";if ($access{'ro'}) {	print "</form>\n";	}else {	print "<table width=100%><tr><td align=left>\n";	print "<input type=submit value='$text{'save'}'></td></form>\n";	print "<form action=delete_zone.cgi>\n";	print "<input type=hidden name=index value=\"$in{'index'}\">\n";	print "<td align=right><input type=submit ",	      "value='$text{'delete'}'></td></form>\n";	print "</tr></table>\n";	}print "<hr>\n";&footer("", $text{'index_return'});

⌨️ 快捷键说明

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