📄 acl_security.pl
字号:
require './init-lib.pl';# acl_security_form(&options)# Output HTML for editing security options for the init modulesub acl_security_form{if ($config{'local_script'}) { print "<tr> <td><b>$text{'acl_script'}</b></td> <td>\n"; }else { print "<tr> <td><b>$text{'acl_actions'}</b></td><td>\n"; }printf "<input type=radio name=bootup value=1 %s> $text{'yes'}\n", $_[0]->{'bootup'} ? "checked" : "";printf "<input type=radio name=bootup value=0 %s> $text{'no'}</td> </tr>\n", $_[0]->{'bootup'} ? "" : "checked";print "<tr> <td><b>$text{'acl_reboot'}</b></td> <td>\n";printf "<input type=radio name=reboot value=1 %s> $text{'yes'}\n", $_[0]->{'reboot'} ? "checked" : "";printf "<input type=radio name=reboot value=0 %s> $text{'no'}</td>\n", $_[0]->{'reboot'} ? "" : "checked";print "<td><b>$text{'acl_shutdown'}</b></td> <td>\n";printf "<input type=radio name=shutdown value=1 %s> $text{'yes'}\n", $_[0]->{'shutdown'} ? "checked" : "";printf "<input type=radio name=shutdown value=0 %s> $text{'no'}</td> </tr>\n", $_[0]->{'shutdown'} ? "" : "checked";}# acl_security_save(&options)# Parse the form for security options for the init modulesub acl_security_save{$_[0]->{'bootup'} = $in{'bootup'};$_[0]->{'reboot'} = $in{'reboot'};$_[0]->{'shutdown'} = $in{'shutdown'};}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -