summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2008-02-09 04:21:40 +0000
committerChris Buechler <cmb@pfsense.org>2008-02-09 04:21:40 +0000
commitf97e2dab789cfcf35c79ba3fbd920b876a02d90f (patch)
tree5228e618288778d0281aae12f0dcccc0918483d2
parent5bf11e3605670af5400c697d7de46b6045de22f1 (diff)
downloadpfsense-f97e2dab789cfcf35c79ba3fbd920b876a02d90f.zip
pfsense-f97e2dab789cfcf35c79ba3fbd920b876a02d90f.tar.gz
Remove additional menu items that aren't applicable on single interface deployments
-rwxr-xr-xusr/local/www/fbegin.inc24
1 files changed, 21 insertions, 3 deletions
diff --git a/usr/local/www/fbegin.inc b/usr/local/www/fbegin.inc
index 6ae7925..3b89c20 100755
--- a/usr/local/www/fbegin.inc
+++ b/usr/local/www/fbegin.inc
@@ -171,7 +171,16 @@ if ($_REQUEST['noticeaction'] == 'acknowledge') {
?>
<?=output_menu_item("/firewall_rules.php", "Rules");?>
<?=output_menu_item("/firewall_schedule.php", "Schedules");?>
- <?=output_menu_item("{$shaper}", "Traffic Shaper");?>
+ <?php
+ if($config['interfaces']['lan']) {
+ /* no use for traffic shaper in single-interface
+ deployments
+ remove to reduce user confusion
+ */
+ output_menu_item("{$shaper}", "Traffic Shaper");
+ }
+ ?>
+ <?=?>
<?=output_menu_item("/firewall_virtual_ip.php", "Virtual IPs");?>
<?php echo return_ext_menu("Firewall"); ?>
</ul>
@@ -183,13 +192,22 @@ if ($_REQUEST['noticeaction'] == 'acknowledge') {
<?=output_menu_item("/services_dnsmasq.php", "DNS Forwarder");?>
<?=output_menu_item("/services_dhcp_relay.php", "DHCP Relay");?>
<?=output_menu_item("/services_dhcp.php", "DHCP Server");?>
- <?=output_menu_item("/services_dyndns.php", "Dynamic DNS");?>
+ <?=output_menu_item("/services_dyndns.php", "Dynamic DNS");?>
<?=output_menu_item("/load_balancer_pool.php", "Load Balancer");?>
<?=output_menu_item("/pkg_edit.php?xml=olsrd.xml&id=0", "OLSR");?>
<?=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");?>
- <?=output_menu_item("/pkg_edit.php?xml=miniupnpd.xml&id=0", "UPnP");?>
+
+ <?php
+ if($config['interfaces']['lan']) {
+ /* no use for UPnP in single-interface deployments
+ remove to reduce user confusion
+ */
+ 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"); ?>
OpenPOWER on IntegriCloud