mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 00:25:06 +02:00
git-svn-id: http://www.observium.org/svn/observer/trunk@118 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
ini_set('allow_url_fopen', 0);
|
||||
ini_set('display_errors', 0);
|
||||
|
||||
|
||||
if($_GET[debug]) {
|
||||
ini_set('display_errors', 1);
|
||||
|
||||
@@ -10,7 +10,7 @@ if($_POST['delsrv']) {
|
||||
}
|
||||
}
|
||||
|
||||
$query = mysql_query("SELECT * FROM `services` AS S, `devices` AS D WHERE S.service_host = D.id ORDER BY hostname");
|
||||
$query = mysql_query("SELECT * FROM `services` AS S, `devices` AS D WHERE S.service_host = D.device_id ORDER BY hostname");
|
||||
while($device = mysql_fetch_array($query)) {
|
||||
$servicesform .= "<option value='" . $device[service_id] . "'>" . $device['service_id'] . "." . $device['hostname'] . " - " . $device['service_type'] . "</option>";
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ echo("<li class=" . $select['dev-graphs'] . ">
|
||||
</li>
|
||||
");
|
||||
|
||||
if(mysql_result(mysql_query("SELECT * FROM `entPhysical` WHERE device_id = '".$_GET['id']."'"), 0) > '0') {
|
||||
if(@mysql_result(mysql_query("SELECT * FROM `entPhysical` WHERE device_id = '".$_GET['id']."'"), 0) > '0') {
|
||||
|
||||
echo("
|
||||
<li class=" . $select['dev-enyphysical'] . ">
|
||||
|
||||
+1
-1
@@ -56,7 +56,7 @@ if ($dir == "v") {
|
||||
};
|
||||
|
||||
//send picture to browser
|
||||
$border = imagecolorallocate($per, 0x99, 0x99, 0x99);
|
||||
$border = @imagecolorallocate($percent, 250, 250, 250);
|
||||
imagerectangle($image, 0, 0, $length, 6, $border);
|
||||
|
||||
ImagePNG($image);
|
||||
|
||||
Reference in New Issue
Block a user