Valider 4c8c6671 rédigé par esj's avatar esj
Parcourir les fichiers

la restauration ne fonctionnait plus (faudrait trouver qqch permettant de...

la restauration ne fonctionnait plus (faudrait trouver qqch permettant de prevenir que le choix get/post peut ne pas etre indifferent au 2e coup, meme si le premier semble ok).
parent 83a77023
Chargement en cours
Chargement en cours
Chargement en cours
Chargement en cours
+6 −6
Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff
@@ -32,22 +32,22 @@ function debut_admin($action, $commentaire='') {
	}
	if ($commentaire) {
		include_ecrire ("inc_texte");
		$commentaire = ("<p>".propre($commentaire)."</p>");
		$commentaire = ("\n<p>".propre($commentaire)."</p>\n");
	}
	include_ecrire ("inc_minipres");
	minipres(_T('info_action', array('action' => $action)),
		  $commentaire
		. $clean_link->getForm('POST')
		. "<P><B>"._T('info_authentification_ftp')."</B>"
		. "\n<p><b>"._T('info_authentification_ftp')."</b>"
		. aide("ftp_auth")
		. "<P>"
		. "\n<p>"
		. _T('info_creer_repertoire')
		. "<P align='center'><INPUT TYPE='text' NAME='fichier' CLASS='fondl' VALUE=\"".
		. "\n<p align='center'>\n<INPUT TYPE='text' NAME='fichier' CLASS='fondl' VALUE=\"".
		 $fichier
		. "\" size='30'>"
		. "<P> "
		. "\n<p>"
		. _T('info_creer_repertoire_2', array('repertoire' => _DIR_SESSIONS))
		. "<P align='right'><INPUT TYPE='submit' VALUE='"
		. "\n<p align='right'><INPUT TYPE='submit' VALUE='"
		. _T('bouton_recharger_page')
		. "' CLASS='fondo'>"
		. "</form>");
+14 −15
Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff
@@ -86,15 +86,6 @@ echo "</TABLE>";
// Restauration de la base
//

echo "<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=8 WIDTH=\"100%\">",
	"<TR><TD BGCOLOR='#EEEECC' BACKGROUND=''><B>",
	"<FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=3 COLOR='#000000'>",
	_T('texte_restaurer_base')."</FONT></B></TD></TR>",
	"<TR><td class='serif'>",
	generer_url_post_ecrire("import_all"),
	"\n<p align='justify'> ",
	_T('texte_restaurer_sauvegarde');

if ($flag_gz) {
	$fichier_defaut = 'dump.xml.gz';
	$texte_compresse = _T('texte_compresse_ou_non')."&nbsp;";
@@ -104,12 +95,20 @@ else {
	$texte_compresse = _T('texte_non_compresse')."&nbsp;";
}

echo "\n<p>"._T('entree_nom_fichier', array('texte_compresse' => $texte_compresse)),
	"\n<p><FONT SIZE=3><ul><INPUT TYPE='text' NAME='archive' VALUE='$fichier_defaut' SIZE='30'></ul></FONT>";

echo "\n<p><DIV align='right'><INPUT CLASS='fondo' TYPE='submit' VALUE='"._T('bouton_restaurer_base')."'></DIV></FORM>";

echo "</td></tr>",
echo	"<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=8 WIDTH=\"100%\">",
	"<TR><TD BGCOLOR='#EEEECC' BACKGROUND=''><B>",
	"<FONT FACE='Verdana,Arial,Sans,sans-serif' SIZE=3 COLOR='#000000'>",
	_T('texte_restaurer_base')."</FONT></B></TD></TR>",
	"<TR><td class='serif'>\n",
	"<form method='get' action='",
	generer_url_ecrire("import_all"),
	"'>\n<p align='justify'> ",
	_T('texte_restaurer_sauvegarde'),
	"\n<p>",
	_T('entree_nom_fichier', array('texte_compresse' => $texte_compresse)),
	"\n<p><FONT SIZE=3><ul><INPUT TYPE='text' NAME='archive' VALUE='$fichier_defaut' SIZE='30'></ul></FONT>",
	"\n<p><DIV align='right'><INPUT CLASS='fondo' TYPE='submit' VALUE='"._T('bouton_restaurer_base')."'></DIV></FORM>",
	"\n</td></tr>",
	"</TABLE>";