adding data backup button -- restore button coming soon
edited php headers for new homepage layout
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
shell_exec("/home/pi/BirdNET-Pi/scripts/clear_all_data.sh");
|
||||
header('Location: http://birdnetpi.local/scripts/index.html?success=true');
|
||||
header('Location: /viewdb.php');
|
||||
?>
|
||||
|
||||
@@ -27,6 +27,10 @@
|
||||
<input type="submit" value="Restart Caddy">
|
||||
</form>
|
||||
|
||||
<form action="/scripts/backup_data.php" onclick="return confirm('Backup ALL Data? Warning: This could take a long time.')">
|
||||
<input type="submit" value="Backup ALL data">
|
||||
</form>
|
||||
|
||||
<form action="/scripts/clear_all_data.php" onclick="return confirm('Clear ALL Data? This cannot be undone.')">
|
||||
<input type="submit" value="Clear ALL data">
|
||||
</form>
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
<?php
|
||||
shell_exec("/home/pi/BirdNET-Pi/scripts/reboot_system.sh");
|
||||
header('Location: http://birdnetpi.local/scripts/index.html?success=true');
|
||||
?>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
shell_exec("/home/pi/BirdNET-Pi/scripts/restart_birdnet_analysis.sh");
|
||||
header('Location: http://birdnetpi.local/scripts/index.html?success=true');
|
||||
header('Location: /viewdb.php');
|
||||
?>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
shell_exec("/home/pi/BirdNET-Pi/scripts/restart_birdnet_recording.sh");
|
||||
header('Location: http://birdnetpi.local/scripts/index.html?success=true');
|
||||
header('Location: /viewdb.php');
|
||||
?>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
shell_exec("/home/pi/BirdNET-Pi/scripts/restart_caddy.sh");
|
||||
header('Location: http://birdnetpi.local/scripts/index.html?success=true');
|
||||
header('Location: /viewdb.php');
|
||||
?>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
shell_exec("/home/pi/BirdNET-Pi/scripts/restart_extraction.sh");
|
||||
header('Location: http://birdnetpi.local/scripts/index.html?success=true');
|
||||
header('Location: http://birdnetpi.local:8888');
|
||||
?>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
shell_exec("/home/pi/BirdNET-Pi/scripts/restart_services.sh");
|
||||
header('Location: http://birdnetpi.local/scripts/index.html?success=true');
|
||||
header('Location: /viewdb.php');
|
||||
?>
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
<?php
|
||||
shell_exec("/home/pi/BirdNET-Pi/scripts/shutdown_system.sh");
|
||||
header('Location: http://birdnetpi.local/scripts/index.html?success=true');
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user