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