diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-31 01:24:46 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-31 01:24:46 +0000 |
commit | 2615fed948fe1d9c2c47a11a913881adebd89253 (patch) | |
tree | f4e0f805ea6cbcbac99d94c0d4eb79eeb6c7c99c /usr | |
parent | 36aaefff61f6107126912d4038a7d2cf1cb49c09 (diff) | |
download | pfsense-2615fed948fe1d9c2c47a11a913881adebd89253.zip pfsense-2615fed948fe1d9c2c47a11a913881adebd89253.tar.gz |
Correctly add WAN interface for developer
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/services_captiveportal.php | 6 |
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']; |