diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-06-21 17:38:13 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-06-21 17:38:13 +0000 |
commit | 3e321df2be59d2bb4c2ffd51e410fe120517e316 (patch) | |
tree | 138e5336181e4a7e6d270301ea6208ad91e733bc /usr/local/www/services_wol.php | |
parent | fbb45bb034aad683b2bd207a497d0cfc0b1b5a1e (diff) | |
download | pfsense-3e321df2be59d2bb4c2ffd51e410fe120517e316.zip pfsense-3e321df2be59d2bb4c2ffd51e410fe120517e316.tar.gz |
Continue interface improvements
Diffstat (limited to 'usr/local/www/services_wol.php')
-rwxr-xr-x | usr/local/www/services_wol.php | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/usr/local/www/services_wol.php b/usr/local/www/services_wol.php index 54a3cef..21b5d20 100755 --- a/usr/local/www/services_wol.php +++ b/usr/local/www/services_wol.php @@ -106,17 +106,9 @@ include("head.inc"); <td width="78%" class="vtable"> <select name="interface" class="formselect"> <?php - if($config['interfaces']['lan']) - $interfaces = array('wan' => 'WAN', 'lan' => 'LAN'); - else - $interfaces = array('wan' => 'WAN'); - for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) { - if (isset($config['interfaces']['opt' . $i]['enable']) && - !$config['interfaces']['opt' . $i]['bridge']) - $interfaces['opt' . $i] = $config['interfaces']['opt' . $i]['descr']; - } + $interfaces = get_configured_interface_with_descr(); foreach ($interfaces as $iface => $ifacename): ?> - <option value="<?=$iface;?>" <?php if ($iface == $if) echo "selected"; ?>> + <option value="<?=$iface;?>" <?php if (!$config['interfaces'][$iface]['bridge'] && $iface == $if) echo "selected"; ?>> <?=htmlspecialchars($ifacename);?> </option> <?php endforeach; ?> |