diff --git a/html/pages/device.php b/html/pages/device.php index db5de481a..8d8cc9c3b 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