'scripts/index.php' updaten
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user