New: Ajout outil de dump par mysqldump
This commit is contained in:
parent
532fff5eef
commit
293a611f3e
@ -33,6 +33,9 @@ $langs->load("admin");
|
|||||||
if (! $user->admin)
|
if (! $user->admin)
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
|
|
||||||
|
$html=new Form($db);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
@ -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() {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<fieldset id="fieldsetexport">
|
<fieldset id="fieldsetexport">
|
||||||
<legend>Schéma et/ou contenu des bases de données
|
<legend><?php echo $langs->trans("NewBackup"); ?>
|
||||||
</legend>
|
</legend>
|
||||||
|
|
||||||
|
|
||||||
@ -533,7 +540,7 @@ if (function_exists('bz_open'))
|
|||||||
|
|
||||||
|
|
||||||
<center>
|
<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>
|
</center>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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"]);
|
||||||
// Défini type et attachment
|
// Défini 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
|
|||||||
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
|
|||||||
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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user