From d9c40857ddf8ffd4d0f40dbb99022109cbde3410 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 26 Aug 2025 01:28:02 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BE?= =?UTF-8?q?=D0=BA=20=D0=BD=D0=B0=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D1=86=D1=83=20api.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/dns.sqlite | 0 public/api.php | 3 +++ 2 files changed, 3 insertions(+) delete mode 100644 db/dns.sqlite diff --git a/db/dns.sqlite b/db/dns.sqlite deleted file mode 100644 index e69de29..0000000 diff --git a/public/api.php b/public/api.php index 8645759..e3edfc2 100644 --- a/public/api.php +++ b/public/api.php @@ -4,3 +4,6 @@ $db = new PDO("sqlite:../db/dns.sqlite"); $topDomains = $db->query("SELECT domain, COUNT(*) as hits FROM logs GROUP BY domain ORDER BY hits DESC LIMIT 10")->fetchAll(PDO::FETCH_ASSOC); echo json_encode($topDomains); +ini_set('display_errors', 1); +ini_set('display_startup_errors', 1); +error_reporting(E_ALL); \ No newline at end of file