diff options
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(); } |