summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_captiveportal.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-12-16 22:19:45 +0545
committerPhil Davis <phil.davis@inf.org>2015-12-16 22:19:45 +0545
commit8e048cc13a6eae2ab72f08f4c5d6fdc94ddf7a8a (patch)
treef63965a3be0f6c551cc973fe327d0b2fe58bf7e7 /src/usr/local/www/services_captiveportal.php
parent2eb5a0bf9d69fbedc6d4e9c1b5665ce9e6396c2a (diff)
downloadpfsense-8e048cc13a6eae2ab72f08f4c5d6fdc94ddf7a8a.zip
pfsense-8e048cc13a6eae2ab72f08f4c5d6fdc94ddf7a8a.tar.gz
Code style services captive portal
Diffstat (limited to 'src/usr/local/www/services_captiveportal.php')
-rw-r--r--src/usr/local/www/services_captiveportal.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/usr/local/www/services_captiveportal.php b/src/usr/local/www/services_captiveportal.php
index ab5cddf..fb7a16c 100644
--- a/src/usr/local/www/services_captiveportal.php
+++ b/src/usr/local/www/services_captiveportal.php
@@ -526,8 +526,9 @@ function build_radiusnas_list() {
$snip = long2ip32($start+$i);
$list[$snip] = $sn['descr'] . ' - ' . $snip;
}
- } else
+ } else {
$list[$sn['subnet']] = $sn['descr'] . ' - ' . $sn['subnet'];
+ }
}
}
@@ -539,8 +540,9 @@ function build_cert_list() {
$list = array();
- foreach($a_cert as $cert)
+ foreach ($a_cert as $cert) {
$list[$cert['refid']] = $cert['descr'];
+ }
return($list);
}
@@ -548,11 +550,13 @@ function build_cert_list() {
$closehead = false;
include("head.inc");
-if ($input_errors)
+if ($input_errors) {
print_input_errors($input_errors);
+}
-if ($savemsg)
+if ($savemsg) {
print_info_box($savemsg, 'success');
+}
$tab_array = array();
$tab_array[] = array(gettext("Configuration"), true, "services_captiveportal.php?zone={$cpzone}");
@@ -1167,7 +1171,7 @@ print_info_box(gettext('Warning:' . '<br />' . 'Don\'t forget to enable the DHCP
<script type="text/javascript">
//<![CDATA[
-events.push(function(){
+events.push(function() {
// ------- Show/hide sections based on checkbox settings --------------------------------------
function hideSections(hide) {
OpenPOWER on IntegriCloud