📄 save_master.cgi
字号:
#!/usr/local/bin/perl# save_master.cgi# Save changes to master zone options in named.confrequire './bind8-lib.pl';&ReadParse();$zconf = &get_config()->[$in{'index'}];&error_setup($text{'master_err'});%access = &get_module_acl();&can_edit_zone(\%access, $zconf->{'value'}) || &error($text{'master_ecannot'});$access{'ro'} && &error($text{'master_ero'});&save_choice("check-names", $zconf, 1);&save_choice("notify", $zconf, 1);&save_addr_match("allow-update", $zconf, 1);&save_addr_match("allow-transfer", $zconf, 1);&save_addr_match("allow-query", $zconf, 1);&save_address("also-notify", $zconf, 1);&flush_file_lines();&redirect("edit_master.cgi?index=$in{'index'}");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -