mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Changes!
git-svn-id: http://www.observium.org/svn/observer/trunk@117 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<?
|
||||
|
||||
if(devicepermitted($_GET['id'])) {
|
||||
|
||||
$selected['iface'] = "selected";
|
||||
|
||||
if(!$_GET['section']) {
|
||||
@@ -55,16 +57,40 @@ echo("<li class=" . $select['dev-graphs'] . ">
|
||||
</li>
|
||||
");
|
||||
|
||||
if(mysql_result(mysql_query("SELECT * FROM `entPhysical` WHERE device_id = '".$_GET['id']."'"), 0) > '0') {
|
||||
|
||||
echo("
|
||||
<li class=" . $select['dev-enyphysical'] . ">
|
||||
<a href='?page=device&id=" . $device['device_id'] . "§ion=dev-entphysical'>
|
||||
<img src='images/16/bricks.png' align=absmiddle border=0> Inventory
|
||||
</a>
|
||||
</li>
|
||||
");
|
||||
|
||||
|
||||
}
|
||||
|
||||
if(mysql_result(mysql_query("select count(temp_id) from temperature WHERE temp_host = '" . $device['device_id'] . "'"), 0) > '0') {
|
||||
echo("
|
||||
<li class=" . $select['dev-temp'] . ">
|
||||
<a href='?page=device&id=" . $device['device_id'] . "§ion=dev-temp'>
|
||||
<img src='images/16/weather_sun.png' align=absmiddle border=0> Temps
|
||||
<img src='images/16/flame.png' align=absmiddle border=0> Temps
|
||||
</a>
|
||||
</li>
|
||||
");
|
||||
}
|
||||
|
||||
if(mysql_result(mysql_query("select count(storage_id) from storage WHERE host_id = '" . $device['device_id'] . "'"), 0) > '0') {
|
||||
echo("
|
||||
<li class=" . $select['dev-storage'] . ">
|
||||
<a href='?page=device&id=" . $device['device_id'] . "§ion=dev-storage'>
|
||||
<img src='images/16/database.png' align=absmiddle border=0> Storage
|
||||
</a>
|
||||
</li>
|
||||
");
|
||||
}
|
||||
|
||||
|
||||
if(mysql_result(mysql_query("select count(service_id) from services WHERE service_host = '" . $device['device_id'] . "'"), 0) > '0') {
|
||||
echo("
|
||||
<li class=" . $select['dev-srv'] . ">
|
||||
@@ -90,7 +116,7 @@ echo("
|
||||
</li>
|
||||
");
|
||||
|
||||
if($_SESSION[userlevel] > "5") {
|
||||
if($_SESSION[userlevel] >= "5") {
|
||||
echo("
|
||||
<li class=" . $select['dev-edit'] . ">
|
||||
<a href='?page=device&id=" . $device['device_id'] . "§ion=dev-edit'>
|
||||
@@ -110,5 +136,7 @@ include("pages/$page/$section.inc");
|
||||
echo("</div>
|
||||
");
|
||||
}
|
||||
|
||||
} else { echo("<span class=alert>You do not have the necessary access permissions to view this device.</span>"); }
|
||||
?>
|
||||
|
||||
|
Reference in New Issue
Block a user