-
Overview
");
if(@mysql_result(mysql_query("select count(vlan_id) from vlans WHERE device_id = '" . $device['device_id'] . "'"), 0) > '0') {
echo("
-
VLANs
");
}
if(@mysql_result(mysql_query("select count(interface_id) from interfaces WHERE device_id = '" . $device['device_id'] . "'"), 0) > '0') {
echo("
-
Port Details
-
Port Graphs
");
}
echo(" -
Host Graphs
");
if(@mysql_result(mysql_query("SELECT * FROM `entPhysical` WHERE device_id = '".$_GET['id']."'"), 0) > '0') {
echo("
-
Inventory
");
}
if(mysql_result(mysql_query("select count(temp_id) from temperature WHERE temp_host = '" . $device['device_id'] . "'"), 0) > '0') {
echo("
-
Temps
");
}
if(mysql_result(mysql_query("select count(storage_id) from storage WHERE host_id = '" . $device['device_id'] . "'"), 0) > '0') {
echo("
-
Storage
");
}
if(mysql_result(mysql_query("select count(service_id) from services WHERE service_host = '" . $device['device_id'] . "'"), 0) > '0') {
echo("
-
Services
");
}
echo("
-
Eventlog
");
echo("
-
Syslog
");
if($_SESSION[userlevel] >= "5") {
echo("
-
Settings
");
}
echo("
");
include("pages/$page/$section.inc");
echo("
");
}
} else { echo("You do not have the necessary access permissions to view this device."); }
?>