summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authork-paulius <k.dash.paulius@gmail.com>2016-02-12 22:00:01 -0600
committerk-paulius <k.dash.paulius@gmail.com>2016-02-12 22:00:01 -0600
commit30f9aade6ec7571d359f453fc5c86c8261bc0748 (patch)
treecfcbc86504a24c583aa9038e158b1a690c910c65
parent19f21e563bbff85d065755f2506f10b4bb848775 (diff)
downloadpfsense-30f9aade6ec7571d359f453fc5c86c8261bc0748.zip
pfsense-30f9aade6ec7571d359f453fc5c86c8261bc0748.tar.gz
Show zone name in the breadcrumb of MAC, IP, hostname and voucher edit pages.
-rw-r--r--src/usr/local/www/services_captiveportal_hostname_edit.php6
-rw-r--r--src/usr/local/www/services_captiveportal_ip_edit.php6
-rw-r--r--src/usr/local/www/services_captiveportal_mac_edit.php6
-rw-r--r--src/usr/local/www/services_captiveportal_vouchers_edit.php6
4 files changed, 12 insertions, 12 deletions
diff --git a/src/usr/local/www/services_captiveportal_hostname_edit.php b/src/usr/local/www/services_captiveportal_hostname_edit.php
index 71fef4f..fb7b9f4 100644
--- a/src/usr/local/www/services_captiveportal_hostname_edit.php
+++ b/src/usr/local/www/services_captiveportal_hostname_edit.php
@@ -77,9 +77,6 @@ require("captiveportal.inc");
global $cpzone, $cpzoneid;
-$pgtitle = array(gettext("Services"), gettext("Captive Portal"), gettext("Edit allowed Hostname"));
-$shortcut_section = "captiveportal";
-
$cpzone = $_GET['zone'];
if (isset($_POST['zone'])) {
$cpzone = $_POST['zone'];
@@ -96,6 +93,9 @@ if (!is_array($config['captiveportal'])) {
}
$a_cp =& $config['captiveportal'];
+$pgtitle = array(gettext("Services"), gettext("Captive Portal"), sprintf(gettext("Zone: %s"), $a_cp[$cpzone]['zone']), gettext("Allowed Hostnames"), gettext("Edit"));
+$shortcut_section = "captiveportal";
+
if (is_numericint($_GET['id'])) {
$id = $_GET['id'];
}
diff --git a/src/usr/local/www/services_captiveportal_ip_edit.php b/src/usr/local/www/services_captiveportal_ip_edit.php
index 5daffa4..cac3369 100644
--- a/src/usr/local/www/services_captiveportal_ip_edit.php
+++ b/src/usr/local/www/services_captiveportal_ip_edit.php
@@ -80,9 +80,6 @@ require_once("filter.inc");
require("shaper.inc");
require("captiveportal.inc");
-$pgtitle = array(gettext("Services"), gettext("Captive Portal"), gettext("Edit allowed IP address"));
-$shortcut_section = "captiveportal";
-
$cpzone = $_GET['zone'];
if (isset($_POST['zone'])) {
$cpzone = $_POST['zone'];
@@ -98,6 +95,9 @@ if (!is_array($config['captiveportal'])) {
}
$a_cp =& $config['captiveportal'];
+$pgtitle = array(gettext("Services"), gettext("Captive Portal"), sprintf(gettext("Zone: %s"), $a_cp[$cpzone]['zone']), gettext("Allowed IP Addresses"), gettext("Edit"));
+$shortcut_section = "captiveportal";
+
if (is_numericint($_GET['id'])) {
$id = $_GET['id'];
}
diff --git a/src/usr/local/www/services_captiveportal_mac_edit.php b/src/usr/local/www/services_captiveportal_mac_edit.php
index 22bb4c5..1d8e4fe 100644
--- a/src/usr/local/www/services_captiveportal_mac_edit.php
+++ b/src/usr/local/www/services_captiveportal_mac_edit.php
@@ -83,9 +83,6 @@ require("captiveportal.inc");
global $cpzone;
global $cpzoneid;
-$pgtitle = array(gettext("Services"), gettext("Captive Portal"), gettext("Edit MAC address rules"));
-$shortcut_section = "captiveportal";
-
$cpzone = $_GET['zone'];
if (isset($_POST['zone'])) {
$cpzone = $_POST['zone'];
@@ -101,6 +98,9 @@ if (!is_array($config['captiveportal'])) {
}
$a_cp =& $config['captiveportal'];
+$pgtitle = array(gettext("Services"), gettext("Captive Portal"), sprintf(gettext("Zone: %s"), $a_cp[$cpzone]['zone']), gettext("MAC"), gettext("Edit"));
+$shortcut_section = "captiveportal";
+
if (is_numericint($_GET['id'])) {
$id = $_GET['id'];
}
diff --git a/src/usr/local/www/services_captiveportal_vouchers_edit.php b/src/usr/local/www/services_captiveportal_vouchers_edit.php
index 2290806..5bb8231 100644
--- a/src/usr/local/www/services_captiveportal_vouchers_edit.php
+++ b/src/usr/local/www/services_captiveportal_vouchers_edit.php
@@ -68,9 +68,6 @@ require("shaper.inc");
require("captiveportal.inc");
require_once("voucher.inc");
-$pgtitle = array(gettext("Services"), gettext("Captive Portal"), gettext("Edit Voucher Rolls"));
-$shortcut_section = "captiveportal-vouchers";
-
$cpzone = $_GET['zone'];
if (isset($_POST['zone'])) {
$cpzone = $_POST['zone'];
@@ -86,6 +83,9 @@ if (!is_array($config['captiveportal'])) {
}
$a_cp =& $config['captiveportal'];
+$pgtitle = array(gettext("Services"), gettext("Captive Portal"), sprintf(gettext("Zone: %s"), $a_cp[$cpzone]['zone']), gettext("Vouchers"), gettext("Edit"));
+$shortcut_section = "captiveportal-vouchers";
+
if (!is_array($config['voucher'])) {
$config['voucher'] = array();
}
OpenPOWER on IntegriCloud