mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@ -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
|
||||
|
@ -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>'); }
|
||||
?>
|
||||
|
Reference in New Issue
Block a user