From c32f652bd4fe0bb7a17f48d054765bd4abb44d17 Mon Sep 17 00:00:00 2001 From: Geert Hauwaerts Date: Sun, 21 Feb 2010 14:58:46 +0000 Subject: [PATCH] - Added a setting to toggle the display of sysDescr on the device overview page. Setting: overview_show_sysDescr Default: true git-svn-id: http://www.observium.org/svn/observer/trunk@922 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/includes/dev-overview-data.inc.php | 4 +++- includes/defaults.inc.php | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/html/includes/dev-overview-data.inc.php b/html/includes/dev-overview-data.inc.php index 0f00f00ef..f99ea77f0 100644 --- a/html/includes/dev-overview-data.inc.php +++ b/html/includes/dev-overview-data.inc.php @@ -1,6 +1,8 @@ " . $device['sysDescr'] . ""); + if ($config['overview_show_sysDescr']) { + echo("
" . $device['sysDescr'] . "
"); + } # $uptime = @mysql_result(mysql_query("SELECT `attrib_value` FROM `devices_attribs` WHERE `device_id` = '" . $device['device_id'] . "' AND `attrib_type` = 'uptime'"), 0); $uptime = $device['uptime']; diff --git a/includes/defaults.inc.php b/includes/defaults.inc.php index 4a9361f72..b3b34e5f0 100644 --- a/includes/defaults.inc.php +++ b/includes/defaults.inc.php @@ -50,6 +50,8 @@ $config['graph_colours']['blues'] = array('A0A0E5','8080BD','606096','40406F', $config['graph_colours']['purples'] = array('CC7CCC','AF63AF','934A93','773177','5B185B','3F003F'); $config['graph_colours']['default'] = $config['graph_colours']['blues']; +$config['overview_show_sysDescr'] = true; + ### Ignores & Allows $config['bad_if'] = array("voip-null", "virtual-", "unrouted", "eobc", "mpls", "sl0", "lp0", "faith0",