📄 edit_text.cgi
字号:
#!/usr/local/bin/perl# edit_text.cgi# Display a form for manually editing a records filerequire './dns-lib.pl';&ReadParse();%access = &get_module_acl();$zconf = &get_config()->[$in{'index'}];&can_edit_zone(\%access, $zconf->{'values'}->[0]) || &error("You are not allowed to edit this zone");$file = &absolute_path($zconf->{'values'}->[1]);&header("Edit Records File", "");print "<center><font size=+1>$file</font></center>\n";print "<hr>\n";open(FILE, $file);@lines = <FILE>;close(FILE);print "This form allows you to manually edit the DNS records file\n";print "<tt>$file</tt>. No syntax checking will be done by webmin,\n";print "and the zone serial number will not be automatically incremented. <p>\n";print "<form action=save_text.cgi method=post>\n";print "<input type=hidden name=index value=\"$in{'index'}\">\n";print "<textarea name=text rows=20 cols=80>", join("", @lines),"</textarea><p>\n";print "<input type=submit value=Save> <input type=reset value=Undo></form>\n";print "<hr>\n";&footer("edit_master.cgi?index=$in{'index'}", "record types");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -