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");
if (! $user->admin)
accessforbidden();
$html=new Form($db);
llxHeader();
......@@ -42,6 +45,10 @@ print '<br>';
print $langs->trans("DatabaseName").' : <b>'.$dolibarr_main_db_name.'</b><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() {
</script>
<fieldset id="fieldsetexport">
<legend>Schma et/ou contenu des bases de donnes
<legend><?php echo $langs->trans("NewBackup"); ?>
</legend>
......@@ -533,7 +540,7 @@ if (function_exists('bz_open'))
<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>
......
......@@ -40,8 +40,9 @@ $action = $_GET["action"];
$original_file = urldecode($_GET["file"]);
$modulepart = urldecode($_GET["modulepart"]);
$urlsource = urldecode($_GET["urlsource"]);
// Dfini type et attachment
// Dfini type (attachment=1 pour forcer popup 'enregistrer sous')
$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('\.csv',$original_file)) { $type='text/csv'; $attachment = true; }
if (eregi('\.pdf',$original_file)) { $type='application/pdf'; $attachment = true; }
......
......@@ -43,6 +43,7 @@ System=System
SystemInfo=System informations
SystemTools=System tools
SystemToolsArea=System tools area
NewBackup=New backup
Backup=Backup
Restore=Restore
RunCommandSummary=Backup will be done through the following command
......
......@@ -43,6 +43,7 @@ System=Syst
SystemInfo=Infos Système
SystemTools=Outils Système
SystemToolsArea=Espace outils systèmes
NewBackup=Nouvelle sauvegarde
Backup=Sauvegarde
Restore=Restauration
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