26 require_once(
"../class/config.php");
27 include_once(
"head.php");
30 "id" => array (
"request",
"string",
""),
31 "filename" => array (
"post",
"string",
""),
35 $r=$mysql->get_mysql_details(
$id);
38 <h3><?php
__(
"MySQL Databases"); ?></h3>
42 echo
$msg->msg_html_all();
45 echo
"<p>"._(
"You currently have no database defined").
"</p>";
46 include_once(
"foot.php");
50 <h3
class=
"restore"><?php printf(_(
"Restore a MySQL backup for database %s"),
$r[
"db"]); ?></h3>
53 __(
"Warning: Write the complete path and the filename. <br />For example if your backups are in the directory /Backups,<br />write /Backups/file.sql.gz (where file.sql.gz is the filename).");
56 <form action=
"sql_dorestore.php" method=
"post">
58 <input type=
"hidden" name=
"id" value=
"<?php ehe($id); ?>" />
59 <p><label
for=
"restfile"><?php
__(
"Please enter the path and the filename containing SQL data to be restored."); ?></label></p>
60 <p><input type=
"text" class=
"int" id=
"restfile" name=
"restfile" size=
"35" maxlength=
"255" value=
"<?php ehe($filename); ?>" /> <input
class=
"inb" type=
"submit" name=
"submit" onClick=
'return restfilenotempty();' value=
"<?php __("Restore my database
"); ?>" /><i>
61 <br /><?php
__(
"Tip: you can restore a file directly in the File Browser");?></i></p>
63 <script type=
"text/javascript">
64 function restfilenotempty() {
65 if ( $(
'#restfile').val() ==
'' ) {
66 alert(
"<?php __("Please the complete path of the filename
");?>");
75 __(
"Note: If the filename ends with .gz, it will be uncompressed before.");
78 <?php include_once(
"foot.php"); ?>
getFields($fields, $requestOnly=false)
Get the Fields of the posted form from $_REQUEST or POST or GET and check their type.
csrf_get($return=false)
Give a new CSRF uniq token for a form the session must be up since the CSRF is linked to the session ...
$fields
Restore a MySQL database for an account.
if(!isset($is_include)) if(! $key &&! $crt) $id