fixed front page

git-svn-id: http://www.observium.org/svn/observer/trunk@216 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2008-04-01 10:49:20 +00:00
parent 28e8756d03
commit f923b8e676

View File

@@ -20,26 +20,8 @@ function generate_front_box ($type, $content) {
</div>");
}
echo("<div style='width: 875px; float: left; padding: 3px 10px; background: #fff;'>");
$nodes = array();
$sql = mysql_query("SELECT * FROM `devices` AS D, `devices_attribs` AS A WHERE D.status = '1' AND A.device_id = D.device_id AND A.attrib_type = 'uptime' AND A.attrib_value > '0' AND A.attrib_value < '86400'");
while($device = mysql_fetch_array($sql)){
unset($already);
$i = 0;
while ($i <= count($nodes)) {
$thisnode = $device['device_id'];
if ($nodes[$i] == $thisnode) {
$already = "yes";
}
$i++;
}
if(!$already) { $nodes[] = $device['device_id']; }
$sql = mysql_query("SELECT * FROM `devices` WHERE `status` = '0' AND `ignore` = '0'");
while($device = mysql_fetch_array($sql)){
@@ -97,7 +79,6 @@ while($device = mysql_fetch_array($sql)){
}
if($config['frontpage_display'] == 'syslog') {
## Open Syslog Div
@@ -227,6 +208,6 @@ echo("</div>
/// END VOSTRON
}
#}
?>