Commit ef63bc68 authored by Franco Fichtner's avatar Franco Fichtner

logs: always load services.inc, loading plugins.inc in template too

parent 88b047c1
......@@ -9,7 +9,6 @@ function clear_hook()
services_dhcpd_configure();
}
require_once 'services.inc';
$service_hook = 'dhcpd';
require_once 'diag_logs_template.inc';
......@@ -3,7 +3,6 @@
$logfile = '/var/log/gateways.log';
$logclog = true;
require_once 'services.inc';
$service_hook = 'apinger';
require_once 'diag_logs_template.inc';
......@@ -3,7 +3,6 @@
$logfile = '/var/log/ipsec.log';
$logclog = true;
require_once 'services.inc';
$service_hook = 'ipsec';
require_once 'diag_logs_template.inc';
......@@ -3,7 +3,6 @@
$logfile = '/var/log/ntpd.log';
$logclog = true;
require_once 'services.inc';
$service_hook = 'ntpd';
require_once 'diag_logs_template.inc';
......@@ -13,7 +13,6 @@ $logpills[] = array(gettext('Cache'), true, '/diag_logs_proxy.php?type=cache');
$logpills[] = array(gettext('Access'), false, '/diag_logs_proxy.php?type=access');
$logpills[] = array(gettext('Store'), false, '/diag_logs_proxy.php?type=store');
require_once 'services.inc';
$service_hook = 'squid';
require_once 'diag_logs_template.inc';
......@@ -3,7 +3,6 @@
$logfile = '/var/log/resolver.log';
$logclog = true;
require_once 'services.inc';
$service_hook = array('dnsmasq', 'unbound');
require_once 'diag_logs_template.inc';
......@@ -33,6 +33,7 @@ require_once("guiconfig.inc");
require_once("system.inc");
require_once("interfaces.inc");
require_once("plugins.inc");
require_once 'services.inc';
/* expects $logfile to point to the system path */
/* expects $logclog to be true or false */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment