summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-29 16:11:59 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-29 16:11:59 +0000
commit8dd5ffdc0a4f9424eac0577380dc03d9139e4d71 (patch)
tree6d690e6d2ba65d99a90702d1b2e782bda11fe623 /usr/local/www/services_captiveportal.php
parentfd5f106675904bde489407cec304faa300965c5b (diff)
downloadpfsense-8dd5ffdc0a4f9424eac0577380dc03d9139e4d71.zip
pfsense-8dd5ffdc0a4f9424eac0577380dc03d9139e4d71.tar.gz
Add WAN interface for captive portal.
NOTE: current requires the developer flag for inclusion
Diffstat (limited to 'usr/local/www/services_captiveportal.php')
-rwxr-xr-xusr/local/www/services_captiveportal.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/services_captiveportal.php b/usr/local/www/services_captiveportal.php
index 1987ce5..2819dd7 100755
--- a/usr/local/www/services_captiveportal.php
+++ b/usr/local/www/services_captiveportal.php
@@ -306,7 +306,10 @@ function enable_change(enable_change) {
<td width="22%" valign="top" class="vncellreq">Interface</td>
<td width="78%" class="vtable">
<select name="cinterface" class="formfld" id="cinterface">
- <?php $interfaces = array('lan' => 'LAN');
+ <?php
+ $interfaces = array('lan' => 'LAN');
+ if(isset($config['system']['developer']))
+ $interfaces[] = array('wan' => 'WAN');
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