enable hiding of services on menu bar if wanted

git-svn-id: http://www.observium.org/svn/observer/trunk@725 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-01-25 22:45:52 +00:00
parent 326756ffd9
commit 74fbb0451c
2 changed files with 8 additions and 0 deletions

View File

@ -86,6 +86,7 @@ $config['int_core'] = 1; # Enable Core Port Types
$config['int_l2tp'] = 0; # Enable L2TP Port Types
$config['show_locations'] = 1; # Enable Locations on menu
$config['show_services'] = 1; # Enable Services on menu
$config['ports_page_default'] = "details/";
# Default devices ports page display type. "details/", "graphs/bits/", etc

View File

@ -64,6 +64,11 @@ if ($_SESSION['userlevel'] >= '10') {
</ul>
</td></tr></table>
</li>
<?php
## Display Services entry if $config['show_services']
if (!isset($config['show_services']) || $config['show_services'])
{
?>
<li><a class="menu2four" href="services/"><img src="images/16/cog.png" border="0" align="absmiddle" /> Services</a>
<table><tr><td>
<ul>
@ -86,6 +91,8 @@ if ($_SESSION['userlevel'] >= '10') {
</li>
<?php
}
## Display Locations entry if $config['show_locations']
if ($config['show_locations']) { echo('<li><a class="menu2four" href="locations/"><img src="images/16/building.png" border="0" align="absmiddle" /> Locations</a></li>'); }
?>