From 1b2f3e16b36e20edd2e6555574cad19eecd025d6 Mon Sep 17 00:00:00 2001 From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com> Date: Fri, 24 Mar 2023 13:41:34 -0400 Subject: [PATCH] Backlog clarification --- scripts/overview.php | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/scripts/overview.php b/scripts/overview.php index 3246012..6c324a3 100644 --- a/scripts/overview.php +++ b/scripts/overview.php @@ -24,6 +24,14 @@ $user = shell_exec("awk -F: '/1000/{print $1}' /etc/passwd"); $home = shell_exec("awk -F: '/1000/{print $6}' /etc/passwd"); $home = trim($home); +$statement2 = $db->prepare('SELECT COUNT(*) FROM detections WHERE Date == DATE(\'now\', \'localtime\')'); +if($statement2 == False) { + echo "Database is busy"; + header("refresh: 0;"); +} +$result2 = $statement2->execute(); +$todaycount = $result2->fetchArray(SQLITE3_ASSOC); + if(isset($_GET['custom_image'])){ if(isset($config["CUSTOM_IMAGE"])) { ?> @@ -216,7 +224,11 @@ if(isset($_GET['ajax_detections']) && $_GET['ajax_detections'] == "true" && isse } } if($iterations == 0) { - echo "