2
0
forked from Wavyzz/dolibarr

Amlioration gestion erreur sauvegarde

This commit is contained in:
Laurent Destailleur
2006-08-24 18:51:59 +00:00
parent d4cf078109
commit aa4cb1b272
4 changed files with 24 additions and 10 deletions

View File

@@ -45,6 +45,13 @@ print '<br>';
print $langs->trans("DatabaseName").' : <b>'.$dolibarr_main_db_name.'</b><br>';
print '<br>';
if ($_GET["msg"])
{
print '<div class="error">'.$_GET["msg"].'</div>';
print '<br>';
print "\n";
}
$result=$html->show_documents('systemtools','',DOL_DATA_ROOT.'/admin/temp',$_SERVER['PHP_SELF'],0,1);
if ($result) print '<br><br>';
@@ -102,7 +109,7 @@ function show_checked_option() {
<div id="div_container_exportoptions">
<fieldset id="exportoptions">
<legend>M<EFBFBD>thode d'exportation</legend>
<legend><?php echo $langs->trans("ExportMethod"); ?></legend>
<div class="formelementrow">
<input type="radio" name="what" value="mysql" id="radio_dump_mysql"

View File

@@ -38,6 +38,19 @@ if (! $user->admin)
accessforbidden();
if ($file && ! $what)
{
//print DOL_URL_ROOT.'/dolibarr_export.php';
header("Location: ".DOL_URL_ROOT.'/admin/tools/dolibarr_export.php?msg='.urlencode($langs->trans("ErrorFieldRequired",$langs->trans("ExportMethod"))));
/*
print '<div class="error">'.$langs->trans("ErrorFieldRequired",$langs->trans("ExportMethod")).'</div>';
print '<br>';
*/
exit;
}
llxHeader();
$html=new Form($db);
@@ -45,14 +58,6 @@ $html=new Form($db);
print_fiche_titre($langs->trans("Backup"),'','setup');
print '<br>';
if ($file && ! $what)
{
print '<div class="error">'.$langs->trans("ErrorFieldRequired",$langs->trans("ee")).'</div>';
print '<br>';
}
/**
* Increase time limit for script execution and initializes some variables
*/