Foto importeer app
+ +Stap 1
+ +Stop de SD-kaart in de kaartlezer.
+ Wacht vervolgens 10-15 seconden,
druk dan op volgende stap.
+
+
+
+
+
+swal("De SD kaart is gevonden", "", "success").then(function() {
+ window.location = "step2.php";
+});
+ ';
+
+}
+ if ($shellout==0) {
+ echo '';
+}
+}
+
+ if (isset($_POST['shutdown']))
+ {
+ shell_exec('sudo shutdown -h 1');
+ echo '';
+ }
+?>
+
+
+
diff --git a/scripts/step2.php b/scripts/step2.php
new file mode 100644
index 0000000..7d03c8f
--- /dev/null
+++ b/scripts/step2.php
@@ -0,0 +1,165 @@
+
+
+
+
+
+
+
+
+
+ session-name");
+ header('Location: step3.php');
+ }
+
+ if (isset($_POST['cardbackupWnameadate']))
+ {
+ $rawdate = $_REQUEST['backupdatefield'];
+ $rawname = $_REQUEST['backupnamefield'];
+ $rawdata = $rawdate .' '. $rawname;
+ $editeddata = str_replace(' ', '_', $rawdata);
+ shell_exec("echo rawdata='".$editeddata."' > session-name");
+ header('Location: step3.php');
+ }
+
+ if (isset($_POST['cardbackupWname']))
+ {
+ $rawdata = $_REQUEST['backupnamefield'];
+ $editeddata = str_replace(' ', '_', $rawdata);
+ shell_exec("echo rawdata=''".$editeddata."'' > session-name");
+ header('Location: step3.php');
+ }
+
+ if (isset($_POST['cardbackupWdate']))
+ {
+ $rawdata = $_REQUEST['backupdatefield'];
+ $editeddata = str_replace(' ', '_', $rawdata);
+ shell_exec("echo rawdata='".$editeddata."' > session-name");
+ header('Location: step3.php');
+
+ }
+
+ if (isset($_POST['shutdown']))
+ {
+ shell_exec('sudo shutdown -h 1');
+ echo '';
+ }
+?>
+
+
+
diff --git a/scripts/step3.php b/scripts/step3.php
new file mode 100644
index 0000000..539dfc7
--- /dev/null
+++ b/scripts/step3.php
@@ -0,0 +1,129 @@
+
+
+
+ Foto importeer app
+ +Stap 2
+ ++
Vul hieronder de album informatie in
+Het album word aangemaakt als: <Datum> <Albumnaam>
++
+ + + + +
+
+
+
+
+ Het album word aangemaakt met datum van vandaag
+ + + +Het album word aangemaakt als: <Album naam>
++
+ + +Het album word aangemaakt als: <Datum>
++
+ +Importeer tool uitzetten
++
+ + + + +
+
+
$output"; + ?> + + + +
+
+
+ Foto importeer app
+
+
+
+
+
+
+
+
+
+
Foto importeer app
+ +Stap 3
+ +Controleer de naam voor het album zo correct is
+ + + + De gekoze naam is:$output"; + ?> + + + +
| + | + + | ++ + | ++ |
|---|
Importeer tool uitzetten
++
+ + + + +swal(" ",{title:"De importeer tool word uitgeschakeld",icon: "info",button: false,});'; + } +?> + + + diff --git a/scripts/step4.php b/scripts/step4.php new file mode 100644 index 0000000..a770428 --- /dev/null +++ b/scripts/step4.php @@ -0,0 +1,151 @@ + + + +
+
+
Foto importeer app
+ +Stap 4
+ +Importeer foto's en verwijder van de SD kaart
+ + + +
+
+
+
+ Importeer foto's en laat deze op de SD kaart staan
+ + +Kopieer alle data vanaf de SD kaart
+ + +Verplaats alle data vanaf de SD kaart
+ +Importeer tool uitzetten
++
+ + + + + +swal({title:"Weet u zeker het zeker?",text:"De data word verplaast en blijft dus NET op de SD kaart",icon:"warning",buttons:["Annuleren",!0],dangerMode:!0}).then(e=>{e?window.location.href="step4.php?movebackupok":swal("Geannuleerd","Er is niks uitgevoerd","info")});'; + } + + if (isset($_GET['movebackupok'])) + { + shell_exec("echo \backupmode=move > session-mode"); + header('Location: start-import.php'); + } + + if (isset($_POST['copybackup'])) + { + echo ''; + } + + if (isset($_GET['copyackupok'])) + { + shell_exec("echo \backupmode=copy > session-mode"); + header('Location: start-import.php'); + } + + if (isset($_POST['dumpmovebackup'])) + { +echo ''; + } + + if (isset($_GET['dumpmovebackupok'])) + { + shell_exec("echo \backupmode=dumpmove > session-mode"); + header('Location: start-import.php'); + } + + if (isset($_POST['dumpcopybackup'])) + { + echo ''; + } + + if (isset($_GET['dumpcopyackupok'])) + { + shell_exec("echo \backupmode=dumpcopy > session-mode"); + header('Location: start-import.php'); + } + + if (isset($_POST['shutdown'])) + { + shell_exec('sudo shutdown -h 1'); + echo ''; + } +?> + + \ No newline at end of file