From 0fb2e8a78c7905e14d7dde3ee4e0ffc6d97a3947 Mon Sep 17 00:00:00 2001 From: ghost Date: Thu, 27 Jul 2023 16:53:25 +0300 Subject: [PATCH] fix active pages total --- library/mysql.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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(*)