diff --git a/library/mysql.php b/library/mysql.php index 98d1db5..965f675 100644 --- a/library/mysql.php +++ b/library/mysql.php @@ -96,6 +96,18 @@ class MySQL { `hostTarget`.`name`, `hostTarget`.`port`, + ( + + SELECT COUNT(*) FROM `hostPage` AS `hostPageTotal` + + WHERE `hostPageTotal`.`hostId` = `hostPageTarget`.`hostId` + + AND `hostPageTotal`.`httpCode` = 200 + AND `hostPageTotal`.`timeBanned` IS NULL + AND `hostPageTotal`.`mime` IS NOT NULL + + ) AS `total`, + ( SELECT COUNT(*)