diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-06-21 00:28:50 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-06-21 00:28:50 +0000 |
commit | b6db92176273cdd9b1dfbf6b44b42e55a35ee7af (patch) | |
tree | dd6c6916b9443469466dfa3f1c09cd70f0a9a002 /usr/local/www/fbegin.inc | |
parent | 19604f5d9680dad1a5e12d1bea8d7e5aa9f37193 (diff) | |
download | pfsense-b6db92176273cdd9b1dfbf6b44b42e55a35ee7af.zip pfsense-b6db92176273cdd9b1dfbf6b44b42e55a35ee7af.tar.gz |
Continue interface improvements.
Diffstat (limited to 'usr/local/www/fbegin.inc')
-rwxr-xr-x | usr/local/www/fbegin.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr/local/www/fbegin.inc b/usr/local/www/fbegin.inc index 0b210df..d66560a 100755 --- a/usr/local/www/fbegin.inc +++ b/usr/local/www/fbegin.inc @@ -145,9 +145,11 @@ if ($_REQUEST['noticeaction'] == 'acknowledge') { output_menu_item("/interfaces_lan.php", "LAN"); } ?> - <?php for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++): if (!isset($config['interfaces']['opt' . $i]['ovpn'])): ?> - <?=output_menu_item("/interfaces_opt.php?index={$i}", htmlspecialchars($config['interfaces']['opt' . $i]['descr']))?> - <?php endif; endfor; ?> + <?php $opts = get_configured_interface_with_descr(true); + foreach ($opts as $oif => $odescr): + if (!isset($config['interfaces'][$oif]['ovpn'])): ?> + <?=output_menu_item("/interfaces_opt.php?optif={$oif}", htmlspecialchars($odescr))?> + <?php endif; endforeach; ?> <?php echo return_ext_menu("Interfaces"); ?> </ul> </li> |