4 # acl_security_form(&options)
5 # Output HTML for editing security options for the at module
8 print "<tr> <td valign=top><b>$text{'acl_users'}</b></td> <td colspan=3>\n";
9 printf "<input type=radio name=mode value=0 %s> $text{'acl_all'}<br>\n",
10 $_[0]->{'mode'} == 0 ? "checked" : "";
11 printf "<input type=radio name=mode value=3 %s> $text{'acl_this'}<br>\n",
12 $_[0]->{'mode'} == 3 ? "checked" : "";
13 printf "<input type=radio name=mode value=1 %s> $text{'acl_only'}\n",
14 $_[0]->{'mode'} == 1 ? "checked" : "";
15 printf "<input name=userscan size=40 value='%s'> %s<br>\n",
16 $_[0]->{'mode'} == 1 ? $_[0]->{'users'} : "",
17 &user_chooser_button("userscan", 1);
18 printf "<input type=radio name=mode value=2 %s> $text{'acl_except'}\n",
19 $_[0]->{'mode'} == 2 ? "checked" : "";
20 printf "<input name=userscannot size=40 value='%s'> %s</td> </tr>\n",
21 $_[0]->{'mode'} == 2 ? $_[0]->{'users'} : "",
22 &user_chooser_button("userscannot", 1);
24 print "<tr> <td valign=top><b>$text{'acl_allow'}</b></td> <td colspan=3>\n";
25 print &ui_yesno_radio("allow", $_[0]->{'allow'}),"</td> </tr>\n";
28 # acl_security_save(&options)
29 # Parse the form for security options for the cron module
32 $_[0]->{'mode'} = $in{'mode'};
33 $_[0]->{'users'} = $in{'mode'} == 0 || $in{'mode'} == 3 ? "" :
34 $in{'mode'} == 1 ? $in{'userscan'}
36 $_[0]->{'allow'} = $in{'allow'};