From 5cad734a21ebc29ec6795cc6fb9a8890a992ddfe Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Sat, 30 Jan 2010 21:48:22 +0000 Subject: [PATCH] fix rancid config tab git-svn-id: http://www.observium.org/svn/observer/trunk@750 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/pages/device.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/html/pages/device.php b/html/pages/device.php index db5de481af..8d8cc9c3b9 100644 --- a/html/pages/device.php +++ b/html/pages/device.php @@ -103,16 +103,16 @@ if($config['enable_bgp'] && $device['bgpLocalAs']) { '); } -if(@mysql_result(mysql_query("SELECT count(*) FROM nagios_hosts WHERE address = '".$device['hostname']."'", $nagios_link), 0) > '0') { - echo('
  • - - Nagios - -
  • '); -} +#if(@mysql_result(mysql_query("SELECT count(*) FROM nagios_hosts WHERE address = '".$device['hostname']."'", $nagios_link), 0) > '0') { +# echo('
  • +# +# Nagios +# +#
  • '); +#} -if($_SESSION[userlevel] >= "5" && mysql_result(mysql_query("SELECT count(*) FROM links AS L, interfaces AS I WHERE I.device_id = '".$device['device_id']."' AND I.interface_id = L.src_if"),0)) { +if($_SESSION['userlevel'] >= "5" && mysql_result(mysql_query("SELECT count(*) FROM links AS L, interfaces AS I WHERE I.device_id = '".$device['device_id']."' AND I.interface_id = L.src_if"),0)) { echo('
  • Map @@ -171,8 +171,8 @@ echo('
  • '); } -if($_SESSION[userlevel] >= "5" && is_file($config['rancid_configs'] . $device['hostname'])) { - echo('
  • +if($_SESSION['userlevel'] >= "5" && is_file($config['rancid_configs'] . $device['hostname'])) { + echo('
  • Config @@ -180,7 +180,7 @@ if($_SESSION[userlevel] >= "5" && is_file($config['rancid_configs'] . $device['h '); } -if($_SESSION[userlevel] >= "5") { +if($_SESSION['userlevel'] >= "5") { echo('
  • Settings