📄 acl_security.pl
字号:
require './cron-lib.pl';# acl_security_form(&options)# Output HTML for editing security options for the cron modulesub acl_security_form{print "<tr> <td valign=top><b>$text{'acl_users'}</b></td> <td colspan=3>\n";printf "<input type=radio name=mode value=0 %s> $text{'acl_all'}<br>\n", $_[0]->{'mode'} == 0 ? "checked" : "";printf "<input type=radio name=mode value=1 %s> $text{'acl_only'}\n", $_[0]->{'mode'} == 1 ? "checked" : "";printf "<input name=userscan size=40 value='%s'> %s<br>\n", $_[0]->{'mode'} == 1 ? $_[0]->{'users'} : "", &user_chooser_button("userscan", 1);printf "<input type=radio name=mode value=2 %s> $text{'acl_except'}\n", $_[0]->{'mode'} == 2 ? "checked" : "";printf "<input name=userscannot size=40 value='%s'> %s</td> </tr>\n", $_[0]->{'mode'} == 2 ? $_[0]->{'users'} : "", &user_chooser_button("userscannot", 1);print "<tr> <td><b>$text{'acl_control'}</b></td> <td>\n";printf "<input type=radio name=allow value=1 %s> $text{'yes'}\n", $_[0]->{'allow'} ? "checked" : "";printf "<input type=radio name=allow value=0 %s> $text{'no'}</td> </tr>\n", $_[0]->{'allow'} ? "" : "checked";}# acl_security_save(&options)# Parse the form for security options for the cron modulesub acl_security_save{$_[0]->{'mode'} = $in{'mode'};$_[0]->{'users'} = $in{'mode'} == 0 ? "" : $in{'mode'} == 1 ? $in{'userscan'} : $in{'userscannot'};$_[0]->{'allow'} = $in{'allow'};}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -