path fixes

git-svn-id: http://www.observium.org/svn/observer/trunk@379 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2009-03-25 08:44:30 +00:00
parent 75966fff5e
commit 6c53094974
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ $query = mysql_query($sql);
echo("<table cellspacing=0 cellpadding=5 width=100%>");
echo("<tr class=tablehead>
<th width=280>Sensor</th>
<th width=200>Sensor</th>
<th width=100>Current</th>
<th width=100>Alert</th>
<th>Notes</th>
@@ -19,7 +19,7 @@ while($temp = mysql_fetch_array($query)) {
if(is_integer($row/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }
echo("<tr class=list-large style=\"background-color: $row_colour; padding: 5px;\">
<td width=200>" . $temp['temp_descr'] . "</td>
<td>" . $temp['temp_descr'] . "</td>
<td>" . print_temperature($temp['temp_current'], $temp['temp_limit']) . "</td>
<td>" . $temp['temp_limit'] . "</td>
<td>" . $temp['temp_notes'] . "</td>
+1 -1
View File
@@ -69,7 +69,7 @@ function getHostOS($hostname, $community, $snmpver, $port) {
$dir_handle = @opendir($config['install_dir'] . "/includes/osdiscovery") or die("Unable to open $path");
while ($file = readdir($dir_handle)) {
if( preg_match("/^discover-([a-z0-9]*).php/", $file) ) {
include($config['install_dir'] . "includes/osdiscovery/" . $file);
include($config['install_dir'] . "/includes/osdiscovery/" . $file);
}
}
closedir($dir_handle);