mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
status: fix include in services page
This commit is contained in:
parent
751f365fa4
commit
8edde1ef8b
@ -38,16 +38,18 @@ require_once("pfsense-utils.inc");
|
||||
require_once("openvpn.inc");
|
||||
require_once("vpn.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);
|
||||
openvpn_restart($mode, $settings);
|
||||
}
|
||||
|
||||
|
||||
$service_name = '';
|
||||
if (isset($_GET['service']))
|
||||
if (isset($_GET['service'])) {
|
||||
$service_name = htmlspecialchars($_GET['service']);
|
||||
}
|
||||
|
||||
if (!empty($service_name)) {
|
||||
switch ($_GET['mode']) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user