Skip to content
Extraits de code Groupes Projets
Valider a250a5e3 rédigé par esj's avatar esj
Parcourir les fichiers

non effacement du repertoire data/adminXXX dans certains cas

parent 6d85c9d3
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -23,34 +23,34 @@ function debut_admin($action, $commentaire='') {
if ((!$action) || ($connect_statut != "0minirezo")) {
include_ecrire ("inc_minipres");
install_debut_html(_T('info_acces_refuse'));install_fin_html();
exit;
minipres(_T('info_acces_refuse'));
}
$fichier = fichier_admin($action);
if (@file_exists(_DIR_SESSIONS . $fichier)) {
spip_log ("Action admin: $action");
return true;
}
include_ecrire ("inc_minipres");
include_ecrire ("inc_texte");
install_debut_html(_T('info_action', array('action' => $action)));
if ($commentaire) {
echo "<p>".propre($commentaire)."</p>";
include_ecrire ("inc_texte");
$commentaire = ("<p>".propre($commentaire)."</p>");
}
echo $clean_link->getForm('POST');
echo "<P><B>"._T('info_authentification_ftp')."</B>";
echo aide("ftp_auth");
echo "<P>"._T('info_creer_repertoire');
echo "<P align='center'><INPUT TYPE='text' NAME='fichier' CLASS='fondl' VALUE=\"$fichier\" SIZE='30'>";
echo "<P> "._T('info_creer_repertoire_2', array('repertoire' => _DIR_SESSIONS));
echo "<P align='right'><INPUT TYPE='submit' NAME='Valider' VALUE='"._T('bouton_recharger_page')."' CLASS='fondo'>";
echo "</FORM>";
install_fin_html();
exit;
include_ecrire ("inc_minipres");
minipres(_T('info_action', array('action' => $action)),
$commentaire
. $clean_link->getForm('POST')
. "<P><B>"._T('info_authentification_ftp')."</B>"
. aide("ftp_auth")
. "<P>"
. _T('info_creer_repertoire')
. "<P align='center'><INPUT TYPE='text' NAME='fichier' CLASS='fondl' VALUE=\"".
$fichier
. "\" size='30'>"
. "<P> "
. _T('info_creer_repertoire_2', array('repertoire' => _DIR_SESSIONS))
. "<P align='right'><INPUT TYPE='submit' VALUE='"
. _T('bouton_recharger_page')
. "' CLASS='fondo'>"
. "</form>");
}
function fin_admin($action) {
......
......@@ -86,12 +86,11 @@ if ($ok) {
if (! $res = verifier_base())
$res = "<br><br><font color='red'><b><tt>"._T('avis_erreur_mysql').' '.spip_sql_errno().': '.spip_sql_error() ."</tt></b></font><br /><br /><br />\n";
install_debut_html(_T('texte_tentative_recuperation'));echo $res; install_fin_html();
fin_admin($action);
minipres(_T('texte_tentative_recuperation'), $res);
}
else {
install_debut_html(_T('titre_reparation'));echo "<p>$message</p>";install_fin_html();
minipres(_T('titre_reparation'), "<p>$message</p>");
}
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter