summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/vpn_openvpn_client.php10
-rw-r--r--src/usr/local/www/vpn_openvpn_csc.php10
-rw-r--r--src/usr/local/www/vpn_openvpn_server.php4
3 files changed, 18 insertions, 6 deletions
diff --git a/src/usr/local/www/vpn_openvpn_client.php b/src/usr/local/www/vpn_openvpn_client.php
index bc60d6c..e5ace28 100644
--- a/src/usr/local/www/vpn_openvpn_client.php
+++ b/src/usr/local/www/vpn_openvpn_client.php
@@ -67,9 +67,6 @@ require_once("pkg-utils.inc");
global $openvpn_topologies;
-$pgtitle = array(gettext("VPN"), gettext("OpenVPN"), gettext("Clients"));
-$shortcut_section = "openvpn";
-
if (!is_array($config['openvpn']['openvpn-client'])) {
$config['openvpn']['openvpn-client'] = array();
}
@@ -426,6 +423,13 @@ if ($_POST) {
}
}
+$pgtitle = array(gettext("VPN"), gettext("OpenVPN"), gettext("Clients"));
+
+if ($act=="new" || $act=="edit") {
+ $pgtitle[] = gettext('Edit');
+}
+$shortcut_section = "openvpn";
+
include("head.inc");
if (!$savemsg) {
diff --git a/src/usr/local/www/vpn_openvpn_csc.php b/src/usr/local/www/vpn_openvpn_csc.php
index 9df3510..0256a9e 100644
--- a/src/usr/local/www/vpn_openvpn_csc.php
+++ b/src/usr/local/www/vpn_openvpn_csc.php
@@ -67,9 +67,6 @@ require_once("pkg-utils.inc");
global $openvpn_tls_server_modes;
-$pgtitle = array(gettext("VPN"), gettext("OpenVPN"), gettext("Client Specific Overrides"));
-$shortcut_section = "openvpn";
-
if (!is_array($config['openvpn']['openvpn-csc'])) {
$config['openvpn']['openvpn-csc'] = array();
}
@@ -308,6 +305,13 @@ if ($_POST) {
}
}
+$pgtitle = array(gettext("VPN"), gettext("OpenVPN"), gettext("Client Specific Overrides"));
+
+if ($act=="new" || $act=="edit") {
+ $pgtitle[] = gettext('Edit');
+}
+$shortcut_section = "openvpn";
+
include("head.inc");
if ($input_errors) {
diff --git a/src/usr/local/www/vpn_openvpn_server.php b/src/usr/local/www/vpn_openvpn_server.php
index 23731d1..844dc5a 100644
--- a/src/usr/local/www/vpn_openvpn_server.php
+++ b/src/usr/local/www/vpn_openvpn_server.php
@@ -590,6 +590,10 @@ if ($_POST) {
}
$pgtitle = array(gettext("VPN"), gettext("OpenVPN"), gettext("Servers"));
+
+if ($act=="new" || $act=="edit") {
+ $pgtitle[] = gettext('Edit');
+}
$shortcut_section = "openvpn";
include("head.inc");
OpenPOWER on IntegriCloud