Skip to content
Snippets Groups Projects
Commit 293a611f authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

New: Ajout outil de dump par mysqldump

parent 532fff5e
No related branches found
No related tags found
No related merge requests found
...@@ -32,6 +32,9 @@ $langs->load("admin"); ...@@ -32,6 +32,9 @@ $langs->load("admin");
if (! $user->admin) if (! $user->admin)
accessforbidden(); accessforbidden();
$html=new Form($db);
llxHeader(); llxHeader();
...@@ -42,6 +45,10 @@ print '<br>'; ...@@ -42,6 +45,10 @@ print '<br>';
print $langs->trans("DatabaseName").' : <b>'.$dolibarr_main_db_name.'</b><br>'; print $langs->trans("DatabaseName").' : <b>'.$dolibarr_main_db_name.'</b><br>';
print '<br>'; print '<br>';
$result=$html->show_documents('systemtools','',DOL_DATA_ROOT.'/admin/temp',$_SERVER['PHP_SELF'],0,1);
if ($result) print '<br><br>';
?> ?>
...@@ -86,7 +93,7 @@ function show_checked_option() { ...@@ -86,7 +93,7 @@ function show_checked_option() {
</script> </script>
<fieldset id="fieldsetexport"> <fieldset id="fieldsetexport">
<legend>Schma et/ou contenu des bases de donnes <legend><?php echo $langs->trans("NewBackup"); ?>
</legend> </legend>
...@@ -533,7 +540,7 @@ if (function_exists('bz_open')) ...@@ -533,7 +540,7 @@ if (function_exists('bz_open'))
<center> <center>
<input type="submit" class="button" value="Excuter" id="buttonGo" /><br><br> <input type="submit" class="button" value="<?php echo $langs->trans("NewBackup") ?>" id="buttonGo" /><br><br>
</center> </center>
......
...@@ -40,8 +40,9 @@ $action = $_GET["action"]; ...@@ -40,8 +40,9 @@ $action = $_GET["action"];
$original_file = urldecode($_GET["file"]); $original_file = urldecode($_GET["file"]);
$modulepart = urldecode($_GET["modulepart"]); $modulepart = urldecode($_GET["modulepart"]);
$urlsource = urldecode($_GET["urlsource"]); $urlsource = urldecode($_GET["urlsource"]);
// Dfini type et attachment // Dfini type (attachment=1 pour forcer popup 'enregistrer sous')
$type = urldecode($_GET["type"]); $attachment = true; $type = urldecode($_GET["type"]); $attachment = true;
if (eregi('\.sql',$original_file)) { $type='text/plain'; $attachment = true; }
if (eregi('\.html',$original_file)) { $type='text/html'; $attachment = false; } if (eregi('\.html',$original_file)) { $type='text/html'; $attachment = false; }
if (eregi('\.csv',$original_file)) { $type='text/csv'; $attachment = true; } if (eregi('\.csv',$original_file)) { $type='text/csv'; $attachment = true; }
if (eregi('\.pdf',$original_file)) { $type='application/pdf'; $attachment = true; } if (eregi('\.pdf',$original_file)) { $type='application/pdf'; $attachment = true; }
......
...@@ -43,6 +43,7 @@ System=System ...@@ -43,6 +43,7 @@ System=System
SystemInfo=System informations SystemInfo=System informations
SystemTools=System tools SystemTools=System tools
SystemToolsArea=System tools area SystemToolsArea=System tools area
NewBackup=New backup
Backup=Backup Backup=Backup
Restore=Restore Restore=Restore
RunCommandSummary=Backup will be done through the following command RunCommandSummary=Backup will be done through the following command
......
...@@ -43,6 +43,7 @@ System=Syst ...@@ -43,6 +43,7 @@ System=Syst
SystemInfo=Infos Système SystemInfo=Infos Système
SystemTools=Outils Système SystemTools=Outils Système
SystemToolsArea=Espace outils systèmes SystemToolsArea=Espace outils systèmes
NewBackup=Nouvelle sauvegarde
Backup=Sauvegarde Backup=Sauvegarde
Restore=Restauration Restore=Restauration
RunCommandSummary=La sauvegarde sera exécutée par la commande suivante RunCommandSummary=La sauvegarde sera exécutée par la commande suivante
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment