-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
49 lines (44 loc) · 1.44 KB
/
index.php
File metadata and controls
49 lines (44 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="includes/favicon.svg" type="image/x-icon">
<link rel="stylesheet" href="includes/style.css">
<title>simpleBackup</title>
</head>
<?php
error_reporting(0);
date_default_timezone_set('Europe/Berlin');
require('config_backup.php');
if (isset($_POST['start'])) {
if ($doFileBackup) {
require('backup_files.php');
}
if ($doDBBackup) {
require('backup_db.php');
}
if (!$doFileBackup && !$doDBBackup) {
$output = '<div class="alert-danger">Das Script soll weder ein Datei- noch ein Datenbank-Backup machen. Es bricht nun ab.</div>';
}
}
?>
<body>
<div id="back"><a href="../">Zur übergeordneten Seite</a></div>
<h1>simple-backup</h1>
<hr>
<form action="" method="post">
<input type="submit" value="Backup starten" name="start">
</form>
<div class="alert"><?php
if (isset($output)) {
echo $output;
}
?></div>
<footer>
<a href="https://github.com/onissen/simple-backup">Diese Repository bei GitHub</a> | <a href="README.html">README öffnen</a><br>
© 2022 <a href="https://github.com/onissen">onissen</a> | Version 2.0
</footer>
</body>
</html>