summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-31 01:24:46 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-31 01:24:46 +0000
commit2615fed948fe1d9c2c47a11a913881adebd89253 (patch)
treef4e0f805ea6cbcbac99d94c0d4eb79eeb6c7c99c /usr/local/www/services_captiveportal.php
parent36aaefff61f6107126912d4038a7d2cf1cb49c09 (diff)
downloadpfsense-2615fed948fe1d9c2c47a11a913881adebd89253.zip
pfsense-2615fed948fe1d9c2c47a11a913881adebd89253.tar.gz
Correctly add WAN interface for developer
Diffstat (limited to 'usr/local/www/services_captiveportal.php')
-rwxr-xr-xusr/local/www/services_captiveportal.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/services_captiveportal.php b/usr/local/www/services_captiveportal.php
index aa5bec1..e15b2a4 100755
--- a/usr/local/www/services_captiveportal.php
+++ b/usr/local/www/services_captiveportal.php
@@ -307,9 +307,11 @@ function enable_change(enable_change) {
<td width="78%" class="vtable">
<select name="cinterface" class="formfld" id="cinterface">
<?php
- $interfaces = array('lan' => 'LAN');
+
if(isset($config['system']['developer']))
- $interfaces[] = array('wan' => 'WAN');
+ $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'];
OpenPOWER on IntegriCloud