From f48aeb05d9c29cb2780c862cfdf84653e85de463 Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Thu, 19 Jan 2012 10:35:27 +0000 Subject: [PATCH] only show device types we know of in our database git-svn-id: http://www.observium.org/svn/observer/trunk@2840 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/print-menubar.php | 37 ++++++++++++++++++++------------- html/includes/topnav.inc.php | 2 ++ 2 files changed, 24 insertions(+), 15 deletions(-) diff --git a/html/includes/print-menubar.php b/html/includes/print-menubar.php index 32cdb26fe8..027341eeda 100644 --- a/html/includes/print-menubar.php +++ b/html/includes/print-menubar.php @@ -56,12 +56,14 @@ if (isset($config['enable_bgp']) && $config['enable_bgp']) foreach ($config['device_types'] as $devtype) { - echo('
  • ' . $devtype['text'] . '
  • '); + if (in_array($devtype['type'],array_keys($cache['device_types']))) + { + echo('
  • ' . $devtype['text'] . '
  • '); + } } -?> -= '10') { +if ($_SESSION['userlevel'] >= '10') +{ echo('

  • Add Device
  • @@ -121,13 +123,16 @@ if ($config['show_services'])