acl_security.pl

来自「Unix下基于Web的管理工具」· PL 代码 · 共 41 行

PL
41
字号
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 + =
减小字号Ctrl + -
显示快捷键?