Commit 8edde1ef authored by Franco Fichtner's avatar Franco Fichtner

status: fix include in services page

parent 751f365f
...@@ -38,16 +38,18 @@ require_once("pfsense-utils.inc"); ...@@ -38,16 +38,18 @@ require_once("pfsense-utils.inc");
require_once("openvpn.inc"); require_once("openvpn.inc");
require_once("vpn.inc"); require_once("vpn.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
require_once("rrd.inc");
function openvpn_restart_by_vpnid($mode, $vpnid) { function openvpn_restart_by_vpnid($mode, $vpnid)
{
$settings = openvpn_get_settings($mode, $vpnid); $settings = openvpn_get_settings($mode, $vpnid);
openvpn_restart($mode, $settings); openvpn_restart($mode, $settings);
} }
$service_name = ''; $service_name = '';
if (isset($_GET['service'])) if (isset($_GET['service'])) {
$service_name = htmlspecialchars($_GET['service']); $service_name = htmlspecialchars($_GET['service']);
}
if (!empty($service_name)) { if (!empty($service_name)) {
switch ($_GET['mode']) { switch ($_GET['mode']) {
......
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