26 require_once(
"../class/config.php");
28 include_once(
"head.php");
30 "id" => array (
"post",
"string",
""),
31 "restfile" => array (
"post",
"string",
""),
36 <h3><?php
__(
"MySQL Databases"); ?></h3>
42 $r=$mysql->get_mysql_details(
$id);
44 if (!
$r[
"enabled"]) {
45 echo
"<p class=\"alert alert-danger\">"._(
"You currently have no database defined").
"</p>";
46 include_once(
"foot.php");
51 <h3><?php
__(
"Restore a SQL backup"); ?></h3>
55 if ($mysql->restore($restfile,
true,
$id)) {
56 $msg->raise(
"INFO",
"mysql", _(
"Your database have been restored, check out the previous text for error messages."));
59 echo
$msg->msg_html_all();
62 <?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.
$fields
restore (do it) a MySQL database
if(!isset($is_include)) if(! $key &&! $crt) $id