From ca33bbff5905dc816a7c81247d6ec0a55c4aed57 Mon Sep 17 00:00:00 2001
From: Alan Garcia
Date: Sun, 3 Mar 2013 13:23:22 +0000
Subject: [PATCH] Permet de restaurer un dump SQL depuis l'explorateur de
fichier.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Plus facile pour sélectionner un dump ;)
---
bureau/admin/bro_main.php | 33 +++++++++++++++++++++++++++++----
bureau/admin/sql_restore.php | 5 +++--
bureau/class/m_bro.php | 10 ++++++++++
3 files changed, 42 insertions(+), 6 deletions(-)
diff --git a/bureau/admin/bro_main.php b/bureau/admin/bro_main.php
index 0f356cb1..7b8a02d4 100644
--- a/bureau/admin/bro_main.php
+++ b/bureau/admin/bro_main.php
@@ -284,16 +284,27 @@ if (count($c)) {
" />
" />
|
- " />
- " />
+ " onClick=" return actmoveto_not_empty();"/>
+ " onClick=" return actmoveto_not_empty();"/>
-
+
+
+
+
";
}
+ $ez = $bro->is_sqlfile($R,$c[$i]["name"]);
+ if ($ez) {
+ echo " ";
+ echo _("Restore SQL");
+ echo "";
+ echo "";
+ }
echo "\n";
} else { // DOSSIER :
@@ -365,7 +390,7 @@ if (count($c)) {
}
echo "".htmlentities($c[$i]["name"])."/ | \n";
+ echo "\">"; ehe($c[$i]["name"]) ;"/\n";
echo " ".format_size($c[$i]["size"])." | ";
echo "".format_date(_('%3$d-%2$d-%1$d %4$d:%5$d'),date("Y-m-d h:i:s",$c[$i]["date"]))."
| ";
if ($p["showtype"]) {
diff --git a/bureau/admin/sql_restore.php b/bureau/admin/sql_restore.php
index 94484202..5e16c869 100644
--- a/bureau/admin/sql_restore.php
+++ b/bureau/admin/sql_restore.php
@@ -31,7 +31,8 @@ require_once("../class/config.php");
include_once("head.php");
$fields = array (
- "id" => array ("request", "string", ""),
+ "id" => array ("request", "string", ""),
+ "filename" => array ("request", "string", ""),
);
getFields($fields);
@@ -59,7 +60,7 @@ echo "
";