From 293d2e7d21c4b73c51aca34e79d98d9735be1a3d Mon Sep 17 00:00:00 2001 From: Brice Johnson Date: Thu, 14 Jan 2016 23:26:58 -0600 Subject: [PATCH] Added top domains for queries and ads --- api.php | 41 +++++++++++++++++++++++++++++++++++++---- 1 file changed, 37 insertions(+), 4 deletions(-) diff --git a/api.php b/api.php index 0611d835..dac2a580 100644 --- a/api.php +++ b/api.php @@ -1,13 +1,46 @@ $domains_being_blocked, 'dns_queries_today' => $dns_queries_today, 'ads_blocked_today' => $ads_blocked_today, - 'ads_percentage_today' => $ads_percentage_today + 'ads_percentage_today' => $ads_percentage_today, + 'top_queries' => topItems($dns_queries), + 'top_ads' => topItems($ads_blocked), ); header('Content-type: application/json');