summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_openvpn_server.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-08-10 15:30:20 -0400
committerjim-p <jimp@pfsense.org>2012-08-10 15:30:20 -0400
commit6d9b107442c111b7ef164cce6e7ecabd39622ddb (patch)
treecb6b9f2d81a191bf368c477e6783b8549ff107d9 /usr/local/www/vpn_openvpn_server.php
parent7d7b5a48551381e8d29a671595a1baab8008932c (diff)
downloadpfsense-6d9b107442c111b7ef164cce6e7ecabd39622ddb.zip
pfsense-6d9b107442c111b7ef164cce6e7ecabd39622ddb.tar.gz
Fixup openvpn shortcut bar status/control
Diffstat (limited to 'usr/local/www/vpn_openvpn_server.php')
-rw-r--r--usr/local/www/vpn_openvpn_server.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/usr/local/www/vpn_openvpn_server.php b/usr/local/www/vpn_openvpn_server.php
index de56415..6f20997 100644
--- a/usr/local/www/vpn_openvpn_server.php
+++ b/usr/local/www/vpn_openvpn_server.php
@@ -37,9 +37,6 @@
require("guiconfig.inc");
require_once("openvpn.inc");
-$pgtitle = array(gettext("OpenVPN"), gettext("Server"));
-$shortcut_section = "openvpn";
-
if (!is_array($config['openvpn']['openvpn-server']))
$config['openvpn']['openvpn-server'] = array();
@@ -72,6 +69,11 @@ $act = $_GET['act'];
if (isset($_POST['act']))
$act = $_POST['act'];
+if (isset($id) && $a_server[$id])
+ $vpnid = $a_server[$id]['vpnid'];
+else
+ $vpnid = 0;
+
if ($_GET['act'] == "del") {
if (!$a_server[$id]) {
@@ -100,7 +102,6 @@ if($_GET['act']=="new"){
if($_GET['act']=="edit"){
if (isset($id) && $a_server[$id]) {
-
$pconfig['disable'] = isset($a_server[$id]['disable']);
$pconfig['mode'] = $a_server[$id]['mode'];
$pconfig['protocol'] = $a_server[$id]['protocol'];
@@ -416,6 +417,8 @@ if ($_POST) {
if (!empty($pconfig['authmode']))
$pconfig['authmode'] = implode(",", $pconfig['authmode']);
}
+$pgtitle = array(gettext("OpenVPN"), gettext("Server"));
+$shortcut_section = "openvpn";
include("head.inc");
OpenPOWER on IntegriCloud