Commit f79fac8f authored by Franco Fichtner's avatar Franco Fichtner

src: first shuffling for splitting off plugins from core

parent 7b17ac34
<?php
/*
* Copyright (C) 2016 Franco Fichtner <franco@opnsense.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
* OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
foreach (glob('/usr/local/etc/inc/plugins.inc.d/*.inc') as $plugin) {
require_once $plugin;
}
......@@ -150,7 +150,7 @@ require_once("vslb.inc");
echo ".";
require_once("filter.inc");
echo ".";
require_once("vpn.inc");
require_once("plugins.inc");
echo ".";
require_once("openvpn.inc");
echo ".";
......
......@@ -30,11 +30,10 @@
require_once("config.inc");
require_once("util.inc");
require_once("filter.inc");
require_once("vpn.inc");
require_once("plugins.inc");
require_once("system.inc");
require_once("pfsense-utils.inc");
require_once("interfaces.inc");
require_once("services.inc");
filter_configure_sync();
......@@ -32,7 +32,7 @@ require_once("config.inc");
require_once("interfaces.inc");
require_once("openvpn.inc");
require_once("util.inc");
require_once("vpn.inc");
require_once("plugins.inc");
require_once("filter.inc");
require_once("rrd.inc");
require_once("util.inc");
......
......@@ -32,7 +32,7 @@ require_once("config.inc");
require_once("config.console.inc");
require_once("filter.inc");
require_once("util.inc");
require_once("vpn.inc");
require_once("plugins.inc");
require_once("rrd.inc");
require_once("system.inc");
require_once("services.inc");
......
......@@ -31,6 +31,7 @@
require_once("config.inc");
require_once("filter.inc");
require_once("interfaces.inc");
require_once('plugins.inc');
require_once('openvpn.inc');
require_once("util.inc");
require_once("system.inc");
......@@ -72,7 +73,6 @@ function handle_argument_group($iface, $argument2) {
case "start":
log_error("DEVD Ethernet attached event for {$iface}");
log_error("HOTPLUG: Configuring interface {$iface}");
require_once("vpn.inc");
// Do not try to readd to bridge otherwise em(4) has problems
interface_configure($iface, true, true);
break;
......
......@@ -32,7 +32,7 @@
require_once("util.inc");
require_once("config.inc");
require_once("filter.inc");
require_once("vpn.inc");
require_once("plugins.inc");
require_once("pfsense-utils.inc");
require_once("interfaces.inc");
......
......@@ -31,7 +31,7 @@
/* parse the configuration and include all functions used below */
require_once("config.inc");
require_once("filter.inc");
require_once("vpn.inc");
require_once("plugins.inc");
require_once("openvpn.inc");
require_once("rrd.inc");
require_once("util.inc");
......
......@@ -32,7 +32,7 @@
require_once("config.inc");
require_once("interfaces.inc");
require_once("filter.inc");
require_once("vpn.inc");
require_once("plugins.inc");
require_once("openvpn.inc");
require_once("services.inc");
require_once("rrd.inc");
......
......@@ -31,7 +31,7 @@ require_once("config.inc");
require_once("interfaces.inc");
require_once("openvpn.inc");
require_once("filter.inc");
require_once("vpn.inc");
require_once("plugins.inc");
require_once("util.inc");
require_once("system.inc");
require_once("pfsense-utils.inc");
......
......@@ -31,10 +31,9 @@ require_once("config.inc");
require_once("filter.inc");
require_once("util.inc");
require_once("openvpn.inc");
require_once("vpn.inc");
require_once("plugins.inc");
require_once("system.inc");
require_once("interfaces.inc");
require_once("openvpn.inc");
require_once("pfsense-utils.inc");
require_once("services.inc");
require_once("unbound.inc");
......
......@@ -28,7 +28,7 @@
*/
require_once("guiconfig.inc");
require_once("vpn.inc");
require_once("plugins.inc");
require_once("services.inc");
require_once("interfaces.inc");
......
......@@ -29,7 +29,7 @@
*/
require_once("guiconfig.inc");
require_once("vpn.inc");
require_once("plugins.inc");
require_once("services.inc");
require_once("interfaces.inc");
......
......@@ -29,7 +29,7 @@
*/
require_once("guiconfig.inc");
require_once("vpn.inc");
require_once("plugins.inc");
require_once("services.inc");
require_once("interfaces.inc");
......
......@@ -28,7 +28,7 @@
*/
require_once("guiconfig.inc");
require_once("vpn.inc");
require_once("plugins.inc");
require_once("system.inc");
require_once("interfaces.inc");
......
......@@ -32,10 +32,9 @@
*/
require_once("guiconfig.inc");
require_once("vpn.inc");
require_once("plugins.inc");
require_once("filter.inc");
require_once("rrd.inc");
require_once("vpn.inc");
require_once("system.inc");
require_once("interfaces.inc");
require_once("openvpn.inc");
......
......@@ -30,7 +30,7 @@
require_once("guiconfig.inc");
require_once("filter.inc");
require_once("vpn.inc");
require_once("plugins.inc");
require_once("rrd.inc");
require_once("system.inc");
require_once("interfaces.inc");
......
......@@ -36,7 +36,7 @@ require_once("unbound.inc");
require_once("pfsense-utils.inc");
require_once("openvpn.inc");
require_once("filter.inc");
require_once("vpn.inc");
require_once("plugins.inc");
require_once("interfaces.inc");
require_once("rrd.inc");
......
......@@ -31,7 +31,7 @@
require_once("guiconfig.inc");
require_once("filter.inc");
require_once("vpn.inc");
require_once("plugins.inc");
require_once("vslb.inc");
require_once("system.inc");
require_once("pfsense-utils.inc");
......
......@@ -28,7 +28,7 @@
*/
require_once("guiconfig.inc");
require_once("vpn.inc");
require_once("plugins.inc");
require_once("services.inc");
require_once("interfaces.inc");
......
......@@ -30,7 +30,7 @@
require_once("guiconfig.inc");
require_once("filter.inc");
require_once("vpn.inc");
require_once("plugins.inc");
require_once("services.inc");
require_once("pfsense-utils.inc");
require_once("interfaces.inc");
......
......@@ -28,7 +28,7 @@
*/
require_once("guiconfig.inc");
require_once("vpn.inc");
require_once("plugins.inc");
require_once("filter.inc");
require_once("services.inc");
require_once("pfsense-utils.inc");
......
......@@ -29,7 +29,7 @@
require_once("interfaces.inc");
require_once("guiconfig.inc");
require_once("vpn.inc");
require_once("plugins.inc");
require_once("services.inc");
if (!isset($config['ipsec']) || !is_array($config['ipsec'])) {
......
......@@ -30,7 +30,7 @@
require_once("interfaces.inc");
require_once("guiconfig.inc");
require_once("filter.inc");
require_once("vpn.inc");
require_once("plugins.inc");
require_once("services.inc");
require_once("pfsense-utils.inc");
......
......@@ -31,7 +31,7 @@
require_once("guiconfig.inc");
require_once("filter.inc");
require_once("vpn.inc");
require_once("plugins.inc");
require_once("services.inc");
require_once("pfsense-utils.inc");
require_once("interfaces.inc");
......
......@@ -30,7 +30,7 @@
require_once("guiconfig.inc");
require_once("interfaces.inc");
require_once("vpn.inc");
require_once("plugins.inc");
require_once("services.inc");
/**
......
......@@ -29,7 +29,7 @@
require_once("guiconfig.inc");
require_once("filter.inc");
require_once("vpn.inc");
require_once("plugins.inc");
require_once("services.inc");
require_once("pfsense-utils.inc");
require_once("interfaces.inc");
......
......@@ -28,7 +28,7 @@
*/
require_once("guiconfig.inc");
require_once("vpn.inc");
require_once("plugins.inc");
require_once("pfsense-utils.inc");
require_once("interfaces.inc");
......
......@@ -28,7 +28,7 @@
*/
require_once("guiconfig.inc");
require_once("vpn.inc");
require_once("plugins.inc");
if (!isset($config['l2tp']['user'])) {
$config['l2tp']['user'] = array();
......
......@@ -44,7 +44,7 @@ function l2tp_users_sort()
}
require_once("guiconfig.inc");
require_once("vpn.inc");
require_once("plugins.inc");
$referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/vpn_l2tp_users.php');
......
......@@ -29,7 +29,7 @@
require_once("guiconfig.inc");
require_once("filter.inc");
require_once("vpn.inc");
require_once("plugins.inc");
require_once("interfaces.inc");
if (!is_array($config['pppoes'])) {
......
......@@ -29,7 +29,7 @@
*/
require_once("guiconfig.inc");
require_once("vpn.inc");
require_once("plugins.inc");
require_once("interfaces.inc");
function vpn_pppoe_get_id()
......
......@@ -30,7 +30,7 @@
require_once('guiconfig.inc');
require_once('interfaces.inc');
require_once('filter.inc');
require_once('vpn.inc');
require_once('plugins.inc');
require_once("pfsense-utils.inc");
if (!is_array($config['pptpd']['radius'])) {
......
......@@ -28,7 +28,7 @@
*/
require_once('guiconfig.inc');
require_once('vpn.inc');
require_once('plugins.inc');
if (!is_array($config['pptpd']['user'])) {
$config['pptpd']['user'] = array();
......
......@@ -44,7 +44,7 @@ function pptpd_users_sort()
}
require_once('guiconfig.inc');
require_once('vpn.inc');
require_once('plugins.inc');
if (!is_array($config['pptpd']['user'])) {
$config['pptpd']['user'] = array();
......
......@@ -33,7 +33,7 @@ $nocsrf = true;
require_once("guiconfig.inc");
require_once("services.inc");
require_once("vpn.inc");
require_once("plugins.inc");
require_once("widgets/include/services_status.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