mirror of
https://github.com/webmin/webmin.git
synced 2025-07-21 23:40:34 +00:00
include firewall-lib only for unified *.pl
This commit is contained in:
@ -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)
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
do 'firewall4-lib.pl';
|
||||
do 'firewall-lib.pl';
|
||||
|
||||
# backup_config_files()
|
||||
# Returns files and directories that can be backed up
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
do 'firewall4-lib.pl';
|
||||
do 'firewall-lib.pl';
|
||||
|
||||
sub cgi_args
|
||||
{
|
||||
|
@ -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
|
||||
|
@ -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, ¶ms)
|
||||
# Converts logged information from this module into human-readable form
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user