index.php 1.35 KB
<?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>