summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-06-24 12:06:28 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-06-24 12:06:28 -0300
commit0d26e77ca3dbde771fd4ffec549c0654220a300a (patch)
tree485d43d1111b1a3b69f4eb72d12c2e49b8d5315f
parentc15b5ed8d8830aa4a59343a8a7df311572b06911 (diff)
parent5a145a54a29202e27b93215a5d1ee036e0f43130 (diff)
downloadpfsense-0d26e77ca3dbde771fd4ffec549c0654220a300a.zip
pfsense-0d26e77ca3dbde771fd4ffec549c0654220a300a.tar.gz
Merge pull request #1241 from Gertjanpfsense/master
-rw-r--r--usr/local/www/status_captiveportal.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr/local/www/status_captiveportal.php b/usr/local/www/status_captiveportal.php
index 68e0d13..c9aab18 100644
--- a/usr/local/www/status_captiveportal.php
+++ b/usr/local/www/status_captiveportal.php
@@ -62,6 +62,9 @@ if (!is_array($config['captiveportal']))
$config['captiveportal'] = array();
$a_cp =& $config['captiveportal'];
+if (count($a_cp) == 1)
+ $cpzone = current(array_keys($a_cp));
+
include("head.inc");
?>
@@ -122,7 +125,8 @@ $mac_man = load_mac_manufacturer_table();
<td width="20%" class="vncell" valign="top">
<br /><?=gettext("Captive Portal Zone"); ?><br/><br />
</td>
- <td class="vncell" width="30%" align="center">
+ <td class="vncell" width="30%" align="center">
+ <?php if (count($a_cp) > 1) { ?>
<form action="status_captiveportal.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
<select name="zone" class="formselect" onchange="document.form1.submit()">
<option value="">none</option>
@@ -136,6 +140,7 @@ $mac_man = load_mac_manufacturer_table();
</select>
<br />
</form>
+ <?php } else echo $a_cp[$cpzone]['zone']; ?>
</td>
<td colspan="3" width="50%"></td>
</tr>
OpenPOWER on IntegriCloud