Project

General

Profile

« Previous | Next » 

Revision 30f9aade

Added by k-paulius over 9 years ago

Show zone name in the breadcrumb of MAC, IP, hostname and voucher edit pages.

View differences:

src/usr/local/www/services_captiveportal_hostname_edit.php
77 77

  
78 78
global $cpzone, $cpzoneid;
79 79

  
80
$pgtitle = array(gettext("Services"), gettext("Captive Portal"), gettext("Edit allowed Hostname"));
81
$shortcut_section = "captiveportal";
82

  
83 80
$cpzone = $_GET['zone'];
84 81
if (isset($_POST['zone'])) {
85 82
	$cpzone = $_POST['zone'];
......
96 93
}
97 94
$a_cp =& $config['captiveportal'];
98 95

  
96
$pgtitle = array(gettext("Services"), gettext("Captive Portal"), sprintf(gettext("Zone: %s"), $a_cp[$cpzone]['zone']), gettext("Allowed Hostnames"), gettext("Edit"));
97
$shortcut_section = "captiveportal";
98

  
99 99
if (is_numericint($_GET['id'])) {
100 100
	$id = $_GET['id'];
101 101
}
src/usr/local/www/services_captiveportal_ip_edit.php
80 80
require("shaper.inc");
81 81
require("captiveportal.inc");
82 82

  
83
$pgtitle = array(gettext("Services"), gettext("Captive Portal"), gettext("Edit allowed IP address"));
84
$shortcut_section = "captiveportal";
85

  
86 83
$cpzone = $_GET['zone'];
87 84
if (isset($_POST['zone'])) {
88 85
	$cpzone = $_POST['zone'];
......
98 95
}
99 96
$a_cp =& $config['captiveportal'];
100 97

  
98
$pgtitle = array(gettext("Services"), gettext("Captive Portal"), sprintf(gettext("Zone: %s"), $a_cp[$cpzone]['zone']), gettext("Allowed IP Addresses"), gettext("Edit"));
99
$shortcut_section = "captiveportal";
100

  
101 101
if (is_numericint($_GET['id'])) {
102 102
	$id = $_GET['id'];
103 103
}
src/usr/local/www/services_captiveportal_mac_edit.php
83 83
global $cpzone;
84 84
global $cpzoneid;
85 85

  
86
$pgtitle = array(gettext("Services"), gettext("Captive Portal"), gettext("Edit MAC address rules"));
87
$shortcut_section = "captiveportal";
88

  
89 86
$cpzone = $_GET['zone'];
90 87
if (isset($_POST['zone'])) {
91 88
	$cpzone = $_POST['zone'];
......
101 98
}
102 99
$a_cp =& $config['captiveportal'];
103 100

  
101
$pgtitle = array(gettext("Services"), gettext("Captive Portal"), sprintf(gettext("Zone: %s"), $a_cp[$cpzone]['zone']), gettext("MAC"), gettext("Edit"));
102
$shortcut_section = "captiveportal";
103

  
104 104
if (is_numericint($_GET['id'])) {
105 105
	$id = $_GET['id'];
106 106
}
src/usr/local/www/services_captiveportal_vouchers_edit.php
68 68
require("captiveportal.inc");
69 69
require_once("voucher.inc");
70 70

  
71
$pgtitle = array(gettext("Services"), gettext("Captive Portal"), gettext("Edit Voucher Rolls"));
72
$shortcut_section = "captiveportal-vouchers";
73

  
74 71
$cpzone = $_GET['zone'];
75 72
if (isset($_POST['zone'])) {
76 73
	$cpzone = $_POST['zone'];
......
86 83
}
87 84
$a_cp =& $config['captiveportal'];
88 85

  
86
$pgtitle = array(gettext("Services"), gettext("Captive Portal"), sprintf(gettext("Zone: %s"), $a_cp[$cpzone]['zone']), gettext("Vouchers"), gettext("Edit"));
87
$shortcut_section = "captiveportal-vouchers";
88

  
89 89
if (!is_array($config['voucher'])) {
90 90
	$config['voucher'] = array();
91 91
}

Also available in: Unified diff