Bestanden uploaden naar 'scripts'

This commit is contained in:
2019-08-24 22:00:35 +00:00
parent 1b5b4ef288
commit e13d6ce083
5 changed files with 549 additions and 0 deletions

115
scripts/step3.php Normal file
View File

@@ -0,0 +1,115 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>Foto importeer app</title>
<link rel="shortcut icon" href="favicon.png" />
<link rel="stylesheet" href="milligram.min.css">
<script src="sweetalert.min.js"></script>
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:300,300italic,700,700italic">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
#content {
margin: 0px auto;
text-align: center;
}
h2 {
letter-spacing: 3px;
}
img {
display: block;
margin-left: auto;
margin-right: auto;
margin-top: 1%;
margin-bottom: 1%;
}
.vl {
border-top: 1px solid #9b4dca;
padding-top: 10px;
padding-bottom: 15px;
}
.colcontent {
display: none;
overflow: hidden;
}
button.collapsible {
margin-bottom: 26px;
}
.collapsible {
width: 180px;
}
th.space {
padding-left: 10%;
}
form {
margin-bottom: 0px !important;
}
</style>
</head>
<body>
<div id="content">
<img src="tokyo-taxi.svg" height="51px" alt="Tokyo taxi">
<h2>Foto importeer app</h2>
<div class="vl"></div>
<h3>Stap 3</h3>
<div class="vl"></div>
<h4>Controleer de naam voor het album zo correct is</h4>
<div class="vl"></div>
<?php
$output = shell_exec("bash -c 'source session-name; echo \$rawdata'");
echo "<h4>De gekoze naam is:<br>$output</h4>";
?>
<table>
<tr>
<th class=space></th>
<th class=prev>
<form method="post">
<button class="button button-outline" name="prev">Nee, vorige Stap</button>
</form>
</th>
<th class=next>
<form method="post">
<button name="next">Ja, volgende Stap</button>
</form>
</th>
<th class=space></th>
</tr>
</table>
<div class="vl"></div>
<p><a href="sysinfo.php">System info</a></p>
<script>
var coll = document.getElementsByClassName("collapsible");
var i;
for (i = 0; i < coll.length; i++) {
coll[i].addEventListener("click", function() {
this.classList.toggle("active");
var colcontent = this.nextElementSibling;
if (colcontent.style.display === "block") {
colcontent.style.display = "none";
} else {
colcontent.style.display = "block";
}
});
}
</script>
<?php
if (isset($_POST['prev']))
{
header('Location: step2.php');
}
if (isset($_POST['next']))
{
header('Location: step4.php');
}
?>
</body>
</html>