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

📄 edit_options.cgi

📁 Unix下基于Web的管理工具
💻 CGI
字号:
#!/usr/local/bin/perl# edit_options.cgi# Display options for an existing master 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{'master_ecannot'});&header($text{'master_opts'}, "");print "<center><font size=+2>",&arpa_to_ip($dom),"</font></center>\n";# Form for editing zone optionsprint "<hr><a name=options>\n";print "<form action=save_master.cgi>\n";print "<input type=hidden name=index value=\"$in{'index'}\">\n";print "<table border width=100%>\n";print "<tr $tb> <td><b>$text{'master_opts'}</b></td> </tr>\n";print "<tr $cb> <td><table width=100%>\n";print "<tr>\n";print &choice_input($text{'master_check'}, "check-names", $zconf,		    $text{'warn'}, "warn", $text{'fail'}, "fail",		    $text{'ignore'}, "ignore", $text{'default'}, undef);print &choice_input($text{'master_notify'}, "notify", $zconf,		    $text{'yes'}, "yes", $text{'no'}, "no",		    $text{'default'}, undef);print "</tr>\n";print "<tr>\n";print &addr_match_input($text{'master_update'}, "allow-update", $zconf);print &addr_match_input($text{'master_transfer'}, "allow-transfer", $zconf);print "</tr>\n";print "<tr>\n";print &addr_match_input($text{'master_query'}, "allow-query", $zconf);print &address_input($text{'master_notify'}, "also-notify", $zconf);print "</tr>\n";print "</table></td></tr> </table>\n";print "<input type=submit value='$text{'save'}'></form>\n";print "<hr>\n";&footer("edit_master.cgi?index=$in{'index'}", $text{'master_return'});

⌨️ 快捷键说明

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