Bestanden uploaden naar 'scripts'
This commit is contained in:
1
scripts/sweetalert.min.js
vendored
Normal file
1
scripts/sweetalert.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
57
scripts/sysinfo-showexeclog.php
Normal file
57
scripts/sysinfo-showexeclog.php
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
<html lang="en">
|
||||||
|
<!-- Author: Dmitri Popov, dmpop@linux.com
|
||||||
|
License: GPLv3 https://www.gnu.org/licenses/gpl-3.0.txt -->
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Foto importeer tool</title>
|
||||||
|
<link rel="shortcut icon" href="favicon.png" />
|
||||||
|
<link rel="stylesheet" href="milligram.min.css">
|
||||||
|
<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;
|
||||||
|
}
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="content">
|
||||||
|
<img src="tokyo-taxi.svg" height="51px" alt="Tokyo taxi">
|
||||||
|
<h1>Foto importeer tool</h1>
|
||||||
|
<div class="vl"></div>
|
||||||
|
<h3>Show execution log</h3>
|
||||||
|
<div class="vl"></div>
|
||||||
|
<div style="display: inline-block; text-align: left; padding-right: 10px; padding-left: 10px; padding-bottom: 26px;">
|
||||||
|
<?php
|
||||||
|
$fh = fopen("session-exec-log", 'r');
|
||||||
|
|
||||||
|
$pageText = fread($fh, 2500000);
|
||||||
|
|
||||||
|
echo nl2br($pageText);
|
||||||
|
?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="vl"></div>
|
||||||
|
<form>
|
||||||
|
<input type="button" onClick="history.go(0)" value="Refresh">
|
||||||
|
</form>
|
||||||
|
<form>
|
||||||
|
<input type="button" class="button button-outline" value="Go back" onClick="window.location = 'sysinfo.php';">
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
96
scripts/sysinfo.php
Normal file
96
scripts/sysinfo.php
Normal file
@@ -0,0 +1,96 @@
|
|||||||
|
<html lang="en">
|
||||||
|
<!-- Author: Dmitri Popov, dmpop@linux.com
|
||||||
|
License: GPLv3 https://www.gnu.org/licenses/gpl-3.0.txt -->
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Foto importeer tool</title>
|
||||||
|
<link rel="shortcut icon" href="favicon.png" />
|
||||||
|
<link rel="stylesheet" href="milligram.min.css">
|
||||||
|
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:300,300italic,700,700italic">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<script src="sweetalert.min.js"></script>
|
||||||
|
<style>
|
||||||
|
#content {
|
||||||
|
margin: 0px auto;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="content">
|
||||||
|
<img src="tokyo-taxi.svg" height="51px" alt="Tokyo taxi">
|
||||||
|
<h1>Foto importeer tool</h1>
|
||||||
|
<div class="vl"></div>
|
||||||
|
<h3>Basic system information</h3>
|
||||||
|
<div class="vl"></div>
|
||||||
|
<h3>Devices</h3>
|
||||||
|
<div style="display: inline-block; text-align: left;">
|
||||||
|
<?php
|
||||||
|
echo '<pre>';
|
||||||
|
passthru("lsblk");
|
||||||
|
echo '</pre>';
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
<div class="vl"></div>
|
||||||
|
<h3>Memory (in MB)</h3>
|
||||||
|
<div style="display: inline-block; text-align: left;">
|
||||||
|
<?php
|
||||||
|
echo '<pre>';
|
||||||
|
passthru("free -m");
|
||||||
|
echo '</pre>';
|
||||||
|
?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="vl"></div>
|
||||||
|
<form>
|
||||||
|
<input type="button" onClick="history.go(0)" value="Refresh">
|
||||||
|
</form>
|
||||||
|
<div class="vl"></div>
|
||||||
|
<p>
|
||||||
|
<form method="post">
|
||||||
|
<button class="button button-outline" name="rescan-Nextcloud">Rescan Nextcloud</button>
|
||||||
|
</form>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<form>
|
||||||
|
<input type="button" class="button button-outline" value="Open Webmin" onClick="window.location = 'http://192.168.2.184:10000';">
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<form>
|
||||||
|
<input type="button" class="button button-outline" value="Open NextCloud" onClick="window.location = 'http://192.168.2.184';">
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<div class="vl"></div>
|
||||||
|
<form>
|
||||||
|
<input type="button" class="button" value="Show execution log" onClick="window.location = 'sysinfo-showexeclog.php';">
|
||||||
|
</form>
|
||||||
|
<form>
|
||||||
|
<input type="button" class="button button-outline" value="Go back" onClick="window.history.back();">
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if (isset($_POST['rescan-Nextcloud']))
|
||||||
|
{
|
||||||
|
shell_exec('sudo -u www-data php /var/www/nextcloud/occ files:cleanup');
|
||||||
|
shell_exec('sudo -u www-data php /var/www/nextcloud/occ files:scan --all> session-exec-log &');
|
||||||
|
echo '<script>swal(" ",{title:"Scan Gestart",icon: "info",button: false,});</script>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
104
scripts/tokyo-taxi.svg
Normal file
104
scripts/tokyo-taxi.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 45 KiB |
71
scripts/welcome.php
Normal file
71
scripts/welcome.php
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
<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;
|
||||||
|
}
|
||||||
|
input.custom.button {
|
||||||
|
height: 100px;
|
||||||
|
font-size: 15px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<?php
|
||||||
|
$lastbackupdate = file_get_contents('session-lastbackup');
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="content">
|
||||||
|
<img src="tokyo-taxi.svg" height="51px" alt="Tokyo taxi">
|
||||||
|
<h2>Welkom</h2>
|
||||||
|
<div class="vl"></div>
|
||||||
|
|
||||||
|
<form>
|
||||||
|
<input type="button" class="custom button" value="Impoteer foto's" onClick="window.location = 'step1.php';">
|
||||||
|
</form>
|
||||||
|
<div class="vl"></div>
|
||||||
|
<form>
|
||||||
|
<input type="button" class="custom button button-outline" value="Maak een backup" onClick="window.location = 'backup-step1.php';">
|
||||||
|
</form>
|
||||||
|
<?php echo "<h5>Vorige backup is gemaakt op: $lastbackupdate</h5>";?>
|
||||||
|
<div id="content">
|
||||||
|
<div class="vl"></div>
|
||||||
|
<p><a href="sysinfo.php">System info</a></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user