health => db* and genericify sensors pages

git-svn-id: http://www.observium.org/svn/observer/trunk@2331 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-05-16 09:55:27 +00:00
parent a896bb3374
commit 75471a30cf
10 changed files with 20 additions and 611 deletions
+1 -2
View File
@@ -13,8 +13,7 @@ echo("<tr class=tablehead>
</tr>");
$i = '1';
$procs = mysql_query("SELECT * FROM `processors` AS P, `devices` AS D WHERE D.device_id = P.device_id ORDER BY D.hostname");
while ($proc = mysql_fetch_assoc($procs))
foreach (dbFetchRows("SELECT * FROM `processors` AS P, `devices` AS D WHERE D.device_id = P.device_id ORDER BY D.hostname") as $proc)
{
if (device_permitted($proc['device_id']))
{