Commit 7b17ac34 authored by Franco Fichtner's avatar Franco Fichtner

openvn: remove service control from pages

This doesn't work out at all for the fact that the control picks
up the first instance it finds, either client or server, but not
clearly stating so.  That's why there is a status page with all
the services for clients and servers...
parent 918df6ea
......@@ -67,8 +67,6 @@ function kill_client($port, $remipp)
return $killed;
}
$service_hook = 'openvpn';
if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$vpnid = 0;
} elseif ($_SERVER['REQUEST_METHOD'] === 'POST') {
......
......@@ -33,8 +33,6 @@ require_once("services.inc");
require_once("interfaces.inc");
require_once('pfsense-utils.inc');
$service_hook = 'openvpn';
if (!isset($config['openvpn']['openvpn-client'])) {
$config['openvpn']['openvpn-client'] = array();
}
......
......@@ -33,8 +33,6 @@ require_once("services.inc");
require_once("interfaces.inc");
require_once('pfsense-utils.inc');
$service_hook = 'openvpn';
// define all fields used in this form
$all_form_fields = "custom_options,disable,common_name,block,description
,tunnel_network,local_network,local_networkv6,remote_network
......
......@@ -37,8 +37,6 @@ require_once("openvpn-client-export.inc");
global $current_openvpn_version, $current_openvpn_version_rev;
$service_hook = 'openvpn';
$ras_server = array();
if (isset($config['openvpn']['openvpn-server'])) {
// collect info
......
......@@ -35,8 +35,6 @@ require_once("pfsense-utils.inc");
require_once("interfaces.inc");
require_once("openvpn-client-export.inc");
$service_hook = 'openvpn';
$ras_server = array();
if (isset($config['openvpn']['openvpn-server'])) {
foreach ($config['openvpn']['openvpn-server'] as $sindex => $server) {
......
......@@ -411,8 +411,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
}
}
$service_hook = 'openvpn';
include("head.inc");
$main_buttons = array(
......
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