diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-02-09 05:12:32 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-02-09 05:12:32 +0000 |
commit | dc22ae4d0f15af72d6b6623c45ca7450ec04236c (patch) | |
tree | 657de2dc83ac4169f79d5b47869da4654b0ca80b /usr | |
parent | 3afc4db0d81eb2ab8b0e678b02858e49a390252e (diff) | |
download | pfsense-dc22ae4d0f15af72d6b6623c45ca7450ec04236c.zip pfsense-dc22ae4d0f15af72d6b6623c45ca7450ec04236c.tar.gz |
Do not show LAN related items when the interfafe does not exist.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/load_balancer_pool_edit.php | 5 | ||||
-rwxr-xr-x | usr/local/www/vpn_pppoe.php | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/usr/local/www/load_balancer_pool_edit.php b/usr/local/www/load_balancer_pool_edit.php index b3957a3..a90b8ae 100755 --- a/usr/local/www/load_balancer_pool_edit.php +++ b/usr/local/www/load_balancer_pool_edit.php @@ -357,7 +357,10 @@ function clearcombo(){ <input name="ipaddr" type="text" size="16" style="float: left;"> <select id="iface" name="iface" style="float: left; display: none;"> <?php - $interfaces = array('wan' => 'WAN', 'lan' => 'LAN'); + if($config['interfaces']['lan']) + $interfaces = array('wan' => 'WAN', 'lan' => 'LAN'); + else + $interfaces = array('wan' => 'WAN'); for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) { $interfaces['opt' . $i] = $config['interfaces']['opt' . $i]['descr']; } diff --git a/usr/local/www/vpn_pppoe.php b/usr/local/www/vpn_pppoe.php index 6c7c557..97d099c 100755 --- a/usr/local/www/vpn_pppoe.php +++ b/usr/local/www/vpn_pppoe.php @@ -298,7 +298,10 @@ function enable_change(enable_over) { <select name="interface" class="formselect" id="interface"> <?php - $interfaces = array('lan' => 'LAN', 'wan' => 'WAN'); + 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'])) $interfaces['opt' . $i] = $config['interfaces']['opt' . $i]['descr']; |