* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ /** * \file htdocs/admin/tools/dolibarr_export.php * \ingroup core * \brief Page to export database * \version $Id: dolibarr_export.php,v 1.40 2011/08/03 00:45:43 eldy Exp $ */ require("../../main.inc.php"); require_once(DOL_DOCUMENT_ROOT."/core/class/html.formfile.class.php"); include_once $dolibarr_main_document_root."/lib/databases/".$conf->db->type.".lib.php"; $langs->load("admin"); if (! $user->admin) accessforbidden(); $html=new Form($db); $formfile = new FormFile($db); /* * View */ llxHeader('','','EN:Backups|FR:Sauvegardes|ES:Copias_de_seguridad'); ?> trans("Backup"),'','setup'); print $langs->trans("BackupDesc",DOL_DATA_ROOT).'

'; print $langs->trans("BackupDesc2",DOL_DATA_ROOT).'
'; print $langs->trans("BackupDescX").'

'; print $langs->trans("BackupDesc3",DOL_DATA_ROOT).'
'; print $langs->trans("BackupDescY").'

'; if ($_GET["msg"]) { print '
'.$_GET["msg"].'
'; print '
'; print "\n"; } ?>
'.$langs->trans("DatabaseName").' : '.$dolibarr_main_db_name.''; ?>
trans("ExportMethod"); ?> label == 'MySQL') { ?>
label == 'PostgreSQL') { ?>
label; } ?>
label == 'MySQL') { ?>
trans("MySqlExportParameters"); ?>
trans("FullPathToMysqldumpCommand"); if (empty($conf->global->SYSTEMTOOLS_MYSQLDUMP)) { $fullpathofmysqldump=$db->getPathOfDump(); } else { $fullpathofmysqldump=$conf->global->SYSTEMTOOLS_MYSQLDUMP; } ?>

trans("ExportOptions"); ?>









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

trans("ExportOptions"); ?>



: " />

array('function' => '', 'id' => 'radio_compression_none', 'label' => $langs->trans("None")), // 'zip' => array('function' => 'zip_open', 'id' => 'radio_compression_zip', 'label' => $langs->trans("Zip")), Not open source 'gz' => array('function' => 'gzopen', 'id' => 'radio_compression_gzip', 'label' => $langs->trans("Gzip")), ); if ($db->label == 'MySQL') { $compression['bz']=array('function' => 'bzopen', 'id' => 'radio_compression_bzip', 'label' => $langs->trans("Bzip2")); } // Show compression choices print '
'; print "\n"; print $langs->trans("Compression").':   '; foreach($compression as $key => $val) { if (! $val['function'] || function_exists($val['function'])) // Enabled export format { print ''; print ' '; } else // Disabled export format { print ''; print ' '; print ' ('.$langs->trans("NotAvailable").')'; } print '     '; } print '
'; print "\n"; ?>
" 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: 2011/08/03 00:45:43 $ - $Revision: 1.40 $'); ?>