diff --git a/html/pages/default.php b/html/pages/default.php index 814c2a60b2..3f699ac575 100644 --- a/html/pages/default.php +++ b/html/pages/default.php @@ -20,26 +20,8 @@ function generate_front_box ($type, $content) { "); } - echo("
"); -$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("
/// END VOSTRON -} +#} ?>