From e47499d578802a7d20fc07380aad9c0f74c779be Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 9 Feb 2008 05:23:28 +0000 Subject: Do not show LAN interface when it is not present. --- usr/local/www/services_wol.php | 22 +++++++++++++--------- usr/local/www/services_wol_edit.php | 6 +++++- 2 files changed, 18 insertions(+), 10 deletions(-) (limited to 'usr/local/www') diff --git a/usr/local/www/services_wol.php b/usr/local/www/services_wol.php index 51d8a8a..54a3cef 100755 --- a/usr/local/www/services_wol.php +++ b/usr/local/www/services_wol.php @@ -104,15 +104,19 @@ include("head.inc"); Interface - + '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']; + } + foreach ($interfaces as $iface => $ifacename): ?> + diff --git a/usr/local/www/services_wol_edit.php b/usr/local/www/services_wol_edit.php index 1b5c9a6..c4b1646 100755 --- a/usr/local/www/services_wol_edit.php +++ b/usr/local/www/services_wol_edit.php @@ -103,7 +103,11 @@ include("head.inc"); Interface