diff options
author | Chris Buechler <cmb@pfsense.org> | 2008-02-09 04:27:19 +0000 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2008-02-09 04:27:19 +0000 |
commit | cc908f39a8109862b0cba4ef0d8c4ae01cde9fcb (patch) | |
tree | 043e5a0f8a7a03f9f4dc2662aed72636e0d9420f /usr/local | |
parent | f97e2dab789cfcf35c79ba3fbd920b876a02d90f (diff) | |
download | pfsense-cc908f39a8109862b0cba4ef0d8c4ae01cde9fcb.zip pfsense-cc908f39a8109862b0cba4ef0d8c4ae01cde9fcb.tar.gz |
Remove additional menu items that aren't applicable on single interface deployments
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/fbegin.inc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/usr/local/www/fbegin.inc b/usr/local/www/fbegin.inc index 3b89c20..5b04c21 100755 --- a/usr/local/www/fbegin.inc +++ b/usr/local/www/fbegin.inc @@ -198,7 +198,6 @@ if ($_REQUEST['noticeaction'] == 'acknowledge') { <?=output_menu_item("/vpn_pppoe.php", "PPPoE Server");?> <?=output_menu_item("/pkg_edit.php?xml=routed/routed.xml&id=0", "RIP");?> <?=output_menu_item("/services_snmp.php", "SNMP");?> - <?php if($config['interfaces']['lan']) { /* no use for UPnP in single-interface deployments @@ -207,7 +206,6 @@ if ($_REQUEST['noticeaction'] == 'acknowledge') { output_menu_item("/pkg_edit.php?xml=miniupnpd.xml&id=0", "UPnP"); } ?> - <?=output_menu_item("/pkg_edit.php?xml=openntpd.xml&id=0", "OpenNTPD");?> <?=output_menu_item("/services_wol.php", "Wake on LAN");?> <?php echo return_ext_menu("Services"); ?> @@ -243,7 +241,14 @@ if ($_REQUEST['noticeaction'] == 'acknowledge') { <?=output_menu_item("/status_services.php", "Services");?> <?=output_menu_item("/diag_logs.php", "System Logs");?> <?=output_menu_item("/status_graph.php?if=wan", "Traffic Graph");?> - <?=output_menu_item("/status_upnp.php", "UPnP");?> + <?php + if($config['interfaces']['lan']) { + /* no use for UPnP in single-interface deployments + remove to reduce user confusion + */ + output_menu_item("/status_upnp.php", "UPnP"); + } + ?> <?php $i = 0; $ifdescrs = array(); if (is_array($config['interfaces']['wan']['wireless']) && preg_match($g['wireless_regex'], $config['interfaces']['wan']['if'])) |