%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 14.207.165.8 / Your IP : 216.73.216.35 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/root/usr/share/webmin/shorewall/ |
Upload File : |
do 'shorewall-lib.pl';
# acl_security_form(&options)
# Output HTML for editing security options for the acl module
sub acl_security_form
{
print "<tr> <td><b>$text{'acl_nochange'}</b></td> <td>\n";
printf "<input type=radio name=nochange value=0 %s> $text{'yes'}\n",
$_[0]->{'nochange'} ? '' : 'checked';
printf "<input type=radio name=nochange value=1 %s> $text{'no'}</td>\n",
$_[0]->{'nochange'} ? 'checked' : '';
print "</tr>\n";
print "<tr> <td valign=top><b>$text{'acl_files'}</b></td> <td>\n";
print &ui_radio("files_def", $_[0]->{'files'} eq '*' ? 1 : 0,
[ [ 1, $text{'acl_all'} ], [ 0, $text{'acl_sel'} ] ]),"<br>\n";
print &ui_select("files", [ split(/\s+/, $_[0]->{'files'}) ],
[ map { [ $_, $text{$_."_title"}." ($_)" ] }
@shorewall_files ], 5, 1);
}
# acl_security_save(&options)
# Parse the form for security options for the acl module
sub acl_security_save
{
$_[0]->{'nochange'} = $in{'nochange'};
$_[0]->{'files'} = $in{'files_def'} ? "*"
: join(" ", split(/\0/, $in{'files'}));
}