Date: Fri, 10 Jun 2022 08:58:40 -0400
Subject: [PATCH 3/4] removed question mark from flicker user line
---
scripts/config.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/config.php b/scripts/config.php
index 0ed2036..dde9d52 100644
--- a/scripts/config.php
+++ b/scripts/config.php
@@ -195,7 +195,7 @@ https://discordapp.com/api/webhooks/{WebhookID}/{WebhookToken}
Bird Photos from Flickr
-
+
Set your Flickr API key to enable the display of bird images next to detections. Get your free key here.
Localization
From 1407b718b1df983a76fc69116521f39af3ee3662 Mon Sep 17 00:00:00 2001
From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com>
Date: Fri, 10 Jun 2022 09:47:49 -0400
Subject: [PATCH 4/4] Update config.php
---
scripts/config.php | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/scripts/config.php b/scripts/config.php
index dde9d52..159f8e4 100644
--- a/scripts/config.php
+++ b/scripts/config.php
@@ -13,6 +13,11 @@ function syslog_shell_exec($cmd, $sudo_user = null) {
}
}
+if(isset($_GET['restart_php']) && $_GET['restart_php'] == "true") {
+ shell_exec("sudo service php7.4-fpm restart");
+ die();
+}
+
# Basic Settings
if(isset($_GET["latitude"])){
$latitude = $_GET["latitude"];
@@ -39,6 +44,13 @@ if(isset($_GET["latitude"])){
if(isset($timezone)) {
shell_exec("sudo timedatectl set-timezone ".$timezone);
+ date_default_timezone_set($timezone);
+ echo "";
}
// logic for setting the date and time based on user inputs from the form below