require 'init-lib.pl'; # acl_security_form(&options) # Output HTML for editing security options for the init module sub acl_security_form { if ($config{'local_script'}) { print " $text{'acl_script'} \n"; } else { print " $text{'acl_actions'} \n"; } printf " $text{'yes'}\n", $_[0]->{'bootup'} == 1 ? "checked" : ""; if (!$config{'local_script'}) { printf " $text{'acl_runonly'}\n", $_[0]->{'bootup'} == 2 ? "checked" : ""; } printf " $text{'no'} \n", $_[0]->{'bootup'} == 0 ? "checked" : ""; print " $text{'acl_reboot'} \n"; printf " $text{'yes'}\n", $_[0]->{'reboot'} ? "checked" : ""; printf " $text{'no'}\n", $_[0]->{'reboot'} ? "" : "checked"; print "$text{'acl_shutdown'} \n"; printf " $text{'yes'}\n", $_[0]->{'shutdown'} ? "checked" : ""; printf " $text{'no'} \n", $_[0]->{'shutdown'} ? "" : "checked"; } # acl_security_save(&options) # Parse the form for security options for the init module sub acl_security_save { $_[0]->{'bootup'} = $in{'bootup'}; $_[0]->{'reboot'} = $in{'reboot'}; $_[0]->{'shutdown'} = $in{'shutdown'}; }