git-svn-id: http://www.observium.org/svn/observer/trunk@118 61d68cd4-352d-0410-923a-c4978735b2b8

This commit is contained in:
Adam Amstrong
2007-11-23 11:37:28 +00:00
parent 9a6d196f32
commit 89b6a9bf1a
28 changed files with 1275 additions and 1379 deletions
+2
View File
@@ -1,5 +1,7 @@
<?php
ini_set('allow_url_fopen', 0);
ini_set('display_errors', 0);
if($_GET[debug]) {
ini_set('display_errors', 1);
+1 -1
View File
@@ -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>";
}
+1 -1
View File
@@ -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
View File
@@ -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);