include firewall-lib only for unified *.pl

This commit is contained in:
Kay Marquardt (Gnadelwartz)
2017-07-01 12:23:14 +02:00
parent 4f111f747e
commit adcfe12dba
6 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
do 'firewall4-lib.pl';
do 'firewall-lib.pl';
@acl_features = ("newchain", "delchain", "policy", "apply", "unapply", "bootup", "setup", "cluster");
# acl_security_form(&options)

View File

@ -1,5 +1,5 @@
do 'firewall4-lib.pl';
do 'firewall-lib.pl';
# backup_config_files()
# Returns files and directories that can be backed up

View File

@ -1,5 +1,5 @@
do 'firewall4-lib.pl';
do 'firewall-lib.pl';
sub cgi_args
{

View File

@ -1,6 +1,6 @@
# install_check.pl
do 'firewall4-lib.pl';
do 'firewall-lib.pl';
# is_installed(mode)
# For mode 1, returns 2 if the server is installed and configured for use by

View File

@ -1,7 +1,7 @@
# log_parser.pl
# Functions for parsing this module's logs
do 'firewall4-lib.pl';
do 'firewall-lib.pl';
# parse_webmin_log(user, script, action, type, object, &params)
# Converts logged information from this module into human-readable form

View File

@ -1,4 +1,4 @@
#!/usr/local/bin/perl
#!/usr/bin/perl
# Open some ports on the firewall. Exit statuses are :
# 0 - Nothing needed to be done
# 1 - Given ports were opened up
@ -13,7 +13,7 @@ $ENV{'WEBMIN_VAR'} = "/var/webmin";
if ($0 =~ /^(.*\/)[^\/]+$/) {
chdir($1);
}
require './firewall4-lib.pl';
require './firewall-lib.pl';
if ($module_name ne 'firewall') {
print STDERR "Command must be run with full path\n";
exit(5);