'scripts/index.php' updaten

This commit is contained in:
2019-06-01 12:27:52 +00:00
parent f3abf57c15
commit 50f3e1034b

View File

@@ -38,18 +38,7 @@
<button name="cardbackup">Card backup</button> <button name="cardbackup">Card backup</button>
</form> </form>
</p> </p>
<p>Transfer files directly from the connected camera</p>
<p>
<form method="post">
<button name="camerabackup">Camera backup</button>
</form>
</p>
<p>Activate the DLNA and Samba servers</p>
<p>
<form method="post">
<button name="minidlna">DLNA & SAMBA</button>
</form>
</p>
<p class="left">Shut down the Little Backup Box</p> <p class="left">Shut down the Little Backup Box</p>
<p> <p>
<form method="post"> <form method="post">
@@ -63,14 +52,6 @@
shell_exec('sudo ./card-backup.sh > /dev/null 2>&1 & echo $!'); shell_exec('sudo ./card-backup.sh > /dev/null 2>&1 & echo $!');
echo "<p>OK</p>"; echo "<p>OK</p>";
} }
if (isset($_POST['camerabackup']))
{
shell_exec('sudo ./camera-backup.sh > /dev/null 2>&1 & echo $!');
echo "<p>OK</p>";
}
if (isset($_POST['minidlna']))
{
shell_exec('sudo ./minidlna.sh > /dev/null 2>&1 & echo $!');
// folder to check // folder to check
$dir = '/media/storage'; $dir = '/media/storage';
@@ -112,7 +93,6 @@
echo "<p>OK</p>"; echo "<p>OK</p>";
} }
?> ?>
Read the <a href="https://gumroad.com/l/linux-photography">Linux Photography</a> book
</div> </div>
</body> </body>
</html> </html>