diff --git a/scripts/config.php b/scripts/config.php index 233d05b..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"]; @@ -24,6 +29,7 @@ if(isset($_GET["latitude"])){ $flickr_api_key = $_GET['flickr_api_key']; $flickr_filter_email = $_GET["flickr_filter_email"]; $language = $_GET["language"]; + $timezone = $_GET["timezone"]; if(isset($_GET['apprise_notify_each_detection'])) { $apprise_notify_each_detection = 1; @@ -36,6 +42,17 @@ if(isset($_GET["latitude"])){ $apprise_notify_new_species = 0; } + 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 if(isset($_GET['date']) && isset($_GET['time'])) { // can't set the date manually if it's getting it from the internet, disable ntp @@ -190,7 +207,7 @@ https://discordapp.com/api/webhooks/{WebhookID}/{WebhookToken}
Set your Flickr API key to enable the display of bird images next to detections. Get your free key here.