index.php
1.35 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
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
require_once('backup_restore.class.php');
/** config. php * */
$db_host = "52.65.125.87";
$db_user = "reizedbadmin";
$db_pass = "W0mbatSoup2217$!";
$db_name = "reize";
/* * ************* */
$newImport = new backup_restore($db_host, $db_name, $db_user, $db_pass);
if (isset($_REQUEST['backup'])) {
//call of backup function
$message = $newImport->backup();
echo "Download THE <a href='" . $message . "' >SQL FILE </a> OR RESTORE IT ANY TIME";
}
if (isset($_REQUEST['restore'])) {
//call of restore function
$message = $newImport->restore();
echo $message;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Buffer Now (Back up And Restore Script)</title>
</head>
<body>
<table align="center" width="50%"><tr>
<form method='post'>
<td>
<input type="submit" name="backup" value="I will make Backup">
</td><td>
<input type="submit" name="restore" value="I Will Restore">
</form></td></tr></table>
</body>