diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-31 01:49:48 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-31 01:49:48 +0000 |
commit | 4dbc75b975990a72ac6f1892d7a5962905235b4c (patch) | |
tree | 807360c45ad17f7489f2b40a3bba012015a4e489 /usr | |
parent | e4662fc5aa1522410abb690f791cffdaeb6f29a5 (diff) | |
download | pfsense-4dbc75b975990a72ac6f1892d7a5962905235b4c.zip pfsense-4dbc75b975990a72ac6f1892d7a5962905235b4c.tar.gz |
Add reverse captive portal feature.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/services_captiveportal.php | 15 |
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> |