From a386bd1e70fed261d1047067f7d9cc37f689f14a Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Wed, 5 Jun 2019 22:03:16 +0000 Subject: [PATCH] Bestanden uploaden naar 'scripts' --- scripts/start-import.php | 4 + scripts/step1.php | 92 ++++++++++++++++++++++ scripts/step2.php | 165 +++++++++++++++++++++++++++++++++++++++ scripts/step3.php | 129 ++++++++++++++++++++++++++++++ scripts/step4.php | 151 +++++++++++++++++++++++++++++++++++ 5 files changed, 541 insertions(+) create mode 100644 scripts/start-import.php create mode 100644 scripts/step1.php create mode 100644 scripts/step2.php create mode 100644 scripts/step3.php create mode 100644 scripts/step4.php diff --git a/scripts/start-import.php b/scripts/start-import.php new file mode 100644 index 0000000..c027991 --- /dev/null +++ b/scripts/start-import.php @@ -0,0 +1,4 @@ + session-exec-log &'); + header('Location: loader-import.php') +?> \ No newline at end of file diff --git a/scripts/step1.php b/scripts/step1.php new file mode 100644 index 0000000..79e17e4 --- /dev/null +++ b/scripts/step1.php @@ -0,0 +1,92 @@ + + + + Foto importeer app + + + + + + + + + +
+ Tokyo taxi +

Foto importeer app

+
+

Stap 1

+
+

Stop de SD-kaart in de kaartlezer.

+

Wacht vervolgens 10-15 seconden,
druk dan op volgende stap.

+ +
+ +
+
+
+

Importeer tool uitzetten

+

+

+ +
+

+

System info

+
+ + +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 @@ + + + + Foto importeer app + + + + + + + + + +
+ Tokyo taxi +

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

+

+

+ +
+

+ +

System info

+ +
+ + + + 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 + + + + + + + + + +
+ Tokyo taxi +

Foto importeer app

+
+

Stap 3

+
+

Controleer de naam voor het album zo correct is

+
+ + + De gekoze naam is:
$output"; + ?> + + + + + + + + + + +
+
+ +
+
+
+ +
+
+
+

Importeer tool uitzetten

+

+

+ +
+

+

System info

+ + +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 + + + + + + + + + +
+ Tokyo taxi +

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

+

+

+ +
+

+

System info

+ + + +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