mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-08 18:48:22 +01:00
Amlioration gestion erreur sauvegarde
This commit is contained in:
@@ -45,6 +45,13 @@ 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>';
|
||||||
|
|
||||||
|
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);
|
$result=$html->show_documents('systemtools','',DOL_DATA_ROOT.'/admin/temp',$_SERVER['PHP_SELF'],0,1);
|
||||||
if ($result) print '<br><br>';
|
if ($result) print '<br><br>';
|
||||||
|
|
||||||
@@ -102,7 +109,7 @@ function show_checked_option() {
|
|||||||
|
|
||||||
<div id="div_container_exportoptions">
|
<div id="div_container_exportoptions">
|
||||||
<fieldset id="exportoptions">
|
<fieldset id="exportoptions">
|
||||||
<legend>M<EFBFBD>thode d'exportation</legend>
|
<legend><?php echo $langs->trans("ExportMethod"); ?></legend>
|
||||||
|
|
||||||
<div class="formelementrow">
|
<div class="formelementrow">
|
||||||
<input type="radio" name="what" value="mysql" id="radio_dump_mysql"
|
<input type="radio" name="what" value="mysql" id="radio_dump_mysql"
|
||||||
|
|||||||
@@ -38,6 +38,19 @@ if (! $user->admin)
|
|||||||
accessforbidden();
|
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();
|
llxHeader();
|
||||||
|
|
||||||
$html=new Form($db);
|
$html=new Form($db);
|
||||||
@@ -45,14 +58,6 @@ $html=new Form($db);
|
|||||||
print_fiche_titre($langs->trans("Backup"),'','setup');
|
print_fiche_titre($langs->trans("Backup"),'','setup');
|
||||||
print '<br>';
|
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
|
* Increase time limit for script execution and initializes some variables
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ BackupFileSuccessfullyCreated=Backup file successfully generated
|
|||||||
YouCanDownloadBackupFile=Generated files can now be downlaoded
|
YouCanDownloadBackupFile=Generated files can now be downlaoded
|
||||||
NoBackupFileAvailable=No backup files available.
|
NoBackupFileAvailable=No backup files available.
|
||||||
ToBuildBackupFileClickHere=To build one backup file, click <a href="%s">here</a>.
|
ToBuildBackupFileClickHere=To build one backup file, click <a href="%s">here</a>.
|
||||||
|
ExportMethod=Export method
|
||||||
Yes=Yes
|
Yes=Yes
|
||||||
No=No
|
No=No
|
||||||
AutoDetectLang=Autodetect (browser language)
|
AutoDetectLang=Autodetect (browser language)
|
||||||
|
|||||||
@@ -51,7 +51,8 @@ WebServerMustHavePermissionForCommand=Votre serveur web doit avoir les droits po
|
|||||||
BackupResult=R<>sultat sauvegarde
|
BackupResult=R<>sultat sauvegarde
|
||||||
BackupFileSuccessfullyCreated=Fichier backup g<>n<EFBFBD>r<EFBFBD> avec succ<63>s
|
BackupFileSuccessfullyCreated=Fichier backup g<>n<EFBFBD>r<EFBFBD> avec succ<63>s
|
||||||
YouCanDownloadBackupFile=Les fichiers g<>n<EFBFBD>r<EFBFBD>s peuvent maintenant <20>tre t<>l<EFBFBD>charg<72>s
|
YouCanDownloadBackupFile=Les fichiers g<>n<EFBFBD>r<EFBFBD>s peuvent maintenant <20>tre t<>l<EFBFBD>charg<72>s
|
||||||
NoBackupFileAvailable=Aucune fichier backup disponible.
|
NoBackupFileAvailable=Aucun fichier backup disponible.
|
||||||
|
ExportMethod=M<>thode d'export
|
||||||
ToBuildBackupFileClickHere=Pour g<>n<EFBFBD>rer un fichier de sauvegarde, cliquez <a href="%s">ici</a>.
|
ToBuildBackupFileClickHere=Pour g<>n<EFBFBD>rer un fichier de sauvegarde, cliquez <a href="%s">ici</a>.
|
||||||
Yes=Oui
|
Yes=Oui
|
||||||
No=Non
|
No=Non
|
||||||
|
|||||||
Reference in New Issue
Block a user