adding data backup button -- restore button coming soon
edited php headers for new homepage layout
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ Note the following:
|
||||
<frame name="topNav" src="top.html" scrolling="off">
|
||||
<frameset cols="150,*" frameborder="0" border="0" framespacing="0">
|
||||
<frame name="menu" src="menu.html" marginheight="0" marginwidth="0" scrolling="auto" noresize>
|
||||
<frame name="content" src="http://birdnetpi.local/viewdb.php" marginheight="0" marginwidth="0" scrolling="auto" noresize>
|
||||
<frame name="content" src="/viewdb.php" marginheight="0" marginwidth="0" scrolling="auto" noresize>
|
||||
</frameset>
|
||||
|
||||
<frame name="footer" src="footer.html" scrolling="off">
|
||||
|
||||
@@ -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