New: Ajout outil de dump par mysqldump

This commit is contained in:
Laurent Destailleur 2006-08-20 19:31:30 +00:00
parent 532fff5eef
commit 293a611f3e
4 changed files with 13 additions and 3 deletions

View File

@ -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>Schéma et/ou contenu des bases de données
<legend><?php echo $langs->trans("NewBackup"); ?>
</legend>
@ -533,7 +540,7 @@ if (function_exists('bz_open'))
<center>
<input type="submit" class="button" value="Exécuter" id="buttonGo" /><br><br>
<input type="submit" class="button" value="<?php echo $langs->trans("NewBackup") ?>" id="buttonGo" /><br><br>
</center>

View File

@ -40,8 +40,9 @@ $action = $_GET["action"];
$original_file = urldecode($_GET["file"]);
$modulepart = urldecode($_GET["modulepart"]);
$urlsource = urldecode($_GET["urlsource"]);
// Défini type et attachment
// Défini 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; }

View File

@ -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

View File

@ -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