From c31bc2feabce0ad8272c7d73a9ef04d10a1ebe65 Mon Sep 17 00:00:00 2001
From: "Committo,Ergo:sum" <esj@rezo.net>
Date: Thu, 4 Jan 2007 12:23:26 +0000
Subject: [PATCH] =?UTF-8?q?Bouton=20declenchant=20le=20validateur=20de=20S?=
 =?UTF-8?q?PIP=20dans=20l'espace=20priv=C3=A9,=20situ=C3=A9=20dans=20le=20?=
 =?UTF-8?q?menu=20d=C3=A9roulant=20de=20l'icone=20de=20l'oeil=20('suivre?=
 =?UTF-8?q?=20la=20vie=20du=20site').?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ecrire/inc/gadgets.php      | 30 +++++++++++++++---------------
 ecrire/inc/presentation.php |  4 ++--
 ecrire/public/debug.php     | 16 ++++++++++++----
 3 files changed, 29 insertions(+), 21 deletions(-)

diff --git a/ecrire/inc/gadgets.php b/ecrire/inc/gadgets.php
index ce1185a6c4..5cc65abe0a 100644
--- a/ecrire/inc/gadgets.php
+++ b/ecrire/inc/gadgets.php
@@ -353,21 +353,21 @@ onmouseover=\"findObj_forcer('bandeautoutsite').style.visibility='visible'; char
 
 	// FIN GADGET Messagerie
 
-
 	// Suivi activite
-	$bandeau .= "<div id='bandeausynchro' class='bandeau bandeau_couleur_sous' style='$spip_lang_left: 160px;'>";
-	$bandeau .= "<a href='" . generer_url_ecrire("synchro") . "' class='lien_sous'>";
-	$bandeau .= _T('icone_suivi_activite');
-	$bandeau .= "</a>";
-	$bandeau .= "\n<div id='gadget-suivi'></div>\n";
-	$bandeau .= "</div>";
+	$bandeau .= "<div id='bandeausynchro' class='bandeau bandeau_couleur_sous' style='$spip_lang_left: 160px;'>"
+	. "<a href='" . generer_url_ecrire("synchro") . "' class='lien_sous'>"
+	. _T('icone_suivi_activite')
+	. "</a>"
+	. "\n<div id='gadget-suivi'><div>&nbsp;</div>"
+	. icone_horizontale(_T('analyse_xml'), parametre_url(self(),'transformer_xml', 'valider_xml'), 'xml.gif', '', false)
+	. "</div></div>\n";
 	
 		// Infos perso
-	$bandeau .= "\n<div id='bandeauinfoperso' class='bandeau bandeau_couleur_sous' style='$spip_lang_left: 200px;'>";
-	$bandeau .= "<a href='" . generer_url_ecrire("auteurs_edit","id_auteur=$connect_id_auteur") . "' class='lien_sous'>";
-	$bandeau .= _T('icone_informations_personnelles');
-	$bandeau .= "</a>";
-	$bandeau .= "</div>";
+	$bandeau .= "\n<div id='bandeauinfoperso' class='bandeau bandeau_couleur_sous' style='$spip_lang_left: 200px;'>"
+	. "<a href='" . generer_url_ecrire("auteurs_edit","id_auteur=$connect_id_auteur") . "' class='lien_sous'>"
+	. _T('icone_informations_personnelles')
+	. "</a>"
+	. "</div>";
 
 		
 		//
@@ -398,9 +398,9 @@ onmouseover=\"findObj_forcer('bandeautoutsite').style.visibility='visible'; char
 		
 	// En interface simplifiee, afficher en permanence l'indication de l'interface
 	if ($options != "avancees") {
-			$bandeau .= "\n<div id='displayfond' class='bandeau bandeau_couleur_sous' style='$spip_lang_right: ".$decal."px; text-align: $spip_lang_right; visibility: visible; background-color: white; color: $couleur_foncee; z-index: -1000; border: 1px solid $couleur_claire; border-top: 0px;'>";
-			$bandeau .= "<b>"._T('icone_interface_simple')."</b>";
-			$bandeau .= "</div>\n";
+		$bandeau .= "\n<div id='displayfond' class='bandeau bandeau_couleur_sous' style='$spip_lang_right: ".$decal."px; text-align: $spip_lang_right; visibility: visible; background-color: white; color: $couleur_foncee; z-index: -1000; border: 1px solid $couleur_claire; border-top: 0px;'>"
+		. "<b>" . _T('icone_interface_simple')."</b>"
+		. "</div>\n";
 	}
 	$bandeau .= "\n<div id='bandeaudisplay' class='bandeau bandeau_couleur_sous' style='$spip_lang_right: ".$decal."px; text-align: $spip_lang_right;'>";
 
diff --git a/ecrire/inc/presentation.php b/ecrire/inc/presentation.php
index 1b04ab15aa..2260f7c800 100644
--- a/ecrire/inc/presentation.php
+++ b/ecrire/inc/presentation.php
@@ -1744,8 +1744,8 @@ function fin_page()
 	return debut_grand_cadre(true)
 	. "\n"
 	. (($spip_display == 4)
-		? ("<div><a href='./?set_disp=2&exec="
-			. _request('exec')
+		? ("<div><a href='"
+		   	. parametre_url(self(),'set_disp', '2')
 			. "'>"
 			.  _T("access_interface_graphique")
 			. "</a></div>")
diff --git a/ecrire/public/debug.php b/ecrire/public/debug.php
index 305a5f4edc..1df5345f67 100644
--- a/ecrire/public/debug.php
+++ b/ecrire/public/debug.php
@@ -476,15 +476,23 @@ function debug_dumpfile ($texte, $fonc, $type) {
 // http://doc.spip.org/@debug_script
 function debug_script ($t) {
 
+	debug_debut($GLOBALS['exec']);
 	if (!isset($GLOBALS['xhtml_error']))
-	  echo $t;
+	  $res = '<h2>' . _L('SPIP consid&egrave;re ce document comme valide'). '</h2>';
 	else {
-	  debug_debut($GLOBALS['exec']);
 	  list($t, $err) = emboite_texte($t);
-	  echo $err, $t;
+	  $res = $err . $t;
+	}
+
+	echo "<div style='text-align: center'><h1>", _T('analyse_xml') . '</h1>',
+	  $res,
+	   " <a href='"
+	    . parametre_url(self(),'transformer_xml', '')
+	    . "'>"
+	    .  _T("access_interface_graphique")
+	    . "</a></div>";
 	echo "\n</div>";
 	echo '</body></html>';
-	}
 }
 
 // http://doc.spip.org/@debug_debut
-- 
GitLab