Commit 46c8c2ab authored by Franco Fichtner's avatar Franco Fichtner

src: move ipsec.inc require to top pages

For now plugins.inc and ipsec.inc will coexist on pages that
may need only one or none to avoid unefined function errors.
This will be pruned after investigating the contents of both
files...

(cherry picked from commit d7df9ecf)
parent 4613e5a7
...@@ -29,9 +29,6 @@ ...@@ -29,9 +29,6 @@
POSSIBILITY OF SUCH DAMAGE. POSSIBILITY OF SUCH DAMAGE.
*/ */
require_once("ipsec.inc");
/* include all configuration functions */ /* include all configuration functions */
function vpn_ipsec_convert_to_modp($index) function vpn_ipsec_convert_to_modp($index)
{ {
......
...@@ -152,6 +152,8 @@ require_once("filter.inc"); ...@@ -152,6 +152,8 @@ require_once("filter.inc");
echo "."; echo ".";
require_once("plugins.inc"); require_once("plugins.inc");
echo "."; echo ".";
require_once("ipsec.inc");
echo ".";
require_once("openvpn.inc"); require_once("openvpn.inc");
echo "."; echo ".";
require_once("rrd.inc"); require_once("rrd.inc");
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
require_once("config.inc"); 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("plugins.inc"); require_once("plugins.inc");
require_once("system.inc"); require_once("system.inc");
require_once("pfsense-utils.inc"); require_once("pfsense-utils.inc");
......
...@@ -33,6 +33,7 @@ require_once("interfaces.inc"); ...@@ -33,6 +33,7 @@ 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("plugins.inc");
require_once("ipsec.inc");
require_once("filter.inc"); require_once("filter.inc");
require_once("rrd.inc"); require_once("rrd.inc");
require_once("util.inc"); require_once("util.inc");
......
...@@ -33,6 +33,7 @@ require_once("config.console.inc"); ...@@ -33,6 +33,7 @@ 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("plugins.inc");
require_once("ipsec.inc");
require_once("rrd.inc"); require_once("rrd.inc");
require_once("system.inc"); require_once("system.inc");
require_once("services.inc"); require_once("services.inc");
......
...@@ -32,6 +32,7 @@ require_once("config.inc"); ...@@ -32,6 +32,7 @@ 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('plugins.inc');
require_once('ipsec.inc');
require_once('openvpn.inc'); require_once('openvpn.inc');
require_once("util.inc"); require_once("util.inc");
require_once("system.inc"); require_once("system.inc");
......
...@@ -33,6 +33,7 @@ require_once("util.inc"); ...@@ -33,6 +33,7 @@ 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("plugins.inc");
require_once('ipsec.inc');
require_once("pfsense-utils.inc"); require_once("pfsense-utils.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
require_once("config.inc"); require_once("config.inc");
require_once("filter.inc"); require_once("filter.inc");
require_once("plugins.inc"); require_once("plugins.inc");
require_once('ipsec.inc');
require_once("openvpn.inc"); require_once("openvpn.inc");
require_once("rrd.inc"); require_once("rrd.inc");
require_once("util.inc"); require_once("util.inc");
......
...@@ -33,6 +33,7 @@ require_once("config.inc"); ...@@ -33,6 +33,7 @@ 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("plugins.inc");
require_once('ipsec.inc');
require_once("openvpn.inc"); require_once("openvpn.inc");
require_once("services.inc"); require_once("services.inc");
require_once("rrd.inc"); require_once("rrd.inc");
......
...@@ -32,6 +32,7 @@ require_once("interfaces.inc"); ...@@ -32,6 +32,7 @@ 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("plugins.inc");
require_once('ipsec.inc');
require_once("util.inc"); require_once("util.inc");
require_once("system.inc"); require_once("system.inc");
require_once("pfsense-utils.inc"); require_once("pfsense-utils.inc");
......
...@@ -31,6 +31,7 @@ require_once("config.inc"); ...@@ -31,6 +31,7 @@ require_once("config.inc");
require_once("filter.inc"); 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("plugins.inc"); require_once("plugins.inc");
require_once("system.inc"); require_once("system.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("plugins.inc"); require_once("plugins.inc");
require_once("ipsec.inc");
require_once("services.inc"); require_once("services.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("plugins.inc"); require_once("plugins.inc");
require_once("ipsec.inc");
require_once("services.inc"); require_once("services.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("plugins.inc"); require_once("plugins.inc");
require_once("ipsec.inc");
require_once("services.inc"); require_once("services.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
......
...@@ -37,6 +37,7 @@ require_once("filter.inc"); ...@@ -37,6 +37,7 @@ require_once("filter.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");
require_once("ipsec.inc");
require_once("openvpn.inc"); require_once("openvpn.inc");
require_once("pfsense-utils.inc"); require_once("pfsense-utils.inc");
require_once("services.inc"); require_once("services.inc");
......
...@@ -34,6 +34,7 @@ require_once("plugins.inc"); ...@@ -34,6 +34,7 @@ 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");
require_once("ipsec.inc");
require_once("openvpn.inc"); require_once("openvpn.inc");
require_once("pfsense-utils.inc"); require_once("pfsense-utils.inc");
require_once("services.inc"); require_once("services.inc");
......
...@@ -37,6 +37,7 @@ require_once("pfsense-utils.inc"); ...@@ -37,6 +37,7 @@ 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("plugins.inc");
require_once("ipsec.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
require_once("rrd.inc"); require_once("rrd.inc");
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,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");
require_once("ipsec.inc");
require_once("vslb.inc"); require_once("vslb.inc");
require_once("system.inc"); require_once("system.inc");
require_once("pfsense-utils.inc"); require_once("pfsense-utils.inc");
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("plugins.inc"); require_once("plugins.inc");
require_once("ipsec.inc");
require_once("services.inc"); require_once("services.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,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");
require_once("ipsec.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");
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("plugins.inc"); require_once("plugins.inc");
require_once("ipsec.inc");
require_once("filter.inc"); require_once("filter.inc");
require_once("services.inc"); require_once("services.inc");
require_once("pfsense-utils.inc"); require_once("pfsense-utils.inc");
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
require_once("interfaces.inc"); require_once("interfaces.inc");
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("plugins.inc"); require_once("plugins.inc");
require_once("ipsec.inc");
require_once("services.inc"); require_once("services.inc");
if (!isset($config['ipsec']) || !is_array($config['ipsec'])) { if (!isset($config['ipsec']) || !is_array($config['ipsec'])) {
......
...@@ -31,6 +31,7 @@ require_once("interfaces.inc"); ...@@ -31,6 +31,7 @@ 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("plugins.inc");
require_once("ipsec.inc");
require_once("services.inc"); require_once("services.inc");
require_once("pfsense-utils.inc"); require_once("pfsense-utils.inc");
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("filter.inc"); require_once("filter.inc");
require_once("ipsec.inc");
require_once("plugins.inc"); require_once("plugins.inc");
require_once("services.inc"); require_once("services.inc");
require_once("pfsense-utils.inc"); require_once("pfsense-utils.inc");
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
require_once("ipsec.inc");
require_once("plugins.inc"); require_once("plugins.inc");
require_once("services.inc"); require_once("services.inc");
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("filter.inc"); require_once("filter.inc");
require_once("ipsec.inc");
require_once("plugins.inc"); require_once("plugins.inc");
require_once("services.inc"); require_once("services.inc");
require_once("pfsense-utils.inc"); require_once("pfsense-utils.inc");
......
...@@ -34,6 +34,7 @@ $nocsrf = true; ...@@ -34,6 +34,7 @@ $nocsrf = true;
require_once("guiconfig.inc"); require_once("guiconfig.inc");
require_once("services.inc"); require_once("services.inc");
require_once("plugins.inc"); require_once("plugins.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