if (!defined($services_file)) {
do 'itsecur-lib.pl';
}
# acl_security_form(&options)
# Output HTML for editing security options for the acl module
sub acl_security_form
{
# Work out which features can be edited and which can be read
local (@edit, @read);
if (defined($_[0]->{'edit'})) {
if ($_[0]->{'edit'}) {
@edit = @read = split(/\s+/, $_[0]->{'features'});
}
else {
@read = split(/\s+/, $_[0]->{'features'});
}
}
else {
@edit = split(/\s+/, $_[0]->{'features'});
@read = split(/\s+/, $_[0]->{'rfeatures'});
}
local $w;
foreach $w ([ \@edit, "features", "all" ],
[ \@read, "rfeatures", "rall" ]) {
local %can = map { $_, 1 } @{$w->[0]};
print "