Commit 62c1f8ec authored by Franco Fichtner's avatar Franco Fichtner

plugins: don't need so many includes

(cherry picked from commit c9b70766)
parent 2cb7662e
...@@ -31,7 +31,6 @@ require_once("config.inc"); ...@@ -31,7 +31,6 @@ require_once("config.inc");
require_once("util.inc"); require_once("util.inc");
require_once("filter.inc"); require_once("filter.inc");
require_once("ipsec.inc"); require_once("ipsec.inc");
require_once("plugins.inc");
require_once("system.inc"); require_once("system.inc");
require_once("pfsense-utils.inc"); require_once("pfsense-utils.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
......
...@@ -32,7 +32,6 @@ require_once("config.inc"); ...@@ -32,7 +32,6 @@ require_once("config.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
require_once("openvpn.inc"); require_once("openvpn.inc");
require_once("util.inc"); require_once("util.inc");
require_once("plugins.inc");
require_once("ipsec.inc"); require_once("ipsec.inc");
require_once("filter.inc"); require_once("filter.inc");
require_once("rrd.inc"); require_once("rrd.inc");
......
...@@ -32,7 +32,6 @@ require_once("config.inc"); ...@@ -32,7 +32,6 @@ require_once("config.inc");
require_once("config.console.inc"); require_once("config.console.inc");
require_once("filter.inc"); require_once("filter.inc");
require_once("util.inc"); require_once("util.inc");
require_once("plugins.inc");
require_once("ipsec.inc"); require_once("ipsec.inc");
require_once("rrd.inc"); require_once("rrd.inc");
require_once("system.inc"); require_once("system.inc");
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
require_once("config.inc"); require_once("config.inc");
require_once("filter.inc"); require_once("filter.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
require_once('plugins.inc');
require_once('ipsec.inc'); require_once('ipsec.inc');
require_once('openvpn.inc'); require_once('openvpn.inc');
require_once("util.inc"); require_once("util.inc");
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
require_once("util.inc"); require_once("util.inc");
require_once("config.inc"); require_once("config.inc");
require_once("filter.inc"); require_once("filter.inc");
require_once("plugins.inc");
require_once('ipsec.inc'); require_once('ipsec.inc');
require_once("pfsense-utils.inc"); require_once("pfsense-utils.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
/* parse the configuration and include all functions used below */ /* parse the configuration and include all functions used below */
require_once("config.inc"); require_once("config.inc");
require_once("filter.inc"); require_once("filter.inc");
require_once("plugins.inc");
require_once('ipsec.inc'); require_once('ipsec.inc');
require_once("openvpn.inc"); require_once("openvpn.inc");
require_once("rrd.inc"); require_once("rrd.inc");
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
require_once("config.inc"); require_once("config.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
require_once("filter.inc"); require_once("filter.inc");
require_once("plugins.inc");
require_once('ipsec.inc'); require_once('ipsec.inc');
require_once("openvpn.inc"); require_once("openvpn.inc");
require_once("services.inc"); require_once("services.inc");
......
...@@ -31,7 +31,6 @@ require_once("config.inc"); ...@@ -31,7 +31,6 @@ require_once("config.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
require_once("openvpn.inc"); require_once("openvpn.inc");
require_once("filter.inc"); require_once("filter.inc");
require_once("plugins.inc");
require_once('ipsec.inc'); require_once('ipsec.inc');
require_once("util.inc"); require_once("util.inc");
require_once("system.inc"); require_once("system.inc");
......
...@@ -32,7 +32,6 @@ require_once("filter.inc"); ...@@ -32,7 +32,6 @@ require_once("filter.inc");
require_once("util.inc"); require_once("util.inc");
require_once("openvpn.inc"); require_once("openvpn.inc");
require_once('ipsec.inc'); require_once('ipsec.inc');
require_once("plugins.inc");
require_once("system.inc"); require_once("system.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
require_once("pfsense-utils.inc"); require_once("pfsense-utils.inc");
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
*/ */
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("plugins.inc");
require_once("ipsec.inc"); require_once("ipsec.inc");
require_once("services.inc"); require_once("services.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
*/ */
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("plugins.inc");
require_once("ipsec.inc"); require_once("ipsec.inc");
require_once("services.inc"); require_once("services.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
*/ */
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("plugins.inc");
require_once("ipsec.inc"); require_once("ipsec.inc");
require_once("services.inc"); require_once("services.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
*/ */
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("plugins.inc");
require_once("system.inc"); require_once("system.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
*/ */
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("plugins.inc");
require_once("filter.inc"); require_once("filter.inc");
require_once("rrd.inc"); require_once("rrd.inc");
require_once("system.inc"); require_once("system.inc");
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("filter.inc"); require_once("filter.inc");
require_once("plugins.inc");
require_once("rrd.inc"); require_once("rrd.inc");
require_once("system.inc"); require_once("system.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
......
...@@ -36,7 +36,6 @@ require_once("unbound.inc"); ...@@ -36,7 +36,6 @@ require_once("unbound.inc");
require_once("pfsense-utils.inc"); require_once("pfsense-utils.inc");
require_once("openvpn.inc"); require_once("openvpn.inc");
require_once("filter.inc"); require_once("filter.inc");
require_once("plugins.inc");
require_once("ipsec.inc"); require_once("ipsec.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
require_once("rrd.inc"); require_once("rrd.inc");
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("filter.inc"); require_once("filter.inc");
require_once("plugins.inc");
require_once("ipsec.inc"); require_once("ipsec.inc");
require_once("vslb.inc"); require_once("vslb.inc");
require_once("system.inc"); require_once("system.inc");
...@@ -39,7 +38,6 @@ require_once("pfsense-utils.inc"); ...@@ -39,7 +38,6 @@ require_once("pfsense-utils.inc");
require_once("services.inc"); require_once("services.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
$crypto_modules = array('glxsb' => gettext("AMD Geode LX Security Block"), $crypto_modules = array('glxsb' => gettext("AMD Geode LX Security Block"),
'aesni' => gettext("AES-NI CPU-based Acceleration") 'aesni' => gettext("AES-NI CPU-based Acceleration")
); );
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
*/ */
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("plugins.inc");
require_once("ipsec.inc"); require_once("ipsec.inc");
require_once("services.inc"); require_once("services.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("filter.inc"); require_once("filter.inc");
require_once("plugins.inc");
require_once("ipsec.inc"); require_once("ipsec.inc");
require_once("services.inc"); require_once("services.inc");
require_once("pfsense-utils.inc"); require_once("pfsense-utils.inc");
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
*/ */
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("plugins.inc");
require_once("ipsec.inc"); require_once("ipsec.inc");
require_once("filter.inc"); require_once("filter.inc");
require_once("services.inc"); require_once("services.inc");
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
require_once("interfaces.inc"); require_once("interfaces.inc");
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("plugins.inc");
require_once("ipsec.inc"); require_once("ipsec.inc");
require_once("services.inc"); require_once("services.inc");
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
require_once("interfaces.inc"); require_once("interfaces.inc");
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("filter.inc"); require_once("filter.inc");
require_once("plugins.inc");
require_once("ipsec.inc"); require_once("ipsec.inc");
require_once("services.inc"); require_once("services.inc");
require_once("pfsense-utils.inc"); require_once("pfsense-utils.inc");
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("filter.inc"); require_once("filter.inc");
require_once("ipsec.inc"); require_once("ipsec.inc");
require_once("plugins.inc");
require_once("services.inc"); require_once("services.inc");
require_once("pfsense-utils.inc"); require_once("pfsense-utils.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
require_once("ipsec.inc"); require_once("ipsec.inc");
require_once("plugins.inc");
require_once("services.inc"); require_once("services.inc");
/** /**
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("filter.inc"); require_once("filter.inc");
require_once("ipsec.inc"); require_once("ipsec.inc");
require_once("plugins.inc");
require_once("services.inc"); require_once("services.inc");
require_once("pfsense-utils.inc"); require_once("pfsense-utils.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
*/ */
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("plugins.inc"); require_once("plugins.inc.d/vpn.inc");
require_once("pfsense-utils.inc"); require_once("pfsense-utils.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
*/ */
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("plugins.inc"); require_once("plugins.inc.d/vpn.inc");
if (!isset($config['l2tp']['user'])) { if (!isset($config['l2tp']['user'])) {
$config['l2tp']['user'] = array(); $config['l2tp']['user'] = array();
......
...@@ -44,7 +44,7 @@ function l2tp_users_sort() ...@@ -44,7 +44,7 @@ function l2tp_users_sort()
} }
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("plugins.inc"); require_once("plugins.inc.d/vpn.inc");
$referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/vpn_l2tp_users.php'); $referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/vpn_l2tp_users.php');
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("filter.inc"); require_once("filter.inc");
require_once("plugins.inc"); require_once("plugins.inc.d/vpn.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
if (!is_array($config['pppoes'])) { if (!is_array($config['pppoes'])) {
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
*/ */
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("plugins.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
function vpn_pppoe_get_id() function vpn_pppoe_get_id()
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
require_once('guiconfig.inc'); require_once('guiconfig.inc');
require_once('interfaces.inc'); require_once('interfaces.inc');
require_once('filter.inc'); require_once('filter.inc');
require_once('plugins.inc'); require_once('plugins.inc.d/vpn.inc');
require_once("pfsense-utils.inc"); require_once("pfsense-utils.inc");
if (!is_array($config['pptpd']['radius'])) { if (!is_array($config['pptpd']['radius'])) {
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
*/ */
require_once('guiconfig.inc'); require_once('guiconfig.inc');
require_once('plugins.inc'); require_once('plugins.inc.d/vpn.inc');
if (!is_array($config['pptpd']['user'])) { if (!is_array($config['pptpd']['user'])) {
$config['pptpd']['user'] = array(); $config['pptpd']['user'] = array();
......
...@@ -34,17 +34,16 @@ function pptpusercmp($a, $b) ...@@ -34,17 +34,16 @@ function pptpusercmp($a, $b)
function pptpd_users_sort() function pptpd_users_sort()
{ {
global $config; global $config;
if (!is_array($config['ppptpd']['user'])) { if (!is_array($config['ppptpd']['user'])) {
return; return;
} }
usort($config['pptpd']['user'], "pptpusercmp"); usort($config['pptpd']['user'], "pptpusercmp");
} }
require_once('guiconfig.inc'); require_once('guiconfig.inc');
require_once('plugins.inc');
if (!is_array($config['pptpd']['user'])) { if (!is_array($config['pptpd']['user'])) {
$config['pptpd']['user'] = array(); $config['pptpd']['user'] = array();
......
...@@ -33,7 +33,6 @@ $nocsrf = true; ...@@ -33,7 +33,6 @@ $nocsrf = true;
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("services.inc"); require_once("services.inc");
require_once("plugins.inc");
require_once("ipsec.inc"); require_once("ipsec.inc");
require_once("widgets/include/services_status.inc"); require_once("widgets/include/services_status.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
......
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