From 612bb4f3db8fd261e918470880c457a744384bf5 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 9 Feb 2008 05:06:41 +0000 Subject: Do not show LAN related items when the interfafe does not exist. --- usr/local/www/diag_dhcp_leases.php | 2 +- usr/local/www/services_proxyarp_edit.php | 6 +++++- usr/local/www/services_snmp.php | 32 +++++++++++++++++--------------- usr/local/www/system_advanced.php | 5 ++++- 4 files changed, 27 insertions(+), 18 deletions(-) (limited to 'usr') diff --git a/usr/local/www/diag_dhcp_leases.php b/usr/local/www/diag_dhcp_leases.php index a25f046..7af62dc 100755 --- a/usr/local/www/diag_dhcp_leases.php +++ b/usr/local/www/diag_dhcp_leases.php @@ -303,7 +303,7 @@ foreach ($leases as $data) { break; } } else { - foreach ($config['dhcpd'] as $dhcpif => $dhcpifconf) { + foreach ($config['dhcpd'] as $dhcpif => $dhcpifconf) { if (($lip >= ip2long($dhcpifconf['range']['from'])) && ($lip <= ip2long($dhcpifconf['range']['to']))) { $data['if'] = $dhcpif; break; diff --git a/usr/local/www/services_proxyarp_edit.php b/usr/local/www/services_proxyarp_edit.php index 99bc0c0..36697dc 100755 --- a/usr/local/www/services_proxyarp_edit.php +++ b/usr/local/www/services_proxyarp_edit.php @@ -172,7 +172,11 @@ function typesel_change() { Interface >Host Resources - - - - > Bind to LAN interface only -
- This option can be useful when trying to access the SNMP agent - by the LAN interface's IP address through a VPN tunnel terminated on the WAN interface. - - -   - - - - - + + + + + > Bind to LAN interface only +
+ This option can be useful when trying to access the SNMP agent + by the LAN interface's IP address through a VPN tunnel terminated on the WAN interface. + + + +   + + + + +