summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-31 01:49:48 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-31 01:49:48 +0000
commit4dbc75b975990a72ac6f1892d7a5962905235b4c (patch)
tree807360c45ad17f7489f2b40a3bba012015a4e489 /usr
parente4662fc5aa1522410abb690f791cffdaeb6f29a5 (diff)
downloadpfsense-4dbc75b975990a72ac6f1892d7a5962905235b4c.zip
pfsense-4dbc75b975990a72ac6f1892d7a5962905235b4c.tar.gz
Add reverse captive portal feature.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/services_captiveportal.php15
1 files changed, 6 insertions, 9 deletions
diff --git a/usr/local/www/services_captiveportal.php b/usr/local/www/services_captiveportal.php
index e15b2a4..992aeb4 100755
--- a/usr/local/www/services_captiveportal.php
+++ b/usr/local/www/services_captiveportal.php
@@ -307,16 +307,13 @@ function enable_change(enable_change) {
<td width="78%" class="vtable">
<select name="cinterface" class="formfld" id="cinterface">
<?php
-
- if(isset($config['system']['developer']))
$interfaces = array('lan' => 'LAN', 'wan' => 'WAN');
- else
- $interfaces = array('lan' => 'LAN');
- for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) {
- if (isset($config['interfaces']['opt' . $i]['enable']))
- $interfaces['opt' . $i] = $config['interfaces']['opt' . $i]['descr'];
- }
- foreach ($interfaces as $iface => $ifacename): ?>
+ for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) {
+ if (isset($config['interfaces']['opt' . $i]['enable']))
+ $interfaces['opt' . $i] = $config['interfaces']['opt' . $i]['descr'];
+ }
+ foreach ($interfaces as $iface => $ifacename):
+ ?>
<option value="<?=$iface;?>" <?php if ($iface == $pconfig['cinterface']) echo "selected"; ?>>
<?=htmlspecialchars($ifacename);?>
</option>
OpenPOWER on IntegriCloud