diff --git a/htdocs/admin/tools/dolibarr_export.php b/htdocs/admin/tools/dolibarr_export.php index 5c8254bb24b..19d57bc25eb 100644 --- a/htdocs/admin/tools/dolibarr_export.php +++ b/htdocs/admin/tools/dolibarr_export.php @@ -30,7 +30,7 @@ include_once $dolibarr_main_document_root."/lib/databases/".$conf->db->type.".li $langs->load("admin"); if (! $user->admin) - accessforbidden(); +accessforbidden(); $html=new Form($db); @@ -38,11 +38,27 @@ $formfile = new FormFile($db); /* -* View -*/ + * View + */ llxHeader('','','EN:Backups|FR:Sauvegardes|ES:Copias_de_seguridad'); +?> + +trans("Backup"),'','setup'); print $langs->trans("BackupDesc",DOL_DATA_ROOT).'

'; @@ -61,526 +77,203 @@ if ($_GET["msg"]) ?> - - -
- + - +
+'.$langs->trans("DatabaseName").' : '.$dolibarr_main_db_name.''; ?> + + + + + +
- - -
+
- -
+
+ label == 'MySQL') + { + ?> +
trans("MySqlExportParameters"); ?> -trans("DatabaseName").' : '.$dolibarr_main_db_name.'
'; -print '
'; -?> - -
-
-trans("ExportMethod"); ?> -label == 'MySQL') -{ -?> -
- - -
-label == 'PostgreSQL') -{ -?> -
- - -
-label; -} -?> - -
-
- -
- - -
- -label == 'MySQL') -{ -?> - -
- trans("MySqlExportParameters"); ?> - -
- trans("FullPathToMysqldumpCommand"); - if (empty($conf->global->SYSTEMTOOLS_MYSQLDUMP)) - { +
trans("FullPathToMysqldumpCommand"); + if (empty($conf->global->SYSTEMTOOLS_MYSQLDUMP)) + { $fullpathofmysqldump=$db->getPathOfDump(); - } - else - { - $fullpathofmysqldump=$conf->global->SYSTEMTOOLS_MYSQLDUMP; - } - ?>
- -
+ } + else + { + $fullpathofmysqldump=$conf->global->SYSTEMTOOLS_MYSQLDUMP; + } + ?>
+
-
-
- trans("ExportOptions"); ?> -
- - +
+
trans("ExportOptions"); ?> +
-
+
-
- - -
- +
+
+ - +
+ +
-
- - -
+
+

+
-
-
- - - - +
+

- -
-
+
-
-
- +
- - -
- -
+
- -
+
- +
+
+ - trans("DelayedInsert"); ?>
+ if ($db->label == 'PostgreSQL') + { + ?> +
trans("PostgreSqlExportParameters"); ?> - -
- - -
- -
- -label == 'PostgreSQL') -{ -?> - -
- trans("PostgreSqlExportParameters"); ?> - -
- trans("FullPathToPostgreSQLdumpCommand"); - if (empty($conf->global->SYSTEMTOOLS_POSTGRESQLDUMP)) - { +
trans("FullPathToPostgreSQLdumpCommand"); + if (empty($conf->global->SYSTEMTOOLS_POSTGRESQLDUMP)) + { $fullpathofpgdump=$db->getPathOfDump(); - } - else - { - $fullpathofpgdump=$conf->global->SYSTEMTOOLS_POSTGRESQLDUMP; - } - ?>
- -
+ } + else + { + $fullpathofpgdump=$conf->global->SYSTEMTOOLS_POSTGRESQLDUMP; + } + ?>
+
-
-
- trans("ExportOptions"); ?> - -
- - -
+
+
trans("ExportOptions"); ?> + +
+ +
-
-
- - - - -
+
+
-
-
- +
+

- - - - -
+
+
+ +
- - - - - - - - - - - - - - - - -
- - +
-
- - : - trans("FileNameToGenerate"); ?> +: " /> - -

+?>" />
+
$val) { if (! $val['function'] || function_exists($val['function'])) { - print ''; + print ''; print ' '; } else @@ -622,52 +314,23 @@ foreach($compression as $key => $val) print ''; print "\n"; -?> - -
+?> -
- " id="buttonGo" />

+
" id="buttonGo" />
+
- - - - show_documents('systemtools','backup',$conf->admin->dir_output.'/backup',$_SERVER['PHP_SELF'],0,1,'',1,0,0,54,0,'',$langs->trans("PreviousDumpFiles")); //if ($result) print '

'; - +$db->close(); llxFooter('$Date$ - $Revision$'); ?> \ No newline at end of file diff --git a/htdocs/admin/tools/dolibarr_import.php b/htdocs/admin/tools/dolibarr_import.php index 1f8d311f343..d053e6fba2c 100644 --- a/htdocs/admin/tools/dolibarr_import.php +++ b/htdocs/admin/tools/dolibarr_import.php @@ -38,6 +38,22 @@ if (! $user->admin) llxHeader('','','EN:Restores|FR:Restaurations|ES:Restauraciones'); +?> + +trans("Restore"),'','setup'); print $langs->trans("RestoreDesc",DOL_DATA_ROOT).'

'; @@ -46,31 +62,9 @@ print $langs->trans("RestoreDesc3",DOL_DATA_ROOT).'

'; ?> - - - -
+'.$langs->trans("DatabaseName").' : '.$dolibarr_main_db_name.''; ?>
-trans("DatabaseName").' : '.$dolibarr_main_db_name.'
'; -print '
'; -?>
@@ -78,12 +72,7 @@ print '
';
- onclick=" - if (this.checked) { - hide_them_all(); - document.getElementById('mysql_options').style.display = 'block'; - }; return true" - /> + />
@@ -130,11 +119,6 @@ if ($db->label == 'MySQL') } ?> -
@@ -142,33 +126,9 @@ if ($db->label == 'MySQL')
- - - close(); + llxFooter('$Date$ - $Revision$'); ?> \ No newline at end of file diff --git a/htdocs/admin/tools/export.php b/htdocs/admin/tools/export.php index f86968ddf95..5d07ddfab42 100644 --- a/htdocs/admin/tools/export.php +++ b/htdocs/admin/tools/export.php @@ -136,14 +136,14 @@ if ($what == 'mysql') $paramclear.=" -p".$dolibarr_main_db_pass; } - print $langs->trans("RunCommandSummary").':
'."\n"; + print ''.$langs->trans("RunCommandSummary").':
'."\n"; print '
'."\n"; print '
'; // Now run command and show result - print $langs->trans("BackupResult").': '; + print ''.$langs->trans("BackupResult").': '; $errormsg='';