Project

General

Profile

« Previous | Next » 

Revision cc908f39

Added by Chris Buechler over 17 years ago

Remove additional menu items that aren't applicable on single interface deployments

View differences:

usr/local/www/fbegin.inc
198 198
							<?=output_menu_item("/vpn_pppoe.php", "PPPoE Server");?>	
199 199
							<?=output_menu_item("/pkg_edit.php?xml=routed/routed.xml&id=0", "RIP");?>	
200 200
							<?=output_menu_item("/services_snmp.php", "SNMP");?>	
201
							
202 201
							<?php
203 202
							if($config['interfaces']['lan']) {
204 203
								/* no use for UPnP in single-interface deployments
......
207 206
								output_menu_item("/pkg_edit.php?xml=miniupnpd.xml&id=0", "UPnP");	
208 207
							}
209 208
							?>
210
							
211 209
							<?=output_menu_item("/pkg_edit.php?xml=openntpd.xml&id=0", "OpenNTPD");?>	
212 210
							<?=output_menu_item("/services_wol.php", "Wake on LAN");?>	
213 211
							<?php echo return_ext_menu("Services"); ?>
......
243 241
							<?=output_menu_item("/status_services.php", "Services");?>
244 242
							<?=output_menu_item("/diag_logs.php", "System Logs");?>
245 243
							<?=output_menu_item("/status_graph.php?if=wan", "Traffic Graph");?>
246
							<?=output_menu_item("/status_upnp.php", "UPnP");?>
244
							<?php
245
							if($config['interfaces']['lan']) {
246
								/* no use for UPnP in single-interface deployments
247
								remove to reduce user confusion
248
								*/
249
								output_menu_item("/status_upnp.php", "UPnP");	
250
							}
251
							?>
247 252
							<?php $i = 0; $ifdescrs = array();
248 253
							if (is_array($config['interfaces']['wan']['wireless']) &&
249 254
								preg_match($g['wireless_regex'], $config['interfaces']['wan']['if']))

Also available in: Unified diff