diff --git a/homepage/views.php b/homepage/views.php index a3414be..464fee1 100644 --- a/homepage/views.php +++ b/homepage/views.php @@ -13,6 +13,8 @@ $config = get_config(); $color_scheme = get_color_scheme(); set_timezone(); +$restore = "cat $home/BirdSongs/restore.log"; + if(is_authenticated() && (!isset($_SESSION['behind']) || !isset($_SESSION['behind_time']) || time() > $_SESSION['behind_time'] + 86400)) { shell_exec("sudo -u".$user." git -C ".$home."/BirdNET-Pi fetch > /dev/null 2>/dev/null &"); $str = trim(shell_exec("sudo -u".$user." git -C ".$home."/BirdNET-Pi status")); @@ -71,7 +73,9 @@ elseif ($config["LONGITUDE"] == "0.000") { - + +