<?xml
version="1.0" encoding="utf-8"?>
<rss version="2.0" 
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:atom="http://www.w3.org/2005/Atom"
>

<channel xml:lang="fr">
	<title>Geekographie Ma&#239;eulesque</title>
	<link>http://geekographie.maieul.net/</link>
	<description>Ce site est consacr&#233; &#224; quelques unes des mes geekeries. J'y donne des conseils, des r&#233;flexions, sur les logiciels et les langages que je connais ou que j'apprends. J'y parle notamment de l'usage de LaTeX en sciences humaines et sociales, en particulier pour la gestion de la bibliographie. Le contenu peut &#234;tre sous la forme d'articles d&#233;taill&#233;s ou de simples notes. L'ensemble du contenu est, sauf pr&#233;cision contraire, sous licence Cr&#233;ative Commons Paternit&#233;-Partage des Conditions Initiales &#224; l'identique France.</description>
	<language>fr</language>
	<generator>SPIP - www.spip.net</generator>
	<atom:link href="http://geekographie.maieul.net/spip.php?page=backend&amp;id_rubrique=1" rel="self" type="application/rss+xml" />




<item xml:lang="fr">
		<title>Succession d'articles avec A2A
</title>
		<link>http://geekographie.maieul.net/Succession-d-articles-avec-A2A</link>
		<guid isPermaLink="true">http://geekographie.maieul.net/Succession-d-articles-avec-A2A</guid>
		<dc:date>2012-09-13T19:16:57Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		



		<description>
&lt;p&gt;La nouvelle version du plugins A2A permet de typer les relations entre articles. Je m'en sert sur ce site pour cr&#233;er des succession d'articles, par exemple ma s&#233;rie d'articles sur les stemma. Comment fais-je ? Configuration du plugin Je cr&#233;e un nouveau type de relation, dont la clef est &#171; Suivant &#187; et le titre est &#171; Article suivant &#187;. Chaque article de la cha&#238;ne, sauf le dernier, est reli&#233; &#224; l'article suivant selon ce type. Voil&#224; pour l'espace priv&#233;. C&#244;t&#233; squelettes Je souhaite afficher l'ensemble (...)&lt;/p&gt;


-
&lt;a href="http://geekographie.maieul.net/-plugin-" rel="directory"&gt;Plugin
&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_chapo'&gt;&lt;p&gt;La nouvelle version du plugins A2A permet de &lt;a href=&quot;http://contrib.spip.net/Typage-des-relations-entre-articles-avec-A2A&quot; class='spip_out' rel='external'&gt;typer les relations entre articles&lt;/a&gt;. Je m'en sert sur ce site pour cr&#233;er des succession d'articles, par exemple ma &lt;a href=&quot;http://geekographie.maieul.net/Stemma-avec-TikZ-1-principes-de?archive=oui&quot; class='spip_in'&gt;s&#233;rie d'articles sur les stemma&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Comment fais-je ?&lt;/p&gt;&lt;/div&gt;
		&lt;div class='rss_texte'&gt;&lt;h3 class=&quot;h3 spip&quot;&gt;Configuration du plugin&lt;/h3&gt;
&lt;p&gt;Je cr&#233;e un nouveau type de relation, dont la clef est &#171; Suivant &#187; et le titre est &#171; Article suivant &#187;.&lt;/p&gt; &lt;p&gt;Chaque article de la cha&#238;ne, sauf le dernier, est reli&#233; &#224; l'article suivant selon ce type.&lt;/p&gt; &lt;p&gt;Voil&#224; pour l'espace priv&#233;.&lt;/p&gt;
&lt;h3 class=&quot;h3 spip&quot;&gt;C&#244;t&#233; squelettes&lt;/h3&gt;
&lt;p&gt;Je souhaite afficher l'ensemble des articles de la cha&#238;ne dans laquelle se situe l'article courant mais :&lt;/p&gt;
&lt;ol class=&quot;spip&quot;&gt;&lt;li&gt; En ne mettant pas de lien sur l'article courant.&lt;/li&gt;&lt;li&gt; En mettant un attribut &lt;code class='spip_code' dir='ltr'&gt;rel=prev&lt;/code&gt; ou &lt;code class='spip_code' dir='ltr'&gt;rel=next&lt;/code&gt; pour le liens vers l'article imm&#233;diatement pr&#233;c&#233;dent/suivant.&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Voici comme je proc&#233;de, les commentaires suivent.&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 cadre spip_cadre&quot;&gt;&lt;div class=&quot;spip2&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;BOUCLE_article&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ARTICLES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;id_article&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#SET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;precedent,''&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#SET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;suivant,''&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#SET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;succession,&lt;span style=&quot;color: #CA5200;&quot;&gt;#LISTE&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#ID_ARTICLE&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;BOUCLE_precedent&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ARTICLES_LIES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;id_article_lie=&lt;span style=&quot;color: #CA5200;&quot;&gt;#ID_ARTICLE&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;type_liaison=suivant&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #CA5200;&quot;&gt;#SET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;succession,&lt;span style=&quot;color: #CA5200;&quot;&gt;#LISTE&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#ID_ARTICLE&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|push&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;succession&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#ID_ARTICLE_LIE&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|==&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#&lt;span style=&quot;color: #e72;&quot;&gt;_article:&lt;/span&gt;ID_ARTICLE&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|oui&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #CA5200;&quot;&gt;#SET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;precedent,&lt;span style=&quot;color: #CA5200;&quot;&gt;#ID_ARTICLE&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;BOUCLE_precedents&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;Boucle_precedent&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; /&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/BOUCLE_precedent&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;BOUCLE_suivant&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ARTICLES_LIES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;id_article=&lt;span style=&quot;color: #CA5200;&quot;&gt;#ID_ARTICLE&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;type_liaison=suivant&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #CA5200;&quot;&gt;#SET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;succession,&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;succession&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|push&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#ID_ARTICLE_LIE&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #CA5200;&quot;&gt;#SET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;suivant,&lt;span style=&quot;color: #CA5200;&quot;&gt;#ID_ARTICLE_LIE&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;BOUCLE_suivants&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ARTICLES_LIES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;id_article=&lt;span style=&quot;color: #CA5200;&quot;&gt;#ID_ARTICLE_LIE&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;type_liaison=suivant&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #CA5200;&quot;&gt;#SET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;succession,&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;succession&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|push&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#ID_ARTICLE_LIE&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;BOUCLE_suivantsr&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;BOUCLE_suivants&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; /&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/BOUCLE_suivants&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/BOUCLE_suivant&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;B_succession&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;p&gt;&lt;strong&gt;&lt;span style=&quot;color: #C90&quot;&gt;&lt;:geek:succession_article:&gt;&lt;/span&gt; :&lt;/strong&gt;&lt;/p&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;ol class='succession'&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;BOUCLE_succession&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ARTICLES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;id_article IN &lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;succession&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;si &lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;succession&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|count&lt;/span&gt;|&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;1&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;li&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt; class='&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#EXPOSE&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;'&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#EXPOSE&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|non&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;a href=&quot;&lt;span style=&quot;color: #CA5200;&quot;&gt;#URL_ARTICLE&lt;/span&gt;&quot;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt; rel=&quot;next&quot;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#ID_ARTICLE&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|==&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;suivant&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|oui&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt; rel=&quot;prev&quot;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#ID_ARTICLE&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|==&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;precedent&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|oui&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #CA5200;&quot;&gt;#TITRE&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#EXPOSE&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|non&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/li&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/BOUCLE_succession&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/ol&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/B_succession&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;/BOUCLE_article&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://geekographie.maieul.net/local/cache-code/9e2f98a8f4393df9fa6a60faaedad27c.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;ul class=&quot;spip&quot;&gt;&lt;li&gt; l. 1 : la boucle englobante du squelette, je masque ici les autres contenus.&lt;/li&gt;&lt;li&gt; l. 2-3 : deux variables dans lesquelles on stockera les num&#233;ros de l'article pr&#233;c&#233;dent et de l'article suivant.&lt;/li&gt;&lt;li&gt; l. 4 : liste dans laquelle on va stocker les id de chaque article de la cha&#238;ne. On initialise la liste avec le num&#233;ro de l'article courant.&lt;/li&gt;&lt;li&gt; l. 5 et 11 : on cherche l'article pr&#233;c&#233;dent.&lt;/li&gt;&lt;li&gt; l. 6 : on ajoute l'article pr&#233;c&#233;dent &#224; la liste des articles de la cha&#238;ne, en &lt;i&gt;d&#233;but de liste&lt;/i&gt;.&lt;/li&gt;&lt;li&gt; l. 9 : on indique l'id de l'article imm&#233;diatement pr&#233;c&#233;dent dans la variable &lt;code class='spip_code' dir='ltr'&gt;precedent&lt;/code&gt;. Notez le test qui permet de jouer avec la r&#233;cursion de la l. 10 sans changer &#224; chaque fois &lt;code class='spip_code' dir='ltr'&gt;precedent&lt;/code&gt;.&lt;/li&gt;&lt;li&gt; l. 13 &#224; 20 : la m&#234;me chose que l. 5 &#224; 11, mais pour les articles qui suivent dans la cha&#238;ne. Notez qu'on &#233;tend la liste vers la fin, et non pas vers le d&#233;but, comme pr&#233;c&#233;dement.&lt;/li&gt;&lt;li&gt; l. 23 &#224; 38 : boucle &lt;code class='spip_code' dir='ltr'&gt;(ARTICLES)&lt;/code&gt; classique, mais on choisit comme &lt; code&gt;id_article&lt;/code&gt; ceux list&#233;s dans le tableau. Notez que &lt;code class='spip_code' dir='ltr'&gt;{id_article IN &#8230;}&lt;/code&gt;. On notera :&lt;ul class=&quot;spip&quot;&gt;&lt;li&gt;l. 24 : l'utilisation de &lt;code class='spip_code' dir='ltr'&gt;#EXPOSE&lt;/code&gt; pour styler diff&#233;remment l'article courant, de m&#234;me l. 25 et 27 pour n'afficher le liens que sur les articles diff&#233;rent de l'article courant. &lt;/li&gt;&lt;li&gt;l. 25 &lt;code class='spip_code' dir='ltr'&gt;[ rel=&quot;next&quot;(#ID_ARTICLE|=={#GET{suivant}}|oui)]&lt;/code&gt; et son comparse &lt;code class='spip_code' dir='ltr'&gt;[ rel=&quot;prev&quot;(#ID_ARTICLE|=={#GET{precedent}}|oui)]&lt;/code&gt; qui permet d'ajouter l'attribut &lt;code class='spip_code' dir='ltr'&gt;rel&lt;/code&gt; &#224; la balise &lt;code class='spip_code' dir='ltr'&gt;&lt;a&gt;&lt;/code&gt;, si besoin.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>
<item xml:lang="fr">
		<title>Jouons un peu avec |image_masque
</title>
		<link>http://geekographie.maieul.net/Jouons-un-peu-avec-image_masque</link>
		<guid isPermaLink="true">http://geekographie.maieul.net/Jouons-un-peu-avec-image_masque</guid>
		<dc:date>2012-08-13T18:04:23Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		



		<description>
&lt;p&gt;Les lecteurs r&#233;guliers de ce site auront remarqu&#233;, outre le changement de style, que d&#233;sormais les logos des articles poss&#232;dent une petite images dans le coin inf&#233;rieur droit. L'image principale correspond au logiciel dont il est question en priorit&#233; : par exemple SPIP. L'image secondaire correspond &#224; la rubrique principale de l'article. Ainsi pour notre article, il s'agit de la rubrique Images. Enfin, dans certains cas, une image est mise dans le coin sup&#233;rieur gauche : il s'agit de l'image (...)&lt;/p&gt;


-
&lt;a href="http://geekographie.maieul.net/-Images-" rel="directory"&gt;Images
&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_chapo'&gt;&lt;p&gt;Les lecteurs r&#233;guliers de ce site auront remarqu&#233;, outre le &lt;a href=&quot;http://contrib.spip.net/Wordpress-2010&quot; class='spip_out' rel='external'&gt;changement de style&lt;/a&gt;, que d&#233;sormais les logos des articles poss&#232;dent une petite images dans le coin inf&#233;rieur droit.&lt;/p&gt; &lt;p&gt;L'image principale correspond au logiciel dont il est question en priorit&#233; : par exemple SPIP. L'image secondaire correspond &#224; la rubrique principale de l'article. Ainsi pour notre article, il s'agit de la rubrique &lt;a href=&quot;http://geekographie.maieul.net/-Images-&quot; class='spip_in'&gt;Images&lt;/a&gt;. Enfin, dans certains cas, une image est mise dans le coin sup&#233;rieur gauche : il s'agit de l'image correspondante au logiciel utilis&#233; de mani&#232;re secondaire dans l'article. Par exemple l'article &#171; &lt;a href=&quot;http://geekographie.maieul.net/Gerer-beaucoup-de-sites-SPIP-en&quot; class='spip_in'&gt;G&#233;rer beaucoup de sites SPIP en local sous MacOsX&lt;/a&gt; &#187; parle d'abord du logiciel SPIP, et ensuite du logiciel SVN. On a donc le logo de SVN en petit dans le coin sup&#233;rieur gauche.&lt;/p&gt; &lt;p&gt;La composition de ces images est effectu&#233;e automatiquement par SPIP &#224; partir des logos des diff&#233;rentes rubriques, gr&#226;ce au filtre &lt;code class='spip_code' dir='ltr'&gt;|image_masque&lt;/code&gt;. Cependant ce filtre manque de documentation, et j'ai du fouiller le code pour le comprendre. En attendant une documentation plus compl&#232;te, voici d&#233;j&#224; un tutoriel expliquant comment j'ai proc&#233;d&#233; dans le cas pr&#233;sent.&lt;/p&gt;&lt;/div&gt;
		&lt;div class='rss_texte'&gt;&lt;h3 class=&quot;h3 spip&quot;&gt;Principe&lt;/h3&gt;&lt;ul class=&quot;spip&quot;&gt;&lt;li&gt; Il n'y a pas de logo sur les articles.&lt;/li&gt;&lt;li&gt; Les logos d'articles sont calcul&#233;s &#224; l'aide de l'arborescence de l'article :&lt;ul class=&quot;spip&quot;&gt;&lt;li&gt; Le logo principal correspond au logo du secteur.&lt;/li&gt;&lt;li&gt; Le logo en bas &#224; droite correspond au logo de la rubrique&lt;/li&gt;&lt;li&gt; Le logo en haut &#224; gauche correspond au logo du premier secteur secondaire configur&#233; avec le plugin &lt;a href=&quot;http://contrib.spip.net/Polyhierarchie&quot; class='spip_out' rel='external'&gt;polyhierarchie&lt;/a&gt;.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt; Comme il s'agit d'un logo, je n'ai pas jug&#233; utile d'ajouter une balise &lt;code class='spip_code' dir='ltr'&gt;alt&lt;/code&gt; autre que vide.&lt;/li&gt;&lt;li&gt; Nous allons faire un squelette &lt;code class='spip_code' dir='ltr'&gt;inclure/logo-rubriques&lt;/code&gt; que nous appellerons via la balise &lt;a href=&quot;http://geekographie.maieul.net/Les-differents-modes-d-inclusion&quot; class='spip_in'&gt;&lt;code class='spip_code' dir='ltr'&gt;#INCLURE&lt;/code&gt;&lt;/a&gt;. Ce squelette calculera le logo, pour l'afficher, sans le r&#233;duire&lt;/li&gt;&lt;li&gt; Le logo sera r&#233;duit au cas par cas en filtrant &lt;code class='spip_code' dir='ltr'&gt;#INCLURE&lt;/code&gt; gr&#226;ce &#224; &lt;code class='spip_code' dir='ltr'&gt;image_reduire&lt;/code&gt;.&lt;/li&gt;&lt;/ul&gt;&lt;h3 class=&quot;h3 spip&quot;&gt;Mise en &#339;uvre&lt;/h3&gt;
&lt;p&gt;Dans notre boucle &lt;code class='spip_code' dir='ltr'&gt;ARTICLES&lt;/code&gt;, &#224; l'endroit o&#249; nous souhaitons afficher notre logo, nous mettons :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 code&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#INCLURE&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;fond=inclure/logo-rubriques,id_article&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|image_reduire&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;xxx&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;en rempla&#231;ant &lt;code class='spip_code' dir='ltr'&gt;xxx&lt;/code&gt; par la taille souhait&#233; du logo au final.&lt;/p&gt; &lt;p&gt;Maintenant, il nous reste &#224; cr&#233;er notre squelette &lt;code class='spip_code' dir='ltr'&gt;inclure/logo-rubriques.html&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;Dans ce squelette, nous proc&#233;derons ainsi :&lt;/p&gt;
&lt;ol class=&quot;spip&quot;&gt;&lt;li&gt; Extraction des diff&#233;rents logos de rubriques, et stockage dans des variables.&lt;/li&gt;&lt;li&gt; Calcul de la taille des logos secondaires.&lt;/li&gt;&lt;li&gt; Fabrication de l'image finale.&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Il ne faut pas oublier de mettre une boucle englobante dans le squelette :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 code&quot;&gt;&lt;BOUCLE_article&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ARTICLES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;id_article&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&gt;&lt;br /&gt;
&lt;/BOUCLE_article&gt;&lt;/div&gt;&lt;div class='code_download' style='text-align: right;'&gt; &lt;a href='http://geekographie.maieul.net/local/cache-code/b26d6899787522966a8697a2c9f5cf68.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Tout le code qui va suivre devra se mettre dans cette rubrique.
Donc, premi&#232;re &#233;tape :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_latex cadre spip_cadre&quot;&gt;&lt;div class=&quot;latex&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;BOUCLE_rubrique(RUBRIQUES)&lt;span style=&quot;color: #E02020; &quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #2020C0; font-weight: normal;&quot;&gt;id_rubrique&lt;/span&gt;&lt;span style=&quot;color: #E02020; &quot;&gt;}&lt;/span&gt;&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; #SET&lt;span style=&quot;color: #E02020; &quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #2020C0; font-weight: normal;&quot;&gt;rubrique,#LOGO_RUBRIQUE&lt;/span&gt;&lt;span style=&quot;color: #E02020; &quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;/BOUCLE_rubrique&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;BOUCLE_secteur(RUBRIQUES)&lt;span style=&quot;color: #E02020; &quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #2020C0; font-weight: normal;&quot;&gt;id_secteur&lt;/span&gt;&lt;span style=&quot;color: #E02020; &quot;&gt;}{&lt;/span&gt;&lt;span style=&quot;color: #2020C0; font-weight: normal;&quot;&gt;racine&lt;/span&gt;&lt;span style=&quot;color: #E02020; &quot;&gt;}&lt;/span&gt;&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; #SET&lt;span style=&quot;color: #E02020; &quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #2020C0; font-weight: normal;&quot;&gt;secteur,#LOGO_RUBRIQUE&lt;/span&gt;&lt;span style=&quot;color: #E02020; &quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;/BOUCLE_secteur&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;BOUCLE_autre_secteur(RUBRIQUES)&lt;span style=&quot;color: #E02020; &quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #2020C0; font-weight: normal;&quot;&gt;parents_indirects&lt;/span&gt;&lt;span style=&quot;color: #E02020; &quot;&gt;}&lt;/span&gt;&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;BOUCLE_racine(RUBRIQUES)&lt;span style=&quot;color: #E02020; &quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #2020C0; font-weight: normal;&quot;&gt;id_rubrique&lt;/span&gt;&lt;span style=&quot;color: #E02020; &quot;&gt;}{&lt;/span&gt;&lt;span style=&quot;color: #2020C0; font-weight: normal;&quot;&gt;racine&lt;/span&gt;&lt;span style=&quot;color: #E02020; &quot;&gt;}&lt;/span&gt;&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; #SET&lt;span style=&quot;color: #E02020; &quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #2020C0; font-weight: normal;&quot;&gt;autre_secteur,#LOGO_RUBRIQUE&lt;/span&gt;&lt;span style=&quot;color: #E02020; &quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/BOUCLE_racine&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;/BOUCLE_autre_secteur&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://geekographie.maieul.net/local/cache-code/6ea3984bad04c49f99c859135b51d4a8.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Commentaires :&lt;/p&gt;
&lt;ul class=&quot;spip&quot;&gt;&lt;li&gt; L. 1-3 : On s&#233;lectionne le logo de la rubrique de l'article (celui qui sera affich&#233; en bas &#224; droite) et on le stocke dans &lt;code class='spip_code' dir='ltr'&gt;rubrique&lt;/code&gt;.&lt;/li&gt;&lt;li&gt; L. 5-7 : On s&#233;lectionne le logo du secteur de l'article (celui qui sera affich&#233; en gros) et on le stocke dans &lt;code class='spip_code' dir='ltr'&gt;secteur&lt;/code&gt;.&lt;/li&gt;&lt;li&gt; L. 9-13 : On s&#233;lectionne le logo du second secteur de l'article (celui qui sera affich&#233; en haut &#224; gauche), et on le stocke dans &lt;code class='spip_code' dir='ltr'&gt;autre_secteur&lt;/code&gt;. L'imbrication des boucles s'expliques par le fait qu'il n'est pas possible de combiner &lt;code class='spip_code' dir='ltr'&gt;{racine}&lt;/code&gt; et &lt;code class='spip_code' dir='ltr'&gt;parents_directs&lt;/code&gt;.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Maintenant, nous sommes pr&#234;ts pour la seconde &#233;tape : calculer les hauteurs et largeurs maximales de nos logos secondaires. En ce qui concerne la hauteur, j'ai opt&#233; pour 1/3 de l'image principale ; en ce qui concerne la largeur, j'ai opt&#233; pour 1/2.&lt;/p&gt; &lt;p&gt;On utilise pour cela les filtres &lt;a href=&quot;http://www.spip.net/fr_article4291.html&quot; class='spip_out' rel='external'&gt;&lt;code class='spip_code' dir='ltr'&gt;|hauteur&lt;/code&gt;&lt;/a&gt;, &lt;a href=&quot;http://www.spip.net/fr_article4296.html&quot; class='spip_out' rel='external'&gt;&lt;code class='spip_code' dir='ltr'&gt;|largeur&lt;/code&gt;&lt;/a&gt; pour d&#233;terminer la hauteur et la largeur de l'image principale, &lt;a href=&quot;http://www.spip.net/fr_article4279.html&quot; class='spip_out' rel='external'&gt;&lt;code class='spip_code' dir='ltr'&gt;|div&lt;/code&gt;&lt;/a&gt; pour proc&#233;der &#224; une division, et &lt;a href=&quot;http://ch.php.net/manual/fr/function.floor.php&quot; class='spip_out' rel='external'&gt;&lt;code class='spip_code' dir='ltr'&gt;|floor&lt;/code&gt;&lt;/a&gt; pour arrondir &#224; l'entier inf&#233;rieur.&lt;/p&gt; &lt;p&gt;Cela donne donc :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 code&quot;&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#SET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;largeur,&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;secteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|largeur&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|div&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;span style=&quot;&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|round&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Il ne nous reste plus qu'&#224; fabrique nos images finales. Pour ce faire nous utiliserons les filtres suivants :&lt;/p&gt;
&lt;ul class=&quot;spip&quot;&gt;&lt;li&gt; &lt;a href=&quot;http://www.spip.net/fr_article4285.html&quot; class='spip_out' rel='external'&gt;&lt;code class='spip_code' dir='ltr'&gt;|==&lt;/code&gt;&lt;/a&gt;, &lt;a href=&quot;http://www.spip.net/fr_article4616.html#non&quot; class='spip_out' rel='external'&gt;&lt;code class='spip_code' dir='ltr'&gt;|non&lt;/code&gt;&lt;/a&gt; et &lt;a href=&quot;http://www.spip.net/fr_article4615.html&quot; class='spip_out' rel='external'&gt;&lt;code class='spip_code' dir='ltr'&gt;|oui&lt;/code&gt;&lt;/a&gt;, pour v&#233;rifier la pr&#233;sence des diff&#233;rents logos.&lt;/li&gt;&lt;li&gt; &lt;a href=&quot;http://www.spip.net/fr_article901.html#image_reduire&quot; class='spip_out' rel='external'&gt;&lt;code class='spip_code' dir='ltr'&gt;|image_reduire&lt;/code&gt;&lt;/a&gt; qu'on ne pr&#233;sente plus.&lt;/li&gt;&lt;li&gt; &lt;a href=&quot;http://www.spip.net/fr_article3327.html#image_masque&quot; class='spip_out' rel='external'&gt;&lt;code class='spip_code' dir='ltr'&gt;|image_masque&lt;/code&gt;&lt;/a&gt;, qui peut recevoir beaucoup de param&#232;tres en troisi&#232;me argument, que la documentation ne d&#233;taille pas. Ces param&#232;tres sont &#224; s&#233;parer par des virgules. Dans le cas pr&#233;sent, ceux qui nous int&#233;ressent sont :&lt;ul class=&quot;spip&quot;&gt;&lt;li&gt; &lt;code class='spip_code' dir='ltr'&gt;mode=normal&lt;/code&gt; pour que l'image du dessus masque totalement l'image du dessous. &lt;/li&gt;&lt;li&gt; &lt;code class='spip_code' dir='ltr'&gt;text-align&lt;/code&gt; pour le positionnement horizontal.&lt;/li&gt;&lt;li&gt; &lt;code class='spip_code' dir='ltr'&gt;vertical-align&lt;/code&gt; pour le positionnement vertical.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Au niveau des possibilit&#233;s de combinaison, nous en avons quatre possibilit&#233;s :&lt;/p&gt;
&lt;ul class=&quot;spip&quot;&gt;&lt;li&gt; L'article ne se trouve pas directement dans un secteur. Dans ce cas il nous faut tester s'il dispose d'un secteur secondaire :&lt;ul class=&quot;spip&quot;&gt;&lt;li&gt; S'il ne dispose pas de secteur secondaire, le logo final correspond au logo du secteur sur lequel on ajoute en bas &#224; droite le logo de la rubrique (cas 1).&lt;/li&gt;&lt;li&gt; S'il dispose d'un secteur secondaire, le logo final correspond au logo du secteur sur lequel on superpose (cas 2) :&lt;ul class=&quot;spip&quot;&gt;&lt;li&gt; Le logo de la rubrique en bas &#224; droite.&lt;/li&gt;&lt;li&gt; Le logo du secteur en haut &#224; gauche.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt; L'article se trouve directement dans un secteur. Dans ce cas, nous testons s'il dispose d'un secteur secondaire :&lt;ul class=&quot;spip&quot;&gt;&lt;li&gt; S'il n'en dispose pas, alors le logo correspond tout simplement au logo du secteur (cas 3).&lt;/li&gt;&lt;li&gt; S'il en dispose, alors le logo correspond au logo du secteur, sur lequel on superpose le logo du secteur secondaire (cas 4).&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Au final, cela donne :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 code&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;rubrique&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|==&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;secteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|non&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;autre_secteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|non&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#REM&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;&lt;!--cas 1--&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;secteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|image_masque&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;rubrique&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|image_reduire&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;largeur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;,&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;hauteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;,&lt;br /&gt; mode=normal,&lt;br /&gt; text-align=right,&lt;br /&gt; vertical-align=bottom&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;autre_secteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|oui&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#REM&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;&lt;!--cas 2--&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;secteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|image_masque&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;rubrique&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|image_reduire&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;largeur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;,&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;hauteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;,&lt;br /&gt; mode=normal,&lt;br /&gt; text-align=right,&lt;br /&gt; vertical-align=bottom&lt;br /&gt; &lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|image_masque&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;autre_secteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|image_reduire&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;largeur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;,&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;hauteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;,&lt;br /&gt; mode=normal,&lt;br /&gt; text-align=left,&lt;br /&gt; vertical-align=top&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;rubrique&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|==&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;secteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|oui&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;br /&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;autre_secteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|non&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#REM&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;&lt;!--cas 3--&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;secteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;autre_secteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|oui&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#REM&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;&lt;!--cas 4--&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;secteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|image_masque&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;autre_secteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|image_reduire&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;largeur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;,&lt;br /&gt; &lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;hauteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;,&lt;br /&gt; mode=normal,&lt;br /&gt; text-align=left,&lt;br /&gt; vertical-align=top&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;div class='code_download' style='text-align: right;'&gt; &lt;a href='http://geekographie.maieul.net/local/cache-code/87475f83f6ca2df26f1f0ccffceed542.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Et donc notre squelette &lt;code class='spip_code' dir='ltr'&gt;inclure/logos-rubriques&lt;/code&gt; final est :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 code&quot;&gt;&lt;BOUCLE_article&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ARTICLES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;id_article&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&gt;&lt;br /&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#REM&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;&lt;!-- extraire les logos --&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;
&lt;BOUCLE_rubrique&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;RUBRIQUES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;id_rubrique&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&gt;&lt;br /&gt; &lt;span style=&quot;color: #CA5200;&quot;&gt;#SET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;rubrique,&lt;span style=&quot;color: #CA5200;&quot;&gt;#LOGO_RUBRIQUE&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/BOUCLE_rubrique&gt;&lt;br /&gt;
&lt;BOUCLE_secteur&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;RUBRIQUES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;id_secteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;racine&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&gt;&lt;br /&gt; &lt;span style=&quot;color: #CA5200;&quot;&gt;#SET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;secteur,&lt;span style=&quot;color: #CA5200;&quot;&gt;#LOGO_RUBRIQUE&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/BOUCLE_secteur&gt;&lt;br /&gt;
&lt;BOUCLE_autre_secteur&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;RUBRIQUES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;parents_indirects&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&gt;&lt;br /&gt;
&lt;BOUCLE_racine&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;RUBRIQUES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;id_rubrique&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;racine&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&gt;&lt;br /&gt;
&lt;span style=&quot;color: #CA5200;&quot;&gt;#SET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;autre_secteur,&lt;span style=&quot;color: #CA5200;&quot;&gt;#LOGO_RUBRIQUE&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/BOUCLE_racine&gt;&lt;br /&gt;
&lt;/BOUCLE_autre_secteur&gt;&lt;br /&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#REM&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;&lt;!-- calcul des dimensions --&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #CA5200;&quot;&gt;#SET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;hauteur,&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;secteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|hauteur&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|div&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;span style=&quot;&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|round&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #CA5200;&quot;&gt;#SET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;largeur,&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;secteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|largeur&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|div&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;span style=&quot;&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|round&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#REM&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;&lt;!-- fabrication des images r&#233;duites--&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#REM&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;&lt;!-- Fabrication de l'image finale--&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;rubrique&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|==&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;secteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|non&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;autre_secteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|non&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#REM&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;&lt;!--cas 1--&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;secteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|image_masque&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;rubrique&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|image_reduire&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;largeur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;,&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;hauteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;,&lt;br /&gt; mode=normal,&lt;br /&gt; text-align=right,&lt;br /&gt; vertical-align=bottom&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;autre_secteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|oui&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#REM&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;&lt;!--cas 2--&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;secteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|image_masque&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;rubrique&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|image_reduire&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;largeur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;,&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;hauteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;,&lt;br /&gt; mode=normal,&lt;br /&gt; text-align=right,&lt;br /&gt; vertical-align=bottom&lt;br /&gt; &lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|image_masque&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;autre_secteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|image_reduire&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;largeur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;,&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;hauteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;,&lt;br /&gt; mode=normal,&lt;br /&gt; text-align=left,&lt;br /&gt; vertical-align=top&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;rubrique&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|==&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;secteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|oui&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;autre_secteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|non&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#REM&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;&lt;!--cas 3--&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;secteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;autre_secteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|oui&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#REM&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;&lt;!--cas 4--&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;secteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|image_masque&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;autre_secteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|image_reduire&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;largeur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;,&lt;br /&gt; &lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;hauteur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;,&lt;br /&gt; mode=normal,&lt;br /&gt; text-align=left,&lt;br /&gt; vertical-align=top&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;
&lt;/BOUCLE_article&gt;&lt;/div&gt;&lt;div class='code_download' style='text-align: right;'&gt; &lt;a href='http://geekographie.maieul.net/local/cache-code/23a56680eb6129282ee783934919b850.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>
<item xml:lang="fr">
		<title>G&#233;rer le statut des articles directement depuis le site public sous SPIP 3
</title>
		<link>http://geekographie.maieul.net/Gerer-le-statut-des-articles-SPIP3</link>
		<guid isPermaLink="true">http://geekographie.maieul.net/Gerer-le-statut-des-articles-SPIP3</guid>
		<dc:date>2012-08-12T19:43:32Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		



		<description>
&lt;p&gt;J'avais publi&#233; il y a plus d'un an et demi un article sur la mani&#232;re de g&#233;rer directement le statut des articles depuis le site public. Voici son adaptation pour SPIP 3. Comme vous pourrez le voir, le code est beaucoup plus simple. Il suffit en effet de mettre dans son squelette, dans la boucle (ARTICLES) : [(#AUTORISERpublier,article,#ID_ARTICLE|oui) #FORMULAIRE_INSTITUER_OBJETarticle,#ID_ARTICLE,#SELF|parametre_urlvar_mode,preview ] L. 1 et 3 : On v&#233;rifie que la personne connect&#233;e &#224; bien (...)&lt;/p&gt;


-
&lt;a href="http://geekographie.maieul.net/-Formulaires-" rel="directory"&gt;Formulaires
&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_chapo'&gt;&lt;p&gt;J'avais publi&#233; il y a plus d'un an et demi un article sur la mani&#232;re de &lt;a href=&quot;http://geekographie.maieul.net/Gerer-le-statut-des-articles?archive=oui&quot; class='spip_in'&gt;g&#233;rer directement le statut des articles depuis le site public&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Voici son adaptation pour SPIP 3. Comme vous pourrez le voir, le code est beaucoup plus simple.&lt;/p&gt;&lt;/div&gt;
		&lt;div class='rss_texte'&gt;&lt;p&gt;Il suffit en effet de mettre dans son squelette, dans la boucle &lt;code class='spip_code' dir='ltr'&gt;(ARTICLES)&lt;/code&gt; :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 cadre spip_cadre&quot;&gt;&lt;div class=&quot;spip2&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#AUTORISER&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;publier,article,&lt;span style=&quot;color: #CA5200;&quot;&gt;#ID_ARTICLE&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|oui&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#FORMULAIRE_INSTITUER_OBJET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;article,&lt;span style=&quot;color: #CA5200;&quot;&gt;#ID_ARTICLE&lt;/span&gt;,&lt;span style=&quot;color: #CA5200;&quot;&gt;#SELF&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|parametre_url&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;var_mode,preview&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://geekographie.maieul.net/local/cache-code/c4bcb6352635acb41a7242fd1daa783a.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;ul class=&quot;spip&quot;&gt;&lt;li&gt; L. 1 et 3 : On v&#233;rifie que la personne connect&#233;e &#224; bien le droit de publier l'article en question. Voir la documentation sur &lt;a href=&quot;http://programmer.spip.net/La-balise-AUTORISER&quot; class='spip_out' rel='external'&gt;&lt;code class='spip_code' dir='ltr'&gt;#AUTORISER&lt;/code&gt;&lt;/a&gt;.&lt;/li&gt;&lt;li&gt; L. 2 : appel du formulaire permettant de changer le statut d'un objet. Ici on pr&#233;cise que l'on veut pouvoir modifier le statut d'un article, dont l'identifiant est &lt;code class='spip_code' dir='ltr'&gt;#ID_ARTICLE&lt;/code&gt; Le troisi&#232;me argument &lt;code class='spip_code' dir='ltr'&gt;SELF|parametre_url{var_mode,preview}&lt;/code&gt; sert &#224; ne pas tomber sur une erreur 404 si on d&#233;publie l'article : il indique qu'apr&#232;s l'ex&#233;cution du formulaire on retourne sur la m&#234;me page, en mode &lt;code class='spip_code' dir='ltr'&gt;previsualisation&lt;/code&gt;&lt;span class=&quot;spip_note_ref&quot;&gt; [&lt;a href='#nb2-1' class='spip_note' rel='footnote' title='Attention, cela ne fonctionne pas si l'on passe le statut &#224; &#171; refus&#233; &#187; ou &#171; &#224; (...)' id='nh2-1'&gt;1&lt;/a&gt;]&lt;/span&gt;.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;
		&lt;hr /&gt;
		&lt;div class='rss_notes'&gt;&lt;div id='nb2-1'&gt;
&lt;p&gt;&lt;span class=&quot;spip_note_ref&quot;&gt;[&lt;a href='#nh2-1' class='spip_note' title='Notes 2-1' rev='footnote'&gt;1&lt;/a&gt;] &lt;/span&gt;Attention, cela ne fonctionne pas si l'on passe le statut &#224; &#171; refus&#233; &#187; ou &#171; &#224; la poubelle &#187;.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>
<item xml:lang="fr">
		<title>Jeux de squelettes sous forme de plugin pour SPIP 3
</title>
		<link>http://geekographie.maieul.net/Jeux-de-squelettes-sous-forme-de-93</link>
		<guid isPermaLink="true">http://geekographie.maieul.net/Jeux-de-squelettes-sous-forme-de-93</guid>
		<dc:date>2012-07-23T15:29:48Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		



		<description>
&lt;p&gt;Dans un pr&#233;c&#233;dent article, j'expliquais pourquoi et comment distribuer un jeu de squelettes sous forme de plugin. Cet article est une simple adaptation pour SPIP 3. Les raisons de distribuer un jeux de squelette sous forme de plugin n'ont pas chang&#233; : je ne les r&#233;p&#232;te donc pas. En revanche, le passage &#224; SPIP 3 a introduit la transformation de plugin.xml &#224; paquet.xml. Ces changements sont li&#233;s &#224; la volont&#233; d'avoir un formalisme plus important et plus propre. Voici donc un fichier paquet.xml minimal (...)&lt;/p&gt;


-
&lt;a href="http://geekographie.maieul.net/-Jeu-de-squelettes-" rel="directory"&gt;Jeu de squelettes
&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_chapo'&gt;&lt;p&gt;Dans un pr&#233;c&#233;dent article, j'expliquais &lt;a href=&quot;http://geekographie.maieul.net/Jeux-de-squelettes-sous-forme-de&quot; class='spip_in'&gt;pourquoi et comment distribuer un jeu de squelettes sous forme de plugin&lt;/a&gt;. Cet article est une simple adaptation pour SPIP 3.&lt;/p&gt; &lt;p&gt;Les raisons de distribuer un jeux de squelette sous forme de plugin n'ont pas chang&#233; : je ne les r&#233;p&#232;te donc pas. En revanche, le passage &#224; SPIP 3 a introduit la transformation de &lt;code class='spip_code' dir='ltr'&gt;plugin.xml&lt;/code&gt; &#224; &lt;code class='spip_code' dir='ltr'&gt;paquet.xml&lt;/code&gt;. Ces changements sont li&#233;s &#224; la volont&#233; d'avoir un formalisme plus important et plus propre. Voici donc un fichier paquet.xml minimal pour proposer un jeu de squelettes sous forme de paquet.xml. On lira &lt;a href=&quot;http://plugins.spip.net/redaction-du-paquet-xml.html&quot; class='spip_out' rel='external'&gt;les sp&#233;cifications du &lt;code class='spip_code' dir='ltr'&gt;paquet.xml&lt;/code&gt;&lt;/a&gt; pour aller plus loins.&lt;/p&gt;&lt;/div&gt;
		&lt;div class='rss_texte'&gt;&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_xml code&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;paquet&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #009900;&quot;&gt; &lt;span style=&quot;color: #000066;&quot;&gt;prefix&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;'prefix'&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #009900;&quot;&gt; &lt;span style=&quot;color: #000066;&quot;&gt;categorie&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;'squelette'&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #009900;&quot;&gt; &lt;span style=&quot;color: #000066;&quot;&gt;version&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;'x.y.z'&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #009900;&quot;&gt; &lt;span style=&quot;color: #000066;&quot;&gt;etat&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;'dev/test/stable'&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #009900;&quot;&gt; &lt;span style=&quot;color: #000066;&quot;&gt;compatibilite&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;compatibilit&#233; de version SPIP&quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;nom&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Nom du plugin&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;/nom&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;auteur&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;lien&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;siteweb&quot;&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;mail&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;auteur@domaine.tld&quot;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;Nom de l'auteur&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;/auteur&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;licence&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;lien&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;siteweb&quot;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;Licence&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;/licence&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;necessite&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;nom&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;prefixplugin&quot;&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;compatibilite&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;une compatibilite&quot;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;/paquet&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class='code_download' style='text-align: right;'&gt; &lt;a href='http://geekographie.maieul.net/local/cache-code/573ce07fba7a584ea7c536520ab3482a.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Selon la documentation officielle, la compatibilit&#233; prend l'une des formes suivantes :&lt;/p&gt;
&lt;blockquote class=&quot;spip&quot;&gt;&lt;ul class=&quot;spip&quot;&gt;&lt;li&gt; [v1 ;v2] qui correspond &#224; v1 &lt;= SPIP &lt;= v2&lt;/li&gt;&lt;li&gt; [v1 ;[ qui correspond &#224; SPIP &gt;= v1&lt;/li&gt;&lt;li&gt; [ ;v2[ qui correspond &#224; SPIP &lt; v2&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;et toutes les autres combinaisons avec inclusion ou pas des bornes.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Ainsi pour indiquer une compatibilit&#233; sur toute la branche SPIP 3, mettre :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_xml code&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;paquet&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #009900;&quot;&gt; &lt;span style=&quot;color: #000066;&quot;&gt;prefix&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;'prefix'&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #009900;&quot;&gt; &lt;span style=&quot;color: #000066;&quot;&gt;categorie&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;'squelette'&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #009900;&quot;&gt; &lt;span style=&quot;color: #000066;&quot;&gt;version&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;'x.y.z'&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #009900;&quot;&gt; &lt;span style=&quot;color: #000066;&quot;&gt;etat&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;'dev/test/stable'&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #009900;&quot;&gt; &lt;span style=&quot;color: #000066;&quot;&gt;compatibilite&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;[3.0.0;3.0.*]&quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class='code_download' style='text-align: right;'&gt; &lt;a href='http://geekographie.maieul.net/local/cache-code/2905c1fb13ef703ad84f4dce573a56b9.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#192; noter que ni la balise &lt;code class='spip_code' dir='ltr'&gt;auteur&lt;/code&gt; ni la balise &lt;code class='spip_code' dir='ltr'&gt;licence&lt;/code&gt; ne sont obligatoires, et leurs attributs sont facultatifs. En outre, on doit mettre une balise &lt;code class='spip_code' dir='ltr'&gt;auteur&lt;/code&gt; par auteur.&lt;/p&gt; &lt;p&gt;Vous &lt;strong&gt;devez&lt;/strong&gt; choisir entre l'un des trois &#233;tats du squelette : dev, test, ou stable. Le prefix du squelette doit &#234;tre parlant mais court. Vous pouvez pr&#233;ciser dans les attributs &lt;code class='spip_code' dir='ltr'&gt;documentation&lt;/code&gt; et &lt;code class='spip_code' dir='ltr'&gt;demonstration&lt;/code&gt; de la balise &lt;code class='spip_code' dir='ltr'&gt;paquet&lt;/code&gt; l'url de la documentation et du site de d&#233;monstration.&lt;/p&gt; &lt;p&gt;En ce qui concerne la balise &lt;code class='spip_code' dir='ltr'&gt;necessite&lt;/code&gt;, il faut en mettre une par plugin n&#233;cessaire, en mettant comme valeur de l'attribut &lt;code class='spip_code' dir='ltr'&gt;nom&lt;/code&gt; le pr&#233;fixe du plugin demand&#233;.&lt;/p&gt; &lt;p&gt;Vous pouvez aussi pr&#233;ciser les versions compatibles de ces plugins, via l'attribut &lt;code class='spip_code' dir='ltr'&gt;compatibilite&lt;/code&gt;, ayant la m&#234;me syntaxe que pour la balise &lt;code class='spip_code' dir='ltr'&gt;paquet.xml&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;Il ne faut pas mettre de num&#233;ro de version dans le prefix ni dans le titre : l'attribut &lt;code class='spip_code' dir='ltr'&gt;version&lt;/code&gt; sert &#224; cela. Cette attribut doit avoir la forme &lt;code class='spip_code' dir='ltr'&gt;x.y.z&lt;/code&gt; :
&lt;br /&gt;&lt;img src=&quot;http://geekographie.maieul.net/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; /&gt; Un changement de X indique un changement majeure (rupture de compatibilit&#233;, r&#233;organisation totale du code).
&lt;br /&gt;&lt;img src=&quot;http://geekographie.maieul.net/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; /&gt; Un changement de Y indique un changement mineure (nouvelle fonctionalit&#233;).
&lt;br /&gt;&lt;img src=&quot;http://geekographie.maieul.net/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; /&gt; Un changement de Z indique une correction de bug.&lt;/p&gt; &lt;p&gt;Il est tr&#232;s fortement demand&#233;e de mettre les trois chiffres pour une version d'un squelette.&lt;/p&gt;
&lt;h3 class=&quot;h3 spip&quot;&gt;Le fichier de langue&lt;/h3&gt;
&lt;p&gt;Avec &lt;code class='spip_code' dir='ltr'&gt;paquet.xml&lt;/code&gt; certains &#233;l&#233;ments doivent &#234;tre indiqu&#233;s dans des &lt;a href=&quot;http://programmer.spip.net/Fichiers-de-langues&quot; class='spip_out' rel='external'&gt;fichiers de langue&lt;/a&gt;. Ces fichiers doivent &#234;tre situ&#233;s dans le dossier &lt;code class='spip_code' dir='ltr'&gt;lang&lt;/code&gt; du plugin, et avoir un nom sous la forme : &lt;code class='spip_code' dir='ltr'&gt;paquet-{pr&#233;fixe_du_plugin}_{code_de_langue}.php&lt;/code&gt;. Par exemple, pour un jeux de squelette dont le prefix est &lt;code class='spip_code' dir='ltr'&gt;toto&lt;/code&gt;, les cha&#238;nes de langues de descriptions du squelette seront &#224; placer dans &lt;code class='spip_code' dir='ltr'&gt;lang/paquet-toto_fr.php&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;Il existe deux cha&#238;nes de langues &lt;strong&gt;quasi-obligatoires&lt;/strong&gt; :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_xml code&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;$GLOBALS&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;$GLOBALS&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'idx_lang'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; = array&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #009900;&quot;&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;'prefix_description'&lt;/span&gt; =&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt; 'Description aussi succincte que possible du plugin, pas une documentation.',&lt;br /&gt; 'prefix_slogan' =&gt; 'Slogan du plugin'&lt;br /&gt;
);&lt;br /&gt;
?&gt;&lt;/div&gt;&lt;div class='code_download' style='text-align: right;'&gt; &lt;a href='http://geekographie.maieul.net/local/cache-code/7fdf66ecd2acd6f88e2751f546f965b2.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3 class=&quot;h3 spip&quot;&gt;Et le fichier &lt;code class='spip_code' dir='ltr'&gt;options.php&lt;/code&gt; ?&lt;/h3&gt;
&lt;p&gt;Dans la pr&#233;c&#233;dente version de cet article, je pr&#233;sentais rapidement un fichier &lt;code class='spip_code' dir='ltr'&gt;options.php&lt;/code&gt; recommand&#233;s. Ce fichier n'a plus de sens pour une distribution minimale d'un jeu de squelette, puisque SPIP 3 s'occupe automatiquement de supprimer les num&#233;ros devant les titres.&lt;/p&gt; &lt;p&gt;Cependant, pour une jeu de squelette propre &#224; votre organisation et non g&#233;n&#233;rique, vous pouvez mettre un fichier &lt;code class='spip_code' dir='ltr'&gt;prefix_options.php&lt;/code&gt; afin d'augmenter le quotat de cache, en mettant les lignes suivantes (pour augmenter &#224; 100 Mo le quota de cache :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php code&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #000088;&quot;&gt;$GLOBALS&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'quota_cache'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class='code_download' style='text-align: right;'&gt; &lt;a href='http://geekographie.maieul.net/local/cache-code/f0eaf99ebd247e2aae4fa8965e9b6455.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;h3 class=&quot;h3 spip&quot;&gt;V&#233;rifier son paquet.xml&lt;/h3&gt;
&lt;p&gt;On pourra utiliser l'outil de &lt;a href=&quot;http://plugins.spip.net/validation/&quot; class='spip_out' rel='external'&gt;v&#233;rification en ligne pour s'assurer de la conformit&#233; du fichier &lt;code class='spip_code' dir='ltr'&gt;paquet.xml&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>
<item xml:lang="fr">
		<title>Les diff&#233;rents modes d'inclusion de SPIP
</title>
		<link>http://geekographie.maieul.net/Les-differents-modes-d-inclusion</link>
		<guid isPermaLink="true">http://geekographie.maieul.net/Les-differents-modes-d-inclusion</guid>
		<dc:date>2012-01-26T10:25:35Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		



		<description>
&lt;p&gt;Suite &#224; une remarque de Tetue apr&#232;s mon article sur les pratiques de d&#233;veloppements avec SPIP et &#224; une question d'un th&#233;ologien sur twitter, je fais ici un point sur les deux modes d'inclusion de squelettes dans SPIP. Rappel : principe de l'inclusion Inclure un squelette A dans un squelette B, c'est dire &#224; B de reprendre le contenu du squelette A &#224; l'endroit de l'inclusion. L'inter&#234;t d'une telle pratique est de mettre en commun des morceaux de codes utilis&#233;s par plusieurs squelettes. Le cas le plus (...)&lt;/p&gt;


-
&lt;a href="http://geekographie.maieul.net/-Organisation-du-code-SPIP-" rel="directory"&gt;Organisation du code
&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_chapo'&gt;&lt;p&gt;Suite &#224; une &lt;a href=&quot;http://geekographie.maieul.net/Sept-bonnes-pratiques-de#comment113&quot; class='spip_in'&gt;remarque de Tetue apr&#232;s mon article sur les pratiques de d&#233;veloppements avec SPIP&lt;/a&gt; et &#224; une &lt;a href=&quot;https://twitter.com/#!/NicolasFriedli/status/161470949072441345&quot; class='spip_out' rel='external'&gt;question d'un th&#233;ologien sur twitter&lt;/a&gt;, je fais ici un point sur les deux modes d'inclusion de squelettes dans SPIP.&lt;/p&gt;&lt;/div&gt;
		&lt;div class='rss_texte'&gt;&lt;h3 class=&quot;h3 spip&quot;&gt;Rappel : principe de l'inclusion&lt;/h3&gt;
&lt;p&gt;Inclure un squelette A dans un squelette B, c'est dire &#224; B de reprendre le contenu du squelette A &#224; l'endroit de l'inclusion.&lt;/p&gt; &lt;p&gt;L'inter&#234;t d'une telle pratique est de mettre en commun des morceaux de codes utilis&#233;s par plusieurs squelettes. Le cas le plus classique &#233;tant l'affichage du menu, mais plus le temps passe, plus le devellopeur SPIP aguerri aura tendance &#224; multiplier les inclusions, voyant qu'il utilise beaucoup de code en commun.&lt;/p&gt; &lt;p&gt;Le &lt;a href=&quot;http://www.spip-contrib.net/Modele-de-squelette-reutilisable&quot; class='spip_out' rel='external'&gt;principe des squelettes Z&lt;/a&gt; pousse &#224; l'extr&#234;me cette id&#233;e d'inclusion / mutualisation du code.&lt;/p&gt; &lt;p&gt;Mais attention : il ne faut pas croire qu'on imite ainsi un &#171; copier-coller &#187; de B dans A.&lt;/p&gt; &lt;p&gt;Ainsi si je met dans le squelette A :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 code&quot;&gt;XXX&lt;span style=&quot;color: #222&quot;&gt;&lt;INCLURE&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;fond=B&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;XXX&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;et dans le squelette B&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 code&quot;&gt;YYY&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Cela &lt;strong&gt;ne revient pas au m&#234;me&lt;/strong&gt; que mettre dans A :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 code&quot;&gt;XXXYYYXXX&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Pourquoi ? Parce qu'il faut consid&#233;rer que le contexte de chaque squelette est ind&#233;pendant. Par contexte, j'entend l'ensemble des param&#232;tres techniques qui lui sont pass&#233;s, par exemple un num&#233;ro d'article. Ce contexte est r&#233;cup&#233;rable via la balise &lt;code class='spip_code' dir='ltr'&gt;#ENV&lt;/code&gt; et sert &#224; l'interpr&#233;tation des crit&#232;res de boucles de premier niveaux. J'explique plus en d&#233;tails &lt;a href=&quot;http://www.spip-contrib.net/La-balise-ENV&quot; class='spip_out' rel='external'&gt;cette notion de contexte dans un article sur contrib&lt;/a&gt;.&lt;/p&gt;
&lt;h3 class=&quot;h3 spip&quot;&gt;&lt;code class='spip_code' dir='ltr'&gt;&lt;INCLURE&gt;&lt;/code&gt; ou &lt;code class='spip_code' dir='ltr'&gt;#INCLURE&lt;/code&gt; ?&lt;/h3&gt;
&lt;p&gt;Il existe deux modes principaux d'inclusion :&lt;/p&gt;
&lt;ol class=&quot;spip&quot;&gt;&lt;li&gt; &lt;a href=&quot;http://programmer.spip.org/Inclure-des-squelettes&quot; class='spip_out' rel='external'&gt;&lt;code class='spip_code' dir='ltr'&gt;&lt;INCLURE{fond=B}&gt;&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt; &lt;a href=&quot;http://programmer.spip.org/INCLURE&quot; class='spip_out' rel='external'&gt;&lt;code class='spip_code' dir='ltr'&gt;#INCLURE{fond=B}&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Historiquement, le premier mod&#232;le est apparu d'abord. Quelle est la diff&#233;rence technique entre les deux ? Soit un squelette A appelant un squelette B.&lt;/p&gt;
&lt;ol class=&quot;spip&quot;&gt;&lt;li&gt; Dans le cas d'une inclusion avec &lt;code class='spip_code' dir='ltr'&gt;INCLURE&lt;/code&gt; le squelette B poss&#232;de son propre cache. Lorsque le squelette A est appel&#233;, il produit son cache &#224; lui. Le r&#233;sultat du cache de A est retourn&#233; au navigateur, et c'est &#224; ce moment l&#224; que le cache du squelette B est ins&#233;r&#233;.&lt;/li&gt;&lt;li&gt; Dans le cas d'une inclusion avec &lt;code class='spip_code' dir='ltr'&gt;#INCLURE&lt;/code&gt;, il n'existe pas de cache du squelette &lt;code class='spip_code' dir='ltr'&gt;B&lt;/code&gt;. Le morceau de PHP / HTML li&#233; &#224; l'interpr&#233;tation par SPIP du squelette B est mis directement dans le cache du squelette A.&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Puisqu'il para&#238;t qu'il faut mettre des sch&#233;mas, voici un sch&#233;ma qui tente d'expliquer cette diff&#233;rence&lt;span class=&quot;spip_note_ref&quot;&gt; [&lt;a href='#nb2-1' class='spip_note' rel='footnote' title='Toute suggestion d'am&#233;lioration est la bienvenue.' id='nh2-1'&gt;1&lt;/a&gt;]&lt;/span&gt;.&lt;/p&gt;
&lt;dl class='spip_document_47 spip_documents'&gt;
&lt;dt&gt;&lt;img src='http://geekographie.maieul.net/local/cache-vignettes/L356xH513/inclusion-16b75.png' width='356' height='513' alt='PNG - 27.4&#160;ko' /&gt;&lt;/dt&gt;
&lt;dt class='crayon document-titre-47 spip_doc_titre' style='width:350px;'&gt;&lt;strong&gt;&lt;code class='spip_code' dir='ltr'&gt;&lt;INCLURE&gt;&lt;/code&gt; ou &lt;code class='spip_code' dir='ltr'&gt;#INCLURE&lt;/code&gt; ?
&lt;/strong&gt;&lt;/dt&gt;
&lt;dd class='crayon document-descriptif-47 spip_doc_descriptif' style='width:350px;'&gt;Inclusion statique ou inclusion dynamique ?
&lt;/dd&gt;
&lt;/dl&gt;&lt;h3 class=&quot;h3 spip&quot;&gt;Cons&#233;quences techniques&lt;/h3&gt;&lt;ol class=&quot;spip&quot;&gt;&lt;li&gt; Du point de vue de la taille des caches :&lt;ol class=&quot;spip&quot;&gt;&lt;li&gt; &lt;code class='spip_code' dir='ltr'&gt;&lt;INCLURE&gt;&lt;/code&gt; produit plus de fichiers de cache, mais moins gros.&lt;/li&gt;&lt;li&gt; &lt;code class='spip_code' dir='ltr'&gt;#INCLURE&lt;/code&gt; produit des fichiers de cache plus gros, mais en moindre quantit&#233;.&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt; Du point de vue de la dur&#233;e des caches :&lt;ol class=&quot;spip&quot;&gt;&lt;li&gt;&lt;code class='spip_code' dir='ltr'&gt;&lt;INCLURE&gt;&lt;/code&gt; permet d'avoir un squelette fils n'ayant pas la m&#234;me dur&#233;e de cache que le squelette p&#232;re.&lt;/li&gt;&lt;li&gt; &lt;code class='spip_code' dir='ltr'&gt;#INCLURE&lt;/code&gt; ne permet pas cela, puisque le squelette fils n'a pas vraiment de cache propre.&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt; Du point de vue des techniques SPIP applicables :&lt;ol class=&quot;spip&quot;&gt;&lt;li&gt; On peut pas filtre le r&#233;sultat d'une inclusion par &lt;code class='spip_code' dir='ltr'&gt;&lt;INCLURE&gt;&lt;/code&gt;&lt;span class=&quot;spip_note_ref&quot;&gt; [&lt;a href='#nb2-2' class='spip_note' rel='footnote' title='Une solution pour contourner ce probl&#232;me est de mettre dans le squelette (...)' id='nh2-2'&gt;2&lt;/a&gt;]&lt;/span&gt;.&lt;/li&gt;&lt;li&gt; Par contre avec &lt;code class='spip_code' dir='ltr'&gt;#INCLURE&lt;/code&gt; on peut appliquer un filtre &lt;code class='spip_code' dir='ltr'&gt;[(#INCLURE{fond=B}|filtre)]&lt;/code&gt;.&lt;/li&gt;&lt;li&gt; Dans tout les cas on peut utiliser AJAX.&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt; Du point de vue de la performance j'avoue ne pas trop savoir. Avoir un cache propre (&lt;code class='spip_code' dir='ltr'&gt;&lt;INCLURE&lt;/code&gt;) permet d'avoir une vrai mutualisation des caches, dont un gain en terme de requ&#234;te SQL, en revanche on a une perte de temps au moment o&#249; le cache de B est &#171; reinject&#233; &#187; dans le fichier A renvoy&#233; &#224; l'internaute. C'est donc au d&#233;veloppeur de juger au cas par cas, mais il me semble que dans 90 % des cas, il vaut mieux utiliser &lt;code class='spip_code' dir='ltr'&gt;&lt;INCLURE&gt;&lt;/code&gt;.&lt;/li&gt;&lt;/ol&gt;&lt;h3 class=&quot;h3 spip&quot;&gt;Et &lt;code class='spip_code' dir='ltr'&gt;#MODELE&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;On peut aussi utiliser &lt;a href=&quot;http://programmer.spip.org/MODELE&quot; class='spip_out' rel='external'&gt;&lt;code class='spip_code' dir='ltr'&gt;#MODELE&lt;/code&gt;&lt;/a&gt;. Pour ce faire, il faut que le fichier inclu se situe dans le dossier &lt;code class='spip_code' dir='ltr'&gt;modeles&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;Techniquement, faire&lt;/p&gt; &lt;p&gt;&lt;code class='spip_code' dir='ltr'&gt;#MODELE{B}&lt;/code&gt;&lt;/p&gt; &lt;p&gt;revient, &#224; peu de chose pr&#232;s, &#224; la m&#234;me chose que faire &lt;code class='spip_code' dir='ltr'&gt;#INCLURE{fond=modeles/B}&lt;/code&gt;. Une diff&#233;rence toutefois : dans le cas de &lt;code class='spip_code' dir='ltr'&gt;#MODELE&lt;/code&gt; l'identifiant de l'objet courant est automatiquement pass&#233; en param&#232;tre.&lt;/p&gt; &lt;p&gt;Exemple, j'ai un squelette &lt;code class='spip_code' dir='ltr'&gt;modeles/B.html&lt;/code&gt; :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 code&quot;&gt;&lt;BOUCLE_article&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ARTICLES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;id_article&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&gt;&lt;br /&gt;
&lt;span style=&quot;color: #CA5200;&quot;&gt;#ID_ARTICLE&lt;/span&gt; &lt;span style=&quot;color: #CA5200;&quot;&gt;#TITRE&lt;/span&gt;&lt;br /&gt;
&lt;/BOUCLE_article&gt;&lt;/div&gt;&lt;div class='code_download' style='text-align: right;'&gt; &lt;a href='http://geekographie.maieul.net/local/cache-code/e92ec7c9605eb04ad2fa5047a5d9c87a.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Dans mon squelette A, je cherche &#224; appeler ce squelette pour tout les articles d'une rubrique.&lt;/p&gt; &lt;p&gt;Je peux faire soit :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 code&quot;&gt;&lt;BOUCLE_articles&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ARTICLES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;id_rubrique&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&gt;&lt;br /&gt;
&lt;span style=&quot;color: #CA5200;&quot;&gt;#MODELE&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;B&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/BOUCLE_articles&gt;&lt;/div&gt;&lt;div class='code_download' style='text-align: right;'&gt; &lt;a href='http://geekographie.maieul.net/local/cache-code/2e7da74ad284794e6d490f7bd6cded4a.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;soit :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 code&quot;&gt;&lt;BOUCLE_articles&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ARTICLES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;id_rubrique&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&gt;&lt;br /&gt;
&lt;span style=&quot;color: #CA5200;&quot;&gt;#INCLURE&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;fond=modeles/B,id_article&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/BOUCLE_articles&gt;&lt;/div&gt;&lt;div class='code_download' style='text-align: right;'&gt; &lt;a href='http://geekographie.maieul.net/local/cache-code/15e31b7b5025a0e24ad3ebdfaf8b6962.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Personnellement je n'aime pas trop &lt;code class='spip_code' dir='ltr'&gt;#MODELE&lt;/code&gt;, je trouve qu'il induit une confusion. Le seul cas o&#249; l'emploi de mod&#232;le est justifiable, c'est lorsque l'on souhaite permettre &#224; un auteur d'inclure un tel morceau dans son article, en utilisant :&lt;/p&gt;
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;B|id_article=xxx&gt;&lt;/code&gt;&lt;/div&gt;
&lt;p&gt;Par exemple &lt;a href=&quot;http://www.spip-contrib.net/Gravatar&quot; class='spip_out' rel='external'&gt;le plugin Gravatar&lt;/a&gt; propose un mod&#232;le &lt;code class='spip_code' dir='ltr'&gt;gravatar&lt;/code&gt;, que l'on peut appeler :&lt;/p&gt;
&lt;ol class=&quot;spip&quot;&gt;&lt;li&gt; soit dans un squelette &lt;code class='spip_code' dir='ltr'&gt;#MODELE{gravatar}{id_auteur}&lt;/code&gt;.&lt;/li&gt;&lt;li&gt; soit dans un article &lt;code class='spip_code' dir='ltr'&gt;&lt;gravatar|id_auteur=42&gt;&lt;/code&gt;.&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;On consultera &lt;a href=&quot;http://www.spip.net/fr_article3454.html&quot; class='spip_out' rel='external'&gt;la documentation sur les mod&#232;les&lt;/a&gt; pour plus de d&#233;tails.&lt;/p&gt;&lt;/div&gt;
		&lt;hr /&gt;
		&lt;div class='rss_notes'&gt;&lt;div id='nb2-1'&gt;
&lt;p&gt;&lt;span class=&quot;spip_note_ref&quot;&gt;[&lt;a href='#nh2-1' class='spip_note' title='Notes 2-1' rev='footnote'&gt;1&lt;/a&gt;] &lt;/span&gt;Toute suggestion d'am&#233;lioration est la bienvenue.&lt;/p&gt;
&lt;/div&gt;&lt;div id='nb2-2'&gt;
&lt;p&gt;&lt;span class=&quot;spip_note_ref&quot;&gt;[&lt;a href='#nh2-2' class='spip_note' title='Notes 2-2' rev='footnote'&gt;2&lt;/a&gt;] &lt;/span&gt;Une solution pour contourner ce probl&#232;me est de mettre &lt;code class='spip_code' dir='ltr'&gt;#FILTRE{nom du filtre}&lt;/code&gt; dans le squelette inclus.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;
		&lt;div class='rss_ps'&gt;&lt;p&gt;Pour aider &#224; y voir plus clair dans les diff&#233;rents squelettes inclus, &lt;a href=&quot;http://www.spip.net/fr_article4453.html#var_mode_inclure&quot; class='spip_out' rel='external'&gt;on utilisera la fonction &lt;code class='spip_code' dir='ltr'&gt;var_mode=inclure&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;
		</content:encoded>


		

	</item>
<item xml:lang="fr">
		<title>G&#233;rer beaucoup de sites SPIP en local sous MacOsX
</title>
		<link>http://geekographie.maieul.net/Gerer-beaucoup-de-sites-SPIP-en</link>
		<guid isPermaLink="true">http://geekographie.maieul.net/Gerer-beaucoup-de-sites-SPIP-en</guid>
		<dc:date>2012-01-11T15:38:18Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		



		<description>
&lt;p&gt;Cet article ne s'adresse pas aux SPIPeurs d&#233;butants qui souhaiteraient cr&#233;er un site web en local sous Mac. Un article existe d&#233;j&#224; sur le sujet. Non, cet article s'adresse aux personnes qui souhaitent g&#233;rer beaucoup de site web en local en n'ayant qu'une installation de SPIP par version, autrement dit en mutualisant le noyau de SPIP. J'y d&#233;taille ma pratique, que j'utilise depuis trois ans, donc que j'estime m&#251;re. Principe Je d&#233;veloppe en local 30 sites. Chaque site que je d&#233;veloppe poss&#232;de une (...)&lt;/p&gt;


-
&lt;a href="http://geekographie.maieul.net/-Mutualisation-" rel="directory"&gt;Mutualisation
&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_chapo'&gt;&lt;p&gt;Cet article ne s'adresse pas aux SPIPeurs d&#233;butants qui souhaiteraient cr&#233;er un site web en local sous Mac. &lt;a href=&quot;http://www.spip-contrib.net/Installer-SPIP-sous-Mac-OS-X-avec-MAMP&quot; class='spip_out' rel='external'&gt;Un article existe d&#233;j&#224; sur le sujet&lt;/a&gt;. Non, cet article s'adresse aux personnes qui souhaitent g&#233;rer beaucoup de site web en local en n'ayant qu'une installation de SPIP par version, autrement dit en mutualisant le noyau de SPIP.&lt;/p&gt; &lt;p&gt;J'y d&#233;taille ma pratique, que j'utilise depuis trois ans, donc que j'estime m&#251;re.&lt;/p&gt;&lt;/div&gt;
		&lt;div class='rss_texte'&gt;&lt;h3 class=&quot;h3 spip&quot;&gt;Principe&lt;/h3&gt;
&lt;p&gt;Je d&#233;veloppe en local 30 sites. Chaque site que je d&#233;veloppe poss&#232;de une adresse r&#233;elle, par exemple &lt;a href=&quot;http://maieul.net/&quot; class='spip_url spip_out auto' rel='nofollow external'&gt;http://maieul.net&lt;/a&gt;&lt;span class=&quot;spip_note_ref&quot;&gt; [&lt;a href='#nb2-1' class='spip_note' rel='footnote' title='Je sais, c'est un peu narcissique, mais que voulez-vous&#8230;' id='nh2-1'&gt;1&lt;/a&gt;]&lt;/span&gt;, correspondant &#224; la version cours de production, et une adresse locale, correspondante &#224; la version en cours de d&#233;veloppement.&lt;/p&gt; &lt;p&gt;Par principe, chaque adresse d'un site local termine par &lt;code class='spip_code' dir='ltr'&gt;.dev&lt;/code&gt;. Par exemple &lt;code class='spip_code' dir='ltr'&gt;maieul.dev&lt;/code&gt;, &lt;code class='spip_code' dir='ltr'&gt;geek.dev&lt;/code&gt;, &lt;code class='spip_code' dir='ltr'&gt;maman.dev&lt;/code&gt; etc. Pourquoi &lt;code class='spip_code' dir='ltr'&gt;.dev&lt;/code&gt; ? Parce que cette extension n'existe pas, donc je suis certain que lorsque j'utilise &lt;code class='spip_code' dir='ltr'&gt;.dev&lt;/code&gt; je suis en version locale.&lt;/p&gt; &lt;p&gt;Je vais dire &#224; mon ordinateur, via la modification d'un fichier cach&#233;, d'orienter mes adresses en &lt;code class='spip_code' dir='ltr'&gt;.dev&lt;/code&gt; vers l'&lt;a href=&quot;http://fr.wikipedia.org/wiki/IP&quot; class='spip_glossaire' rel='external'&gt;IP&lt;/a&gt; &lt;code class='spip_code' dir='ltr'&gt;127.0.0.1&lt;/code&gt;, autrement dit vers mon propre ordinateur.&lt;/p&gt; &lt;p&gt;Cons&#233;quent : lorsque dans mon navigateur je frapperais &lt;code class='spip_code' dir='ltr'&gt;http://maieul.dev&lt;/code&gt;, celui-ci me redirigera vers 127.0.0.1. La mon serveur local, MAMP, me renverra vers mon SPIP, que j'aurais organis&#233; selon le principe de la mutualisation facile, c'est &#224; dire &#224; que j'aurais r&#233;gl&#233; pour avoir un seul noyau SPIP pour plusieurs sites (par exemple &lt;code class='spip_code' dir='ltr'&gt;maman.dev&lt;/code&gt;, &lt;code class='spip_code' dir='ltr'&gt;papa.dev&lt;/code&gt; etc.)&lt;/p&gt; &lt;p&gt;Par ailleurs, un site fera exception &lt;code class='spip_code' dir='ltr'&gt;localhost&lt;/code&gt; : ce site sert de brouillon pour toutes les exp&#233;riences.&lt;/p&gt; &lt;p&gt;De plus, je souhaite pouvoir disposer de diff&#233;rentes branches de SPIP : je souhaite pouvoir orienter vers la branche 2.0.z ou vers la branche 2.1.z ou vers la branche 3.0.z selon le cas. En revanche, je souhaite pouvoir facilement mettre &#224; jour une branche.&lt;/p&gt; &lt;p&gt;Je vais donc cr&#233;er un dossier par branches, avec dans chaque dossier une mutualisation. Je configurerais mon serveur Apache local (install&#233; via MAMP) pour qu'il me renvoi sur l'un ou l'autre des dossiers selon l'URL du site.&lt;/p&gt; &lt;p&gt;Bon, tout ceci c'&#233;tait la th&#233;orie, passons &#224; la pratique.&lt;/p&gt; &lt;p&gt;Cette pratique n&#233;cessite d'utiliser les Terminal, pour frapper quelques commandes.&lt;/p&gt;
&lt;h3 class=&quot;h3 spip&quot;&gt;Pr&#233;parer les versions de SPIP&lt;/h3&gt;
&lt;p&gt;Dans le terminal, rendons-nous dans le dossier &lt;code class='spip_code' dir='ltr'&gt;sites&lt;/code&gt; du r&#233;pertoire de d&#233;part :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_bash code&quot;&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;cd&lt;/span&gt; ~&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;sites&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Puis r&#233;cup&#233;rons les dernieres versions stables des diff&#233;rentes branches de SPIP. &lt;a href=&quot;http://core.spip.org/projects/spip/repository/show/tags&quot; class='spip_out' rel='external'&gt;Ces versions sont situ&#233;es dans le dossier tags du serveur SVN de SPIP&lt;/a&gt;.&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_bash code&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;svn&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;co&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;svn&lt;/span&gt;:&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;//&lt;/span&gt;trac.rezo.net&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;spip&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;tags&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;spip-2.0.9 SPIP &lt;span style=&quot;color: #000000;&quot;&gt;20&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;svn&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;co&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;svn&lt;/span&gt;:&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;//&lt;/span&gt;trac.rezo.net&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;spip&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;tags&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;spip-2.1.12 SPIP21&lt;/div&gt;&lt;div class='code_download' style='text-align: right;'&gt; &lt;a href='http://geekographie.maieul.net/local/cache-code/ea69ea22306fb83d150cf1bc8726fc0d.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Et soyons fous, prenons m&#234;me la derni&#232;re version de dev de SPIP, instable (pour le moment c'est SPIP 3)&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_bash code&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;svn&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;co&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;svn&lt;/span&gt;:&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;//&lt;/span&gt;trac.rezo.net&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;spip&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;spip SPIPdev&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Je me retrouve donc dans mon dossier &lt;code class='spip_code' dir='ltr'&gt;sites&lt;/code&gt; avec trois dossiers : &lt;code class='spip_code' dir='ltr'&gt;SPIP20&lt;/code&gt; &lt;code class='spip_code' dir='ltr'&gt;SPIP21&lt;/code&gt; et &lt;code class='spip_code' dir='ltr'&gt;SPIPdev&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;Par d&#233;faut mes sites pointeront vers &lt;code class='spip_code' dir='ltr'&gt;SPIP21&lt;/code&gt;. Les autres sites seront des exceptions.&lt;/p&gt;
&lt;h3 class=&quot;h3 spip&quot;&gt;Pr&#233;parer la mutualisation&lt;/h3&gt;
&lt;p&gt;Maintenant rendons-nous dans le dossier &lt;code class='spip_code' dir='ltr'&gt;SPIP21&lt;/code&gt; pour pr&#233;parer le chemin &#224; la mutualisation des sites SPIP.&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_bash code&quot;&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;cd&lt;/span&gt; ~&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;SPIP21&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;D'abord il faut r&#233;cup&#233;rer le plugin mutualisation facile :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_bash code&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;svn&lt;/span&gt;:&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;//&lt;/span&gt;zone.spip.org&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;spip-zone&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;_plugins_&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;mutualisation&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Ensuite il me faut copier le fichier &lt;code class='spip_code' dir='ltr'&gt;mes_options.php&lt;/code&gt; dans le dossier &lt;code class='spip_code' dir='ltr'&gt;config&lt;/code&gt;.&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_bash code&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;cp&lt;/span&gt; mutualisation mes_options.php.txt mes_options.php&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Puis ouvrir le fichier &lt;code class='spip_code' dir='ltr'&gt;config/mes_options.php&lt;/code&gt; avec le logiciel de mon choix.&lt;/p&gt; &lt;p&gt;Il va falloir r&#233;gler pour indiquer les r&#233;glages MySQL de Mamp.&lt;/p&gt; &lt;p&gt;Voici le contenu de ce fichier&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php cadre spip_cadre&quot;&gt;&lt;div class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;?php&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;/*&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * Inscrire ici le nom du site d'administration du tableau de bord&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * de la mutualisation (ou plusieurs, separes par des virgules)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * (dans cet exemple, 'scriibe.net' est le top level domain, TLD)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * pour autoriser tous les sites, ne pas definir la constante ;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * Si le site maitre n'est pas dans sites/ mais a la racine, mettre ''&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * et ajouter 'mutualisation' dans $dossier_squelettes&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; */&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;a href=&quot;http://www.php.net/define&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;define&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'_SITES_ADMIN_MUTUALISATION'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'scriibe.net'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;!&lt;/span&gt;&lt;a href=&quot;http://www.php.net/defined&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;defined&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&quot;_ECRIRE_INC_VERSION&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;!&lt;/span&gt;&lt;a href=&quot;http://www.php.net/is_readable&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;is_readable&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;_DIR_RACINE&lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'mutualisation/mutualiser.php'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;echo&lt;/span&gt; _L&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&quot;Fichier 'mutualisation/mutualiser.php' manquant dans la racine &quot;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt; _DIR_RACINE&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;a href=&quot;http://www.php.net/exit&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;exit&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;require&lt;/span&gt; _DIR_RACINE&lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'mutualisation/mutualiser.php'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;/* placer dans ce tableau les sites ou l'on ne veut pas la redirection canonique */&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$www&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$site&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/str_replace&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;str_replace&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'www.'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;''&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$_SERVER&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'HTTP_HOST'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$site&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;!=&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$_SERVER&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'HTTP_HOST'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt; AND &lt;span style=&quot;color: #339933;&quot;&gt;!&lt;/span&gt;&lt;a href=&quot;http://www.php.net/in_array&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;in_array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$site&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$www&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; include_spip&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'inc/headers'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$req&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/isset&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;isset&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$_SERVER&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'REQUEST_URI'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; ? &lt;span style=&quot;color: #000088;&quot;&gt;$_SERVER&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'REQUEST_URI'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'/'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/isset&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;isset&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$_SERVER&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'HTTPS'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; AND test_valeur_serveur&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$_SERVER&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'HTTPS'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$protocole&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'https'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;elseif&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;!&lt;/span&gt;&lt;a href=&quot;http://www.php.net/isset&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;isset&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$_SERVER&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&quot;SCRIPT_URI&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; OR &lt;span style=&quot;color: #339933;&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$p&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/strpos&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;strpos&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$_SERVER&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&quot;SCRIPT_URI&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'://'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$protocole&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'http'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$protocole&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/substr&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;substr&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$_SERVER&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&quot;SCRIPT_URI&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$p&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; redirige_par_entete&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$protocole&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'://'&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$site&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$req&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// Compatibilite avec le &quot;:&quot; de $dossier_squelettes&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// Si l'url indique explicitement un port (grace a &quot;:&quot;)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// tout eliminer s'il s'agit du port 80&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// et remplacer &quot;:&quot; par _ pour les autres ports&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/strpos&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;strpos&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$site&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;':'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/preg_match&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;preg_match&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'/:80$/'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$site&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$site&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/substr&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;substr&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$site&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,-&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$site&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/str_replace&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;str_replace&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;':'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'_'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$site&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;a href=&quot;http://www.php.net/define&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;define&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'_INSTALL_SITE_PREF'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; prefixe_mutualisation&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$site&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;a href=&quot;http://www.php.net/define&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;define&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'_INSTALL_NAME_DB'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'mu_'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt; _INSTALL_SITE_PREF&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;a href=&quot;http://www.php.net/define&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;define&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'_INSTALL_SERVER_DB'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'mysql'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;a href=&quot;http://www.php.net/define&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;define&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'_INSTALL_HOST_DB'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'localhost'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;a href=&quot;http://www.php.net/define&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;define&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'_INSTALL_USER_DB'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'loginsql'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;a href=&quot;http://www.php.net/define&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;define&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'_INSTALL_PASS_DB'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'123456HDJ'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;/* mettre en commentaire la ligne suivante si vous utilisez l'option table_prefixe plus bas dans la config */&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;a href=&quot;http://www.php.net/define&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;define&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'_INSTALL_TABLE_PREFIX'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'spip'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;/* &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * Si le nom du serveur est different du nom dns, &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * ca peut parfois poser probleme&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * il faut alors le definir ici&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; */&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# define ('_INSTALL_HOST_DB_LOCALNAME', 'nom_serveur');&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;/* &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * Si le serveur n'est pas mysql, il faut le preciser obligatoirement.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * # define ('_INSTALL_SERVER_DB', 'pg'); // mysql|pg|sqlite2|sqlite3&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * /!\ En PG, il est conseille d'utiliser la creation d'utilisateur SQL&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; */&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;/*&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * Creer automatiquement les users SQL (pg|mysql)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * Cela permet &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * - d'avoir un utilisateur root possedant les droits &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * de creation de bases (cet utilisateur possedant obligatoirement &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * une base a son nom en PG - PG ne se connecte pas sans donner un nom de bdd)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * - de creer des utilisateurs sql automatiquement &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * ne possedant que les droits d'administation &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * de leur base de donnee qui sera creee&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * Il faut remplacer alors &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * _INSTALL_(USER|PASS)_DB par _INSTALL_(USER|PASS)_DB_ROOT&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * et ajouter dans demarrer_site l'option&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * 'creer_user_base' =&gt; true&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; */&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# define ('_INSTALL_USER_DB_ROOT', 'mon_root');&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# define ('_INSTALL_PASS_DB_ROOT', '********');&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;/*&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * Creer les bases de donnees via un ping sur une URL (methode AlternC)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; *&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * Il suffit de renseigner l'option url_creer_base, en lui passant les bons parametres :&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * 'url_creer_base' =&gt; 'https://bureau.tld/admin/sql_doadd.php?username=USER&amp;password=PASS&amp;dbn='.prefixe_mutualisation($site)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; */&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;/*&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * Transformer sur les pages publiques les url des images&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * /sites/mon_site/IMG/* -&gt; /IMG/*&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * /sites/mon_site/local/* -&gt; /local/*&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * - Necessite le mod_rewrite (reecriture d'url) d'apache&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * - Ne fonctionne qu'avec des mutualisations de nom de domaine &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * ('http_host' : http://mon_site_mutu.tld)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * (donc pas avec une mutualisation de repertoire - http://site/mon_spip_mutu/)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * et ajouter dans demarrer_site l'option&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * 'url_img_courtes' =&gt; true&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * Il est possible de regenerer les fichiers .htaccess &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * crees automatiquement dans /IMG et /local&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * grace a ?var_mode=creer_htaccess_img&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; */&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; demarrer_site&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$site&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'creer_site'&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&gt;&lt;/span&gt; &lt;span style=&quot;color: #009900; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// Creer ou non le site s'il n'existe pas (defaut: false) &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'creer_base'&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&gt;&lt;/span&gt; &lt;span style=&quot;color: #009900; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// Creer ou non la base de donnee si elle n'existe pas (false) &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'creer_user_base'&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&gt;&lt;/span&gt; &lt;span style=&quot;color: #009900; font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// Creer ou non un utilisateur pour la nouvelle base de donnee (false)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'mail'&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&gt;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;''&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// Adresse mail pour recevoir un mail lors d'une creation de site mutualise ('') &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'code'&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&gt;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'ecureuil'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// Code d'activation ('ecureuil') &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'table_prefix'&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&gt;&lt;/span&gt; &lt;span style=&quot;color: #009900; font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// Definir automatiquement le prefixe de table (false) ... mettre true si tous les sites dans la meme base &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'cookie_prefix'&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&gt;&lt;/span&gt; &lt;span style=&quot;color: #009900; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// Definir automatiquement le prefixe de cookie (false)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'repertoire'&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&gt;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'sites'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// Nom du repertoire contenant les sites mutualises ('sites')&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'url_img_courtes'&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&gt;&lt;/span&gt; &lt;span style=&quot;color: #009900; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// Utiliser la redirection des URL d'images courtes dans la partie publique (false)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// /!\ il faut qu'apache ait le droit d'ecrire dans les dossiers IMG/ et local/ a la racine du site !&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// C'est la que la mutualisation va ecrire les regles de redirection automatiques pour les images de chaque site&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# 'utiliser_panel' =&gt; false, // Utiliser une table externe pour recuperer des identifiants ... (code, user, pass) permettant a un utilisateur d'installer le site (false) &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# 'annonce' =&gt; '&lt;p&gt;Un service propos&amp;eacute; par &lt;a href=&quot;http://www.spip.net/&quot;&gt;la communaut&amp;eacute; SPIP&lt;/a&gt;&lt;/p&gt;', // Texte a afficher en bas du formulaire d'activation de la mutualisation&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'url_creer_base'&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&gt;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;''&lt;/span&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// Creer la base de donnees via une URL (methode AlternC)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;/*&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * Notes concernant SQLite&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * 1) creer_base = false&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * Avec SQLite, il est inutile de mettre creer_base a true.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * Si creer_base est true, une base sera cree (par l'outil de mutualisation)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * dans le repertoire defini par la constante _DIR_DB.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * Si cette constante n'est pas renseignee, elle vaudra&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * _DIR_ETC/bases/ soit : config/bases/, ce qui ne correspond pas&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * a l'emplacement du futur site : sites/X/config/bases.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * En laissant l'option a false, SPIP creera la base de donnee&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * au moment de l'installation (exec=install) et a ce moment&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * la, _DIR_ETC vaudra 'sites/X/config' donc la base sera stockee&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * ou il faut si _DIR_DB n'est pas defini.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * 2) creer_user_base = false&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * SQLite ne gerant pas de droits d'utilisateurs,&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * (les droits sont ceux du fichier .sqlite)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * mettre true provoquera des erreurs (je suppose)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * 3) constantes a definir :&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * define ('_INSTALL_SERVER_DB', 'sqlite3'); // sqlite2 ou sqlite3&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * define ('_INSTALL_NAME_DB', 'mu_'.prefixe_mutualisation($site));&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * les constantes _INSTALL_(HOST|PASS|USER)_DB sont inutiles.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; */&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;/*&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * Notes concernant MySQL&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * - Pour la creation d'utilisateurs MYSQL&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * (creer_base+creer_user_base)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * il est possible de definir les droits de ces utilisateurs avec la constante &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * _PRIVILEGES_MYSQL_USER_BASE (ici avec les valeurs utilisees par defaut) :&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; * define('_PRIVILEGES_MYSQL_USER_BASE','Alter, Select, Insert, Update, Delete, Create, Drop');&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; *&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt; */&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;?&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://geekographie.maieul.net/local/cache-code/27a312a8b0660dc0e953687fde263d38.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Les lignes &#224; changer sont les lignes en mettant 44 et 45 :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php code&quot;&gt; &lt;a href=&quot;http://www.php.net/define&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;define&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'_INSTALL_USER_DB'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'root'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;br /&gt; &lt;a href=&quot;http://www.php.net/define&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;define&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'_INSTALL_PASS_DB'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;'root'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;div class='code_download' style='text-align: right;'&gt; &lt;a href='http://geekographie.maieul.net/local/cache-code/ee56e669a922e7acb320534d6b6efc61.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Il nous reste ensuite &#224; cr&#233;er un r&#233;pertoire &lt;code class='spip_code' dir='ltr'&gt;sites&lt;/code&gt; :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 code&quot;&gt;mkdir sites&lt;/div&gt;&lt;/div&gt;&lt;h3 class=&quot;h3 spip&quot;&gt;Affinage&lt;/h3&gt;
&lt;p&gt;Comme je suis sur un site local, donc de dev, je ne veux pas de cache. Je met donc dans le fichier &lt;code class='spip_code' dir='ltr'&gt;mes_options.php&lt;/code&gt; la ligne suivante :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php code&quot;&gt;&lt;a href=&quot;http://www.php.net/define&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;define&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'_NO_CACHE'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,-&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Dans le dossier &lt;code class='spip_code' dir='ltr'&gt;extensions&lt;/code&gt;, je peux mettre tout les plugins que je souhaite actifs automatiquement pour l'ensemble des sites. Dans le dossier &lt;code class='spip_code' dir='ltr'&gt;plugins&lt;/code&gt;, je met les plugins qui ne sont pas automatiquement actif.&lt;/p&gt;
&lt;h3 class=&quot;h3 spip&quot;&gt;R&#233;p&#233;tition pour les autres versions de SPIP&lt;/h3&gt;
&lt;p&gt;Il me faut installer la mutualisation dans chaque dossier correspondant &#224; chaque version de SPIP.&lt;/p&gt;
&lt;h3 class=&quot;h3 spip&quot;&gt;Installation et Configuration de Mamp&lt;/h3&gt;
&lt;p&gt;Tout d'abord, v&#233;rifier dans les Pr&#233;f&#233;rences Syst&#232;me que le partage web n'est pas activ&#233;.
Puis &lt;a href=&quot;http://www.mamp.info/en/index.html&quot; class='spip_out' rel='external'&gt;t&#233;l&#233;charger MAMP&lt;/a&gt; et l'installer.&lt;/p&gt; &lt;p&gt;Ouvrir MAMP dans le dossier &lt;code class='spip_code' dir='ltr'&gt;MAMP&lt;/code&gt; du dossier &lt;code class='spip_code' dir='ltr'&gt;Application&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;Dans les r&#233;glages, aller dans &lt;code class='spip_code' dir='ltr'&gt;ports&lt;/code&gt;, et mettre le port Apache sur 80.&lt;/p&gt; &lt;p&gt;Ensuite comme je ne d&#233;sire pas renvoyer mes sites syst&#233;matiquement vers le m&#234;me dossier, il va falloir faire une intervention &lt;code class='spip_code' dir='ltr'&gt;&#224; la main&lt;/code&gt; dans les fichiers de MAMP.&lt;/p&gt; &lt;p&gt;Ouvrir le dossier &lt;code class='spip_code' dir='ltr'&gt;/Applications/MAMP/conf/Apache&lt;/code&gt; et faire une copie de s&#233;curit&#233; du fichier &lt;code class='spip_code' dir='ltr'&gt;httpd.conf&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;Puis l'ouvrir avec un &#233;diteur de texte.&lt;/p&gt; &lt;p&gt;Chercher les lignes o&#249; il est &#233;crit :&lt;/p&gt;
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;# MAMP DOCUMENT_ROOT !! Don't remove this line !!&lt;br /&gt;
DocumentRoot &quot;/Applications/MAMP/htdocs&quot;&lt;/code&gt;&lt;/div&gt;
&lt;p&gt;Et faire exactement ce qu'il est dit de ne pas faire, en remplacant &lt;code class='spip_code' dir='ltr'&gt;DocumentRoot &quot;/Applications/MAMP/htdocs&quot;&lt;/code&gt; par &lt;code class='spip_code' dir='ltr'&gt;Include /Applications/MAMP/conf/Apache/vhost.conf&lt;/code&gt;&lt;/p&gt; &lt;p&gt;Par cela, je signale que je veux que la gestion des dossiers se fasse dans un fichier &lt;code class='spip_code' dir='ltr'&gt;vhost.conf&lt;/code&gt; du dossier &lt;code class='spip_code' dir='ltr'&gt;/Applications/MAMP/conf/Apache/&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;Je cr&#233;e ce fichier. Voici ce que j'y met :&lt;/p&gt;
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;VirtualHost *&gt;&lt;br /&gt;
DocumentRoot &quot;/Users/maieul/Sites/SPIP21&quot;&lt;br /&gt;
&lt;/VirtualHost&gt; &lt;/code&gt;&lt;/div&gt;
&lt;p&gt;&#201;videmment, il faut remplacer &lt;code class='spip_code' dir='ltr'&gt;maieul&lt;/code&gt; par le nom de votre dossier de d&#233;part.&lt;/p&gt; &lt;p&gt;Cela indique que par d&#233;faut, mes sites locaux correspondent au dossier &lt;code class='spip_code' dir='ltr'&gt;/Users/maieul/Sites/SPIP21&lt;/code&gt; de mon ordinateur. Donc mes sites sont cr&#233;&#233;s par d&#233;faut avec SPIP 2.1&lt;/p&gt; &lt;p&gt;En revanche, si je souhaite que le site &lt;code class='spip_code' dir='ltr'&gt;toto.dev&lt;/code&gt; soit en SPIP 2.0, je met en dessous de ces lignes :&lt;/p&gt;
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;&lt;VirtualHost *&gt;&lt;br /&gt;
DocumentRoot &quot;/Users/maieul/Sites/SPIP20&quot;&lt;br /&gt;
ServerName toto.dev&lt;br /&gt;
&lt;/VirtualHost&gt;&lt;/code&gt;&lt;/div&gt;
&lt;p&gt;Et ainsi de suite pour chaque site ne fonctionnant pas avec SPIP 2.1.&lt;/p&gt;
&lt;h3 class=&quot;h3 spip&quot;&gt;Rediriger le site bidule.dev vers 127.0.0.1&lt;/h3&gt;
&lt;p&gt;Bon, maintenant je peux lancer mon site &lt;code class='spip_code' dir='ltr'&gt;bidule.dev&lt;/code&gt;
Pour ce faire, je vais modifier le fichier &lt;code class='spip_code' dir='ltr'&gt;/etc/hosts&lt;/code&gt;, qui indique les redirections des adresses web, propres &#224; &lt;strong&gt;mon&lt;/strong&gt; ordinateur.
Pour ce faire, dans le terminal je frappe :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_bash code&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;sudo&lt;/span&gt; pico &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;etc&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;hosts&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Apr&#232;s la saisie de mon mot de passe administrateur, avec le clavier je me rend sur juste avant la ligne &lt;code class='spip_code' dir='ltr'&gt;255.255.255.255 broadcasthost&lt;/code&gt;, et j'ins&#233;re la ligne suivante :&lt;/p&gt;
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;127.0.0.1 toto.dev&lt;/code&gt;&lt;/div&gt;
&lt;p&gt;J'enregistre en frappant &lt;code class='spip_code' dir='ltr'&gt;ctrl + X&lt;/code&gt;
&#192; chaque fois que je voudrais cr&#233;er un nouveau site local, je ferais de m&#234;me.&lt;/p&gt;
&lt;h3 class=&quot;h3 spip&quot;&gt;Lancement du site&lt;/h3&gt;
&lt;p&gt;Aller, on y va ! Dans la barre d'adresse du navigateur, j'&#233;cris &lt;code class='spip_code' dir='ltr'&gt;http://toto.dev&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;Je me retrouve alors sur la page me demandant le mot de passe de la mutualisation.&lt;/p&gt; &lt;p&gt;Comme je ne l'ai pas modifi&#233;, c'est facile : &lt;code class='spip_code' dir='ltr'&gt;ecureuil&lt;/code&gt;. Je le rentre donc, et je clique sur ok.&lt;/p&gt; &lt;p&gt;Je passe ensuite les &#233;tapes suivantes, qui sont automatiques.&lt;/p&gt; &lt;p&gt;&lt;span class='spip_document_31 spip_documents spip_documents_center'&gt;
&lt;img src='http://geekographie.maieul.net/local/cache-vignettes/L500xH291/mutu0-bb861.png' width='500' height='291' alt=&quot;&quot; /&gt;&lt;/span&gt;
&lt;span class='spip_document_32 spip_documents spip_documents_center'&gt;
&lt;img src='http://geekographie.maieul.net/local/cache-vignettes/L500xH260/mutu1-3af01.png' width='500' height='260' alt=&quot;&quot; /&gt;&lt;/span&gt;
&lt;span class='spip_document_33 spip_documents spip_documents_center'&gt;
&lt;img src='http://geekographie.maieul.net/local/cache-vignettes/L500xH259/mutu2-d6333.png' width='500' height='259' alt=&quot;&quot; /&gt;&lt;/span&gt;
&lt;span class='spip_document_34 spip_documents spip_documents_center'&gt;
&lt;img src='http://geekographie.maieul.net/local/cache-vignettes/L500xH259/mutu3-28226.png' width='500' height='259' alt=&quot;&quot; /&gt;&lt;/span&gt;
&lt;span class='spip_document_35 spip_documents spip_documents_center'&gt;
&lt;img src='http://geekographie.maieul.net/local/cache-vignettes/L500xH355/mutu4-7132d.png' width='500' height='355' alt=&quot;&quot; /&gt;&lt;/span&gt;
&lt;span class='spip_document_36 spip_documents spip_documents_center'&gt;
&lt;img src='http://geekographie.maieul.net/local/cache-vignettes/L500xH310/mutu5-1b8a7.png' width='500' height='310' alt=&quot;&quot; /&gt;&lt;/span&gt;
&lt;span class='spip_document_37 spip_documents spip_documents_center'&gt;
&lt;img src='http://geekographie.maieul.net/local/cache-vignettes/L500xH296/mutu6-a6f40.png' width='500' height='296' alt=&quot;&quot; /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Vient ensuite l'habituel formulaire de cr&#233;ation des comptes sur SPIP, que je remplis comme d'habitude :&lt;/p&gt; &lt;p&gt;&lt;span class='spip_document_38 spip_documents spip_documents_center'&gt;
&lt;img src='http://geekographie.maieul.net/local/cache-vignettes/L392xH586/mutu7-5dfcd.png' width='392' height='586' alt=&quot;&quot; /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Et voil&#224; mon site lanc&#233;.&lt;/p&gt; &lt;p&gt;&lt;span class='spip_document_39 spip_documents spip_documents_center'&gt;
&lt;img src='http://geekographie.maieul.net/local/cache-vignettes/L482xH503/mutu8-5feb1.png' width='482' height='503' alt=&quot;&quot; /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h3 class=&quot;h3 spip&quot;&gt;Particularit&#233; de la mutualisation&lt;/h3&gt;
&lt;p&gt;Chaque sites poss&#232;dent un dossier propre dans le dossier &lt;code class='spip_code' dir='ltr'&gt;sites&lt;/code&gt;. Dans chaque dossier de sites se trouvent les habituelles dossiers &lt;code class='spip_code' dir='ltr'&gt;config&lt;/code&gt; ; &lt;code class='spip_code' dir='ltr'&gt;IMG&lt;/code&gt; ; &lt;code class='spip_code' dir='ltr'&gt;local&lt;/code&gt; ;&lt;code class='spip_code' dir='ltr'&gt;tmp&lt;/code&gt; et &#233;ventuellement &lt;code class='spip_code' dir='ltr'&gt;squelettes&lt;/code&gt;.&lt;/p&gt;
&lt;h3 class=&quot;h3 spip&quot;&gt;Mise &#224; jour mineure de SPIP&lt;/h3&gt;
&lt;p&gt;Imaginons que la version 2.1.13 de SPIP sorte.&lt;/p&gt; &lt;p&gt;Pour faire ma mise &#224; jour en local, c'est simple.&lt;/p&gt; &lt;p&gt;1. D'abord se rendre dans le dossier avec le terminal&lt;/p&gt;
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;cd ~/sites/SPIP21&lt;/code&gt;&lt;/div&gt;
&lt;p&gt;2. Ensuite mettre &#224; jour&lt;/p&gt;
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code&gt;svn switch svn://trac.rezo.net/spip/tags/spip-2.1.12 &lt;/code&gt;&lt;/div&gt;&lt;/div&gt;
		&lt;hr /&gt;
		&lt;div class='rss_notes'&gt;&lt;div id='nb2-1'&gt;
&lt;p&gt;&lt;span class=&quot;spip_note_ref&quot;&gt;[&lt;a href='#nh2-1' class='spip_note' title='Notes 2-1' rev='footnote'&gt;1&lt;/a&gt;] &lt;/span&gt;Je sais, c'est un peu narcissique, mais que voulez-vous&#8230;&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;
		&lt;div class='rss_ps'&gt;&lt;p&gt;Comme d'habitude, j'attends les r&#233;actions des SPIPeurs.&lt;/p&gt; &lt;p&gt;Voici quelques liens utiles :
&lt;br /&gt;&lt;img src=&quot;http://geekographie.maieul.net/squelettes-dist/puce.gif&quot; width=&quot;8&quot; height=&quot;11&quot; class=&quot;puce&quot; alt=&quot;-&quot; /&gt; &lt;a href=&quot;http://www.cuk.ch/articles/4246&quot; class='spip_out' rel='external'&gt;initiation au terminal&lt;/a&gt;
&lt;br /&gt;&lt;img src=&quot;http://geekographie.maieul.net/squelettes-dist/puce.gif&quot; width=&quot;8&quot; height=&quot;11&quot; class=&quot;puce&quot; alt=&quot;-&quot; /&gt; &lt;a href=&quot;http://lelogiciellibre.net/tutoriaux/fichier-hosts.php&quot; class='spip_out' rel='external'&gt;le fichier &lt;code class='spip_code' dir='ltr'&gt;hosts&lt;/code&gt;&lt;/a&gt;
&lt;br /&gt;&lt;img src=&quot;http://geekographie.maieul.net/squelettes-dist/puce.gif&quot; width=&quot;8&quot; height=&quot;11&quot; class=&quot;puce&quot; alt=&quot;-&quot; /&gt; &lt;a href=&quot;http://www.spip-contrib.net/La-mutualisation-facile-modifications-manuelles&quot; class='spip_out' rel='external'&gt;la mutualisation facile avec SPIP&lt;/a&gt;
&lt;br /&gt;&lt;img src=&quot;http://geekographie.maieul.net/squelettes-dist/puce.gif&quot; width=&quot;8&quot; height=&quot;11&quot; class=&quot;puce&quot; alt=&quot;-&quot; /&gt; &lt;a href=&quot;https://httpd.apache.org/docs/2.1/fr/vhosts/examples.html&quot; class='spip_out' rel='external'&gt;les Virtualhost d'Apache&lt;/a&gt;
&lt;br /&gt;&lt;img src=&quot;http://geekographie.maieul.net/squelettes-dist/puce.gif&quot; width=&quot;8&quot; height=&quot;11&quot; class=&quot;puce&quot; alt=&quot;-&quot; /&gt; Deux articles d'Alexandra qui expliquent &lt;a href=&quot;http://www.spip-contrib.net/Deuxieme-partie-Comment-creer-un-environnement-de&quot; class='spip_out' rel='external'&gt;comment ouvrir sur l'exterieur son Mac&lt;/a&gt; et &lt;a href=&quot;http://www.spip-contrib.net/Troisieme-partie-Comment-creer-un-environnement-de&quot; class='spip_out' rel='external'&gt;comment envoyer des mails avec SPIP en local&lt;/a&gt; &lt;br /&gt;&lt;img src=&quot;http://geekographie.maieul.net/squelettes-dist/puce.gif&quot; width=&quot;8&quot; height=&quot;11&quot; class=&quot;puce&quot; alt=&quot;-&quot; /&gt; &lt;a href=&quot;http://www.blanche-de-peuterey.com/Mutualiser-Spip-en-local&quot; class='spip_out' rel='external'&gt;La m&#234;me probl&#233;matique, mais sous Windows&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;
		</content:encoded>


		

	</item>
<item xml:lang="fr">
		<title>Sept bonnes pratiques de d&#233;veloppement avec SPIP
</title>
		<link>http://geekographie.maieul.net/Sept-bonnes-pratiques-de</link>
		<guid isPermaLink="true">http://geekographie.maieul.net/Sept-bonnes-pratiques-de</guid>
		<dc:date>2012-01-05T00:39:57Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		



		<description>
&lt;p&gt;Je travaille en ce moment sur un squelette qui n'est pas de moi. Il semble que la personne qui l'a cr&#233;&#233; n'&#233;tait pas au courant des bonnes pratiques de d&#233;veloppement sous SPIP. Il est vrai que ces bonnes pratiques ne sont pas n&#233;cessairement accessibles aux premiers abords de la documentation webmaster de SPIP. Voici sept r&#232;gles que je juge indispensables 1. Ne pas mettre de PHP dans les squelettes Le but de SPIP &#233;tait de permettre de ne pas avoir &#224; conna&#238;tre le PHP pour concevoir un site. Tout un (...)&lt;/p&gt;


-
&lt;a href="http://geekographie.maieul.net/-Organisation-du-code-SPIP-" rel="directory"&gt;Organisation du code
&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_chapo'&gt;&lt;p&gt;Je travaille en ce moment sur un squelette qui n'est pas de moi. Il semble que la personne qui l'a cr&#233;&#233; n'&#233;tait pas au courant des bonnes pratiques de d&#233;veloppement sous SPIP. Il est vrai que ces bonnes pratiques ne sont pas n&#233;cessairement accessibles aux premiers abords de la documentation webmaster de SPIP.&lt;/p&gt; &lt;p&gt;Voici sept r&#232;gles que je juge indispensables&lt;/p&gt;&lt;/div&gt;
		&lt;div class='rss_texte'&gt;&lt;h3 class=&quot;h3 spip&quot;&gt;1. Ne pas mettre de PHP dans les squelettes&lt;/h3&gt;
&lt;p&gt;Le but de SPIP &#233;tait de permettre de ne pas avoir &#224; conna&#238;tre le PHP pour concevoir un site. Tout un syst&#232;me sp&#233;cifique a &#233;t&#233; pr&#233;vu, pour faire des requ&#234;tes SQL, mais aussi des tests. C'est parfois perturbant pour les utilisateurs venant du monde PHP.&lt;/p&gt; &lt;p&gt;Mais pour autant, c'est une &lt;a href=&quot;http://geekographie.maieul.net/Pourquoi-ne-pas-mettre-de-PHP-dans&quot; class='spip_in'&gt;tr&#232;s bonne pratique de ne jamais mettre de PHP dans un squelette&lt;/a&gt;. En r&#233;alit&#233;, c'est une mauvaise pratique d'en mettre.&lt;/p&gt;
&lt;h3 class=&quot;h3 spip&quot;&gt;2. Ne rien mettre dans le dossier IMG&lt;/h3&gt;
&lt;p&gt;Le dossier IMG ne doit contenir que les images et documents ajout&#233;s par l'utilisateur depuis l'interface priv&#233;. En aucun cas il ne doit contenir des images propres aux squelettes, qui doivent se trouver dans le m&#234;me dossier que les squelettes.&lt;/p&gt; &lt;p&gt;Choisir de mettre les images dans IMG (comme je l'ai vu dans ce squelette), c'est compliquer les r&#233;utilisations des squelettes, et m&#233;langer les couches utilisateurs et webmestres de SPIP.&lt;/p&gt;
&lt;h3 class=&quot;h3 spip&quot;&gt;3. Utiliser &lt;code class='spip_code' dir='ltr'&gt;#CHEMIN&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;La balise &lt;code class='spip_code' dir='ltr'&gt;#CHEMIN&lt;/code&gt; est une balise indispensable de SPIP. Elle permet d'indiquer l'adresse d'un fichier sans se pr&#233;occuper du nom du dossier parent. En effet, SPIP va cherche le fichier pass&#233; en argument dans l'ordre suivant&lt;span class=&quot;spip_note_ref&quot;&gt; [&lt;a href='#nb2-1' class='spip_note' rel='footnote' title='Liste tir&#233;e du site Programmer avec SPIP.' id='nh2-1'&gt;1&lt;/a&gt;]&lt;/span&gt; :&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;http://geekographie.maieul.net/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; /&gt; squelettes
&lt;br /&gt;&lt;img src=&quot;http://geekographie.maieul.net/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; /&gt; plugin B d&#233;pendant du plugin A
&lt;br /&gt;&lt;img src=&quot;http://geekographie.maieul.net/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; /&gt; plugin A
&lt;br /&gt;&lt;img src=&quot;http://geekographie.maieul.net/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; /&gt; squelettes-dist
&lt;br /&gt;&lt;img src=&quot;http://geekographie.maieul.net/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; /&gt; prive
&lt;br /&gt;&lt;img src=&quot;http://geekographie.maieul.net/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; /&gt; ecrire&lt;/p&gt; &lt;p&gt;Exemple : j'ai une image dans le dossier &lt;code class='spip_code' dir='ltr'&gt;squelettes&lt;/code&gt;, je ne fais pas :&lt;/p&gt;
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code class='html'&gt;&lt;img src='squelettes/toto.png' /&gt;&lt;/code&gt;&lt;/div&gt;
&lt;p&gt;mais bien&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 code&quot;&gt;&lt;img src='&lt;span style=&quot;color: #CA5200;&quot;&gt;#CHEMIN&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;toto.png&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;' /&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;mieux, je met mon image &lt;code class='spip_code' dir='ltr'&gt;toto.png&lt;/code&gt; dans le dossier &lt;code class='spip_code' dir='ltr'&gt;img&lt;/code&gt; du dossier &lt;code class='spip_code' dir='ltr'&gt;squelettes&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;Je peux alors faire :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 code&quot;&gt;&lt;img src='&lt;span style=&quot;color: #CA5200;&quot;&gt;#CHEMIN&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;img/toto.png&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;' /&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;L'avantage d'un tel syst&#232;me est &#233;vident : permettre d'avoir un dossier squelettes qui ne s'appelle pas squelettes, par exemple lorsqu'on utilise &lt;a href=&quot;#plugin&quot; class='spip_ancre'&gt;ma sixi&#232;me recommandation : les squelettes sous forme de plugins&lt;/a&gt;. Mais aussi permettre &#224; SPIP de g&#233;rer correctement les URLS arborescentes (le cas &#233;ch&#233;ant).&lt;/p&gt;
&lt;h3 class=&quot;h3 spip&quot;&gt;4. Utiliser &lt;code class='spip_code' dir='ltr'&gt;|balise_img&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Il est recommand&#233; lorsqu'on ins&#232;re une balise &lt;code class='spip_code' dir='ltr'&gt;&lt;img&gt;&lt;/code&gt; de lui mettre des attributs &lt;code class='spip_code' dir='ltr'&gt;height&lt;/code&gt; et &lt;code class='spip_code' dir='ltr'&gt;with&lt;/code&gt; pour am&#233;liorer les performances du navigateur lors de l'affichage de la page.&lt;/p&gt; &lt;p&gt;On peut bien s&#251;r indiquer cela manuellement :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 code&quot;&gt;&lt;img src='&lt;span style=&quot;color: #CA5200;&quot;&gt;#CHEMIN&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;toto.png&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;' width='largeur' height='hauteur' /&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Mais supposons que je r&#233;duise la taille de &lt;code class='spip_code' dir='ltr'&gt;toto.png&lt;/code&gt; : je dois dans ce cas modifier les attributs &lt;code class='spip_code' dir='ltr'&gt;height&lt;/code&gt; et &lt;code class='spip_code' dir='ltr'&gt;width&lt;/code&gt; &#224; chaque fois que je l'utilise.&lt;/p&gt; &lt;p&gt;Pour &#233;viter cela, SPIP pr&#233;voit le filtre &lt;code class='spip_code' dir='ltr'&gt;|balise_img&lt;/code&gt; qui, lorsqu'il est appliqu&#233; au chemin d'un fichier image, cr&#233;e automatiquement la balise &lt;code class='spip_code' dir='ltr'&gt;&lt;img&gt;&lt;/code&gt;, avec la hauteur et la largeur du fichier. Ainsi, pas besoin de corriger si on r&#233;duit la taille du fichier.&lt;/p&gt; &lt;p&gt;Le filtre s'utilise de mani&#232;re tr&#232;s simple :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 code&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#CHEMIN&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;toto.png&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|balise_img&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;On peut m&#234;me mettre en argument le contenu de l'attribut &lt;code class='spip_code' dir='ltr'&gt;alt&lt;/code&gt;&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 code&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#CHEMIN&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;toto.png&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|balise_img&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;0+0&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Voir en deuxi&#232;me argument la valeur de l'attribut &lt;code class='spip_code' dir='ltr'&gt;class&lt;/code&gt; :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 code&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#CHEMIN&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;toto.png&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|balise_img&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;0+0,blague_pour_enfants&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Ce code au final me produit :&lt;/p&gt;
&lt;div style='text-align: left;' class='spip_code' dir='ltr'&gt;&lt;code class='html'&gt;&lt;img src='squelettes/toto.png' width='largeur_du_fichier_toto.png' height='hauteur_du_fichier_toto.png' alt='0+0' class='blague_pour_enfants' /&gt;&lt;/code&gt;&lt;/div&gt;&lt;h3 class=&quot;h3 spip&quot;&gt;5. Utiliser les cha&#238;nes de langues&lt;/h3&gt;
&lt;p&gt;Bien que cela puisse para&#238;tre inutile et fastidieux pour un site monolingue, &lt;a href=&quot;http://programmer.spip.org/-Elements-linguistiques-&quot; class='spip_out' rel='external'&gt;utiliser les cha&#238;nes de langue&lt;/a&gt; est quand m&#234;me utile pour trois raisons :
&lt;br /&gt;&lt;img src=&quot;http://geekographie.maieul.net/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; /&gt; on ne sait jamais : si le site devient multilingue, c'est toujours cela de fait.
&lt;br /&gt;&lt;img src=&quot;http://geekographie.maieul.net/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; /&gt; il est plus facile d'uniformiser les textes.
&lt;br /&gt;&lt;img src=&quot;http://geekographie.maieul.net/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; /&gt; il est plus facile de corriger en cas de faute ou de changement d'avis.&lt;/p&gt;
&lt;h3 class=&quot;h3 spip&quot;&gt;6. Utiliser &lt;code class='spip_code' dir='ltr'&gt;&lt;INCLURE&gt;&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;C'est un principe de base de l'informatique : d&#232;s qu'une s&#233;quence d'instructions est utilis&#233;e plusieurs fois, il faut non pas la dupliquer, mais la mettre dans un morceau qu'on appelle plusieurs fois.&lt;/p&gt; &lt;p&gt;En SPIP ce morceau, c'est un &lt;a href=&quot;http://programmer.spip.org/Inclure-des-squelettes&quot; class='spip_out' rel='external'&gt;fichier inclus&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Typiquement supposons que j'affiche sur toutes les pages de mon site les sites amis.&lt;/p&gt; &lt;p&gt;Au lieux de copier-coller le code suivant dans les squelettes :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 code&quot;&gt;&lt;B&gt;&lt;br /&gt;
&lt;ul&gt;&lt;br /&gt;
&lt;BOUCLE_sites&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;SITES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;par titre&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&gt;&lt;br /&gt; &lt;li&gt;&lt;a href='&lt;span style=&quot;color: #CA5200;&quot;&gt;#URL_SITE&lt;/span&gt;'&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#NOM&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;
&lt;/BOUCLE&gt;&lt;br /&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;/B&gt;&lt;/div&gt;&lt;div class='code_download' style='text-align: right;'&gt; &lt;a href='http://geekographie.maieul.net/local/cache-code/161c6126143d041d3127992ab130890c.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Je le met dans un fichier &lt;code class='spip_code' dir='ltr'&gt;sites-amis.html&lt;/code&gt;, situ&#233; dans un dossier &lt;code class='spip_code' dir='ltr'&gt;inclure&lt;/code&gt; du dossier contenant les squelettes.&lt;/p&gt; &lt;p&gt;Et je met le code suivant l&#224; o&#249; je souhaite afficher les sites amis :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 code&quot;&gt;&lt;span style=&quot;color: #222&quot;&gt;&lt;INCLURE&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;fond=inclure/sites-amis&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Cela me permet si je dois modifier les crit&#232;res de cette liste de ne les modifier qu'&#224; un endroit&lt;span class=&quot;spip_note_ref&quot;&gt; [&lt;a href='#nb2-2' class='spip_note' rel='footnote' title='En outre, cela diminue les requ&#234;tes SQL et donc la charge du serveur SQL, (...)' id='nh2-2'&gt;2&lt;/a&gt;]&lt;/span&gt;.&lt;/p&gt; &lt;p&gt;La logique est donc : diviser son site en briques r&#233;utilisables. Chaque brique correspondant &#224; fichier et &#224; un morceau logique de page. Ensuite assembler ces briques dans des fichiers plus globaux&lt;span class=&quot;spip_note_ref&quot;&gt; [&lt;a href='#nb2-3' class='spip_note' rel='footnote' title='Pour comprendre comment passer des param&#232;tres lors de ces inclusions, pour (...)' id='nh2-3'&gt;3&lt;/a&gt;]&lt;/span&gt;.&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;http://www.spip-contrib.net/Modele-de-squelette-reutilisable&quot; class='spip_out' rel='external'&gt;Le mod&#232;le de squelettes Z pousse &#224; l'extr&#234;me cette logique des inclusions&lt;/a&gt;. Je conseille de le suivre : on gagne largement en maintenance ce qu'on perd en temps d'apprentissage initial.&lt;/p&gt; &lt;p&gt;Une r&#232;gle importante dans les inclusions : les balises html qui s'ouvrent dans un fichier doivent se fermer dans le m&#234;me fichier. Il est tr&#232;s mauvais d'ouvrir une balise dans un fichier puis de la fermer dans un autre : on y est perd en lisibilit&#233; du code, et donc en maintenance&lt;span class=&quot;spip_note_ref&quot;&gt; [&lt;a href='#nb2-4' class='spip_note' rel='footnote' title='J'ai cr&#251; &#224; un moment qu'une structure html &#233;tait incorrecte du fait qu'un (...)' id='nh2-4'&gt;4&lt;/a&gt;]&lt;/span&gt;.&lt;/p&gt; &lt;p&gt;&lt;a name=&quot;plugin&quot;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3 class=&quot;h3 spip&quot;&gt;7. Mettre ses squelettes sous formes de plugins&lt;/h3&gt;
&lt;p&gt;Cela peut para&#238;tre un luxe ou coquetterie, mais cela facilite &#233;norm&#233;ment le d&#233;ploiement d'un m&#234;me squelette sur plusieurs sites ou le d&#233;m&#233;nagement depuis la version locale vers la version en ligne :
&lt;br /&gt;&lt;img src=&quot;http://geekographie.maieul.net/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; /&gt; en indiquant les d&#233;pendances aux plugins.
&lt;br /&gt;&lt;img src=&quot;http://geekographie.maieul.net/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; /&gt; en incluant le fichier &lt;code class='spip_code' dir='ltr'&gt;mes_options.php&lt;/code&gt; dans le m&#234;me dossier.
&lt;br /&gt;&lt;img src=&quot;http://geekographie.maieul.net/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; /&gt; en permettant m&#234;me le cas &#233;ch&#233;ant d'ajouter automatiquement un contenu pr&#233;-d&#233;fini.&lt;/p&gt; &lt;p&gt;Un pr&#233;c&#233;dent article d&#233;taille &lt;a href=&quot;http://geekographie.maieul.net/Jeux-de-squelettes-sous-forme-de&quot; class='spip_in'&gt;comment fabriquer ces squelettes-plugins&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;
		&lt;hr /&gt;
		&lt;div class='rss_notes'&gt;&lt;div id='nb2-1'&gt;
&lt;p&gt;&lt;span class=&quot;spip_note_ref&quot;&gt;[&lt;a href='#nh2-1' class='spip_note' title='Notes 2-1' rev='footnote'&gt;1&lt;/a&gt;] &lt;/span&gt;&lt;a href=&quot;http://programmer.spip.org/La-notion-de-chemin&quot; class='spip_out' rel='external'&gt;Liste tir&#233;e du site Programmer avec SPIP&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;&lt;div id='nb2-2'&gt;
&lt;p&gt;&lt;span class=&quot;spip_note_ref&quot;&gt;[&lt;a href='#nh2-2' class='spip_note' title='Notes 2-2' rev='footnote'&gt;2&lt;/a&gt;] &lt;/span&gt;En outre, cela diminue les requ&#234;tes SQL et donc la charge du serveur SQL, mais la contrepartie est de multiplier les fichiers de caches ainsi que les inclusions PHP.&lt;/p&gt;
&lt;/div&gt;&lt;div id='nb2-3'&gt;
&lt;p&gt;&lt;span class=&quot;spip_note_ref&quot;&gt;[&lt;a href='#nh2-3' class='spip_note' title='Notes 2-3' rev='footnote'&gt;3&lt;/a&gt;] &lt;/span&gt;Pour comprendre comment passer des param&#232;tres lors de ces inclusions, pour par exemple conna&#238;tre l'article courant, &lt;a href=&quot;http://www.spip-contrib.net/La-balise-ENV&quot; class='spip_out' rel='external'&gt;je renvoie &#224; mon article sur la balise #ENV&lt;/a&gt;. Cet article devrais &#234;tre mis &#224; jour pour parler des derni&#232;res nouveaut&#233;s. Mais l'essentiel est l&#224;.&lt;/p&gt;
&lt;/div&gt;&lt;div id='nb2-4'&gt;
&lt;p&gt;&lt;span class=&quot;spip_note_ref&quot;&gt;[&lt;a href='#nh2-4' class='spip_note' title='Notes 2-4' rev='footnote'&gt;4&lt;/a&gt;] &lt;/span&gt;J'ai cr&#251; &#224; un moment qu'une structure html &#233;tait incorrecte du fait qu'un fichier avait plus de &lt;code class='spip_code' dir='ltr'&gt;&lt;div&gt;&lt;/code&gt; ouvrantes que fermantes. En r&#233;alit&#233;, le dernier &lt;code class='spip_code' dir='ltr'&gt;&lt;/div&gt;&lt;/code&gt; manquant se trouvait ailleurs.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;
		&lt;div class='rss_ps'&gt;&lt;p&gt;Amis SPIPeurs, j'attends vos remarques et ajouts !&lt;/p&gt;&lt;/div&gt;
		</content:encoded>


		

	</item>
<item xml:lang="fr">
		<title>Archivage avec redirection
</title>
		<link>http://geekographie.maieul.net/Archivage-avec-redirection</link>
		<guid isPermaLink="true">http://geekographie.maieul.net/Archivage-avec-redirection</guid>
		<dc:date>2011-06-24T13:15:24Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		



		<description>
&lt;p&gt;Sur ce site, certains articles sont consid&#233;r&#233;s comme &#171; obsol&#232;tes &#187; parce que j'ai trouv&#233; une meilleure m&#233;thode pour obtenir le m&#234;me r&#233;sultat. Je souhaitais que google n'indexe plus ces articles, mais soit redirig&#233; vers leurs rempla&#231;ants respectifs. En m&#234;me temps, je souhaitais qu'une personne qui s'amuse &#224; fouiller dans les archives de ce site puisse le cas &#233;ch&#233;ant retrouver l'article. Voici la mani&#232;re dont j'ai proc&#233;d&#233;. Je remercie xdjuj pour m'avoir fourni l'id&#233;e de d&#233;part. Principe Pour arriver &#224; mes (...)&lt;/p&gt;


-
&lt;a href="http://geekographie.maieul.net/-Boucle-" rel="directory"&gt;Boucle
&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_chapo'&gt;&lt;p&gt;Sur ce site, certains articles sont consid&#233;r&#233;s comme &#171; obsol&#232;tes &#187; parce que j'ai trouv&#233; une meilleure m&#233;thode pour obtenir le m&#234;me r&#233;sultat.&lt;/p&gt; &lt;p&gt;Je souhaitais que google n'indexe plus ces articles, mais soit redirig&#233; vers leurs rempla&#231;ants respectifs. En m&#234;me temps, je souhaitais qu'une personne qui s'amuse &#224; fouiller dans les archives de ce site puisse le cas &#233;ch&#233;ant retrouver l'article.&lt;/p&gt; &lt;p&gt;Voici la mani&#232;re dont j'ai proc&#233;d&#233;. Je remercie xdjuj pour m'avoir fourni l'id&#233;e de d&#233;part.&lt;/p&gt;&lt;/div&gt;
		&lt;div class='rss_texte'&gt;&lt;h3 class=&quot;h3 spip&quot;&gt;Principe&lt;/h3&gt;
&lt;p&gt;Pour arriver &#224; mes fins, j'utilise le plugin &lt;a href=&quot;http://www.spip-contrib.net/Le-plugin-a2a-pour-lier-des-articless&quot; class='spip_out' rel='external'&gt;A2A&lt;/a&gt; qui me permet d'indiquer quel est l'article rempla&#231;ant d'un article obsol&#232;te.&lt;/p&gt; &lt;p&gt;En interne, les liens vers les articles archiv&#233;s portent la variable GET &lt;code class='spip_code' dir='ltr'&gt;archive=oui&lt;/code&gt;. Par exemple &lt;a href=&quot;http://geekographie.maieul.net/Un-index-des-sources-primaires-1?archive=oui&quot; class='spip_in'&gt;Un index des sources primaires (1)&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Si une personne arrive sur une page archiv&#233;e sans passer la variable &lt;code class='spip_code' dir='ltr'&gt;archive=oui&lt;/code&gt; alors elle est redirig&#233;e vers la nouvelle version, par une redirection HTTP 301 (redirection permanente).&lt;/p&gt; &lt;p&gt;En revanche si la variable est pass&#233;e, il reste sur cette page, mais celle-ci poss&#232;de une meta-donn&#233;e qui indique de ne pas l'indexer.&lt;/p&gt; &lt;p&gt;Ceci permet donc d'acc&#233;der aux archives du site via la navigation interne de ce site, tout en r&#233;orientant les liens externes, dont ceux des moteurs de recherches.&lt;/p&gt;
&lt;h3 class=&quot;h3 spip&quot;&gt;La m&#233;thode : la modification des liens&lt;/h3&gt;
&lt;p&gt;Il existe deux types de liens internes pointant &#233;ventuellement vers des archives : ceux g&#233;n&#233;r&#233;s avec &lt;code class='spip_code' dir='ltr'&gt;#URL_ARTICLE&lt;/code&gt; dans un squelette et ceux g&#233;n&#233;r&#233;s avec des raccourcis de la forme &lt;code class='spip_code' dir='ltr'&gt;[texte-&gt;xx]&lt;/code&gt; ou &lt;code class='spip_code' dir='ltr'&gt;[texte-&gt;artxx]&lt;/code&gt; ou &lt;code class='spip_code' dir='ltr'&gt;[texte-&gt;articlexx]&lt;/code&gt;, dans le texte d'un article.&lt;/p&gt; &lt;p&gt;Comment faire pour ajouter des arguments &#224; ces liens seulement si l'article de destination est un article &#171; obsol&#232;te &#187; ?&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Dans les squelettes&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Pour les liens dans les squelettes, c'est relativement simple :&lt;/p&gt; &lt;p&gt;&lt;code class='spip_code' dir='ltr'&gt;[(#URL_ARTICLE|parametre_url{archive,oui})]&lt;/code&gt; me rajoute ma variable. Sauf que cela le fait sur tous les articles.&lt;/p&gt; &lt;p&gt;Il va donc falloir conditionner. Pour ce faire je cr&#233;e un squelette &lt;code class='spip_code' dir='ltr'&gt;inclure/obsolete.html&lt;/code&gt;. Celui-ci renvoie &lt;code class='spip_code' dir='ltr'&gt;1&lt;/code&gt; si un article est li&#233; &#224; l'article pass&#233; en argument, donc si cet article est &#171; obsol&#232;te &#187;. Il ne renvoie rien dans le cas contraire.&lt;/p&gt; &lt;p&gt;Voici le code de ce squelette&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 code&quot;&gt;&lt;BOUCLE_articles&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ARTICLES_LIES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;id_article&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;par rang&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;0,1&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&gt;&lt;span style=&quot;&quot;&gt;1&lt;/span&gt;&lt;/BOUCLE_articles&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Je remplace dans mes squelettes toutes les r&#233;f&#233;rences &#224; &lt;code class='spip_code' dir='ltr'&gt;#URL_ARTICLE&lt;/code&gt; par :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 code&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#INCLURE&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;fond=inclure/obsolete&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;id_article&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|?&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#URL_ARTICLE&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|parametre_url&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;archive,oui&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;,&lt;span style=&quot;color: #CA5200;&quot;&gt;#URL_ARTICLE&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Ce qui en gros veut dire : on utilise le squelette &lt;code class='spip_code' dir='ltr'&gt;inclure/obsolete&lt;/code&gt; en lui donnant l'id_article courant comme valeur. Si ce squelette retourne quelque chose, alors on renvoie &lt;code class='spip_code' dir='ltr'&gt;#URL_ARTICLE|parametre_url{archive,oui}&lt;/code&gt;, sinon on renvoie simplement &lt;code class='spip_code' dir='ltr'&gt;#URL_ARTICLE&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;&#192; noter qu'ici je filtre un squelette appel&#233; via &lt;code class='spip_code' dir='ltr'&gt;#INCLURE&lt;/code&gt;, ce que je ne peux faire avec &lt;code class='spip_code' dir='ltr'&gt;&lt;INCLURE&gt;&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Pour les raccourcis typographiques&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;Il faut qu'avant que SPIP interpr&#232;te les raccourcis typographique, je modifie, si cela est pertinent, les formes &lt;code class='spip_code' dir='ltr'&gt;[texte-&gt;artxx]&lt;/code&gt; par &lt;code class='spip_code' dir='ltr'&gt;[texte-&gt;artxx?archive=oui]&lt;/code&gt;. SPIP s'occupera ensuite de la question des urls propres.&lt;/p&gt; &lt;p&gt;Pour faire cela, j'utilise la pipeline &lt;code class='spip_code' dir='ltr'&gt;pre_liens&lt;/code&gt;, que je d&#233;clare dans mon fichier &lt;code class='spip_code' dir='ltr'&gt;plugin.xml&lt;/code&gt;&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_xml code&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;pipeline&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;nom&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;pre_liens&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;/nom&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;inclure&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;geek_maieul.php&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;/inclure&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;/pipeline&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class='code_download' style='text-align: right;'&gt; &lt;a href='http://geekographie.maieul.net/local/cache-code/e1d3ace34022ae76b27c140a75a749ef.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Sur la pipeline pre_liens, je renvoie &#224; l'&lt;a href=&quot;http://programmer.spip.org/pre_liens&quot; class='spip_out' rel='external'&gt;article de Marcimat&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Je la d&#233;clare dans mon fichier &lt;code class='spip_code' dir='ltr'&gt;geek_maieul.php&lt;/code&gt;.&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php cadre spip_cadre&quot;&gt;&lt;div class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; geek_maieul_pre_liens&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$texte&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$match&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;!&lt;/span&gt;&lt;a href=&quot;http://www.php.net/preg_match&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;preg_match&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&quot;#-&gt;(?:art)?(?:article)?([0-9]+)\]#&quot;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$texte&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$match&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;//trouer les liens vers les articles, sans rien derri&#232;re&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$texte&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$obsolete&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; sql_getfetsel&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'id_article_lie'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'spip_articles_lies'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'id_article='&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$match&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// y a-t-il un article li&#233; ?&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$obsolete&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$texte&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/str_replace&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;str_replace&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$match&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;']'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$match&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'?archive=oui]'&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$texte&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;// on &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$texte&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://geekographie.maieul.net/local/cache-code/89af9b68810c55727f87603aa8617abf.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Commentaires :
&lt;br /&gt;&lt;img src=&quot;http://geekographie.maieul.net/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; /&gt; ligne 1 : nom de la fonction / pipeline.
&lt;br /&gt;&lt;img src=&quot;http://geekographie.maieul.net/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; /&gt; ligne 2 &#224; 5 : je teste si mon lien interne est bien un lien de type article. Si jamais ce n'est pas le cas, je ne modifie rien et renvoie le lien comme il &#233;tait avant. Sinon je stocke le num&#233;ro de l'article dans le tableau $match, dans l'entr&#233;e 1. Pour ce faire, j'utilise une expression r&#233;guli&#232;re.
&lt;br /&gt;&lt;img src=&quot;http://geekographie.maieul.net/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; /&gt; ligne 7 : je regarde si mon article a un article li&#233;. J'utilise pour cela la fonction de SPIP &lt;a href=&quot;http://programmer.spip.org/sql_getfetsel,582&quot; class='spip_out' rel='external'&gt;&lt;code class='spip_code' dir='ltr'&gt;sql_getfetsel()&lt;/code&gt;&lt;/a&gt;
&lt;br /&gt;&lt;img src=&quot;http://geekographie.maieul.net/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; /&gt; ligne 8 et 9 : si mon article a un article li&#233;, je modifie le lien, en ajoutant &lt;code class='spip_code' dir='ltr'&gt;?archive=oui&lt;/code&gt;.
&lt;br /&gt;&lt;img src=&quot;http://geekographie.maieul.net/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; /&gt; ligne 11 : je renvoie le tout.&lt;/p&gt;
&lt;h3 class=&quot;h3 spip&quot;&gt;Redirection&lt;/h3&gt;
&lt;p&gt;Dans mon fichier &lt;code class='spip_code' dir='ltr'&gt;article.html&lt;/code&gt;, je teste si mon article a un article li&#233;, et si c'est le cas, j'appelle filtre sur l'URL de l'article li&#233; :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 code&quot;&gt;&lt;BOUCLE_nouveau&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ARTICLES_LIES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;id_article&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;par rang&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;0,1&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&gt;&lt;br /&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#URL_ARTICLE&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#ID_ARTICLE_LIE&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|redirect301&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;
&lt;/BOUCLE_nouveau&gt;&lt;/div&gt;&lt;div class='code_download' style='text-align: right;'&gt; &lt;a href='http://geekographie.maieul.net/local/cache-code/09d0a93d74b40662192b886f8faf6d11.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Le filtre &lt;code class='spip_code' dir='ltr'&gt;|redirect301&lt;/code&gt; est &#233;crit par moi. C'est une fonction php relativement simple&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php code&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; redirect301&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$url&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;br /&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;_request&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'archive'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;'oui'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;br /&gt; &lt;a href=&quot;http://www.php.net/header&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;header&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&quot;Status: 301 Moved Permanently&quot;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #009900; font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;301&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;br /&gt; &lt;a href=&quot;http://www.php.net/header&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;header&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&quot;Location:&lt;span style=&quot;color: #006699; font-weight: bold;&quot;&gt;$url&lt;/span&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;br /&gt; &lt;a href=&quot;http://www.php.net/exit&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;exit&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;br /&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;div class='code_download' style='text-align: right;'&gt; &lt;a href='http://geekographie.maieul.net/local/cache-code/7e055a836daee76470870a97464f70f9.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Avant de faire une redirection, je v&#233;rifie que je n'ai pas la valeur &lt;code class='spip_code' dir='ltr'&gt;archive=oui&lt;/code&gt; pass&#233;e dans l'url&lt;span class=&quot;spip_note_ref&quot;&gt; [&lt;a href='#nb2-1' class='spip_note' rel='footnote' title='J'utilise la fonction SPIP .' id='nh2-1'&gt;1&lt;/a&gt;]&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Si c'est le cas, je proc&#232;de &#224; la redirection.&lt;/p&gt;
&lt;h3 class=&quot;h3 spip&quot;&gt;M&#233;ta donn&#233;e pour indiquer de ne pas indexer&lt;/h3&gt;
&lt;p&gt;Dans l'ent&#234;te de mon squelette d'article, je met&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 code&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#INCLURE&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;fond=inclure/obsolete&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;id_article&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|oui&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;meta name=&quot;robots&quot; content=&quot;noindex&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;.&lt;/p&gt; &lt;p&gt;Ce qui a pour cons&#233;quent de placer la balise &lt;code class='spip_code' dir='ltr'&gt;&lt;meta name=&quot;robots&quot; content=&quot;noindex&quot;&gt;&lt;/code&gt; si mon article est obsol&#232;te, afin que les moteurs de recherches ne l'indexent plus.&lt;/p&gt;&lt;/div&gt;
		&lt;hr /&gt;
		&lt;div class='rss_notes'&gt;&lt;div id='nb2-1'&gt;
&lt;p&gt;&lt;span class=&quot;spip_note_ref&quot;&gt;[&lt;a href='#nh2-1' class='spip_note' title='Notes 2-1' rev='footnote'&gt;1&lt;/a&gt;] &lt;/span&gt;J'utilise la fonction SPIP &lt;a href=&quot;http://programmer.spip.org/_request&quot; class='spip_out' rel='external'&gt;&lt;code class='spip_code' dir='ltr'&gt;_request()&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;
		&lt;div class='rss_ps'&gt;&lt;p&gt;Il est &#233;vident que si je fais pointer l'article A vers l'article B et l'article B vers l'article A je risque d'avoir des probl&#232;mes de renvois mutuels. Mais comme je suis le seul r&#233;dacteur sur ce site, le risque est minimum.&lt;/p&gt;&lt;/div&gt;
		</content:encoded>


		

	</item>
<item xml:lang="fr">
		<title>Vous pouvez utiliser (C)Keditor
</title>
		<link>http://geekographie.maieul.net/Vous-pouvez-utiliser-C-Keditor</link>
		<guid isPermaLink="true">http://geekographie.maieul.net/Vous-pouvez-utiliser-C-Keditor</guid>
		<dc:date>2011-02-20T12:50:17Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		



		<description>
&lt;p&gt;Il y a quelque temps, j'avais post&#233; un message extr&#234;mement critique vis &#224; vis de de (F)CKeditor. Je r&#233;vise ici mon jugement, suite au dernier article publi&#233; sur Contrib. Je continue &#224; penser que (F)Ckeditor est une mauvaise id&#233;e parce qu'il incite &#224; penser forme et non sens. Je continuer &#224; penser que l'apprentissage des raccourcis typographiques de SPIP a plus de sens, m&#234;me si cela peut prendre un peu plus de temps (et encore). Pour autant, la derni&#232;re contribution enl&#232;ve une de mes critiques (...)&lt;/p&gt;


-
&lt;a href="http://geekographie.maieul.net/-plugin-" rel="directory"&gt;Plugin
&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_chapo'&gt;&lt;p&gt;Il y a quelque temps, j'avais post&#233; &lt;a href=&quot;http://geekographie.maieul.net/N-utilisez-pas-F-CKeditor&quot; class='spip_in'&gt;un message extr&#234;mement critique vis &#224; vis de de (F)CKeditor&lt;/a&gt;. Je r&#233;vise ici mon jugement, suite au &lt;a href=&quot;http://www.spip-contrib.net/Preserver-la-typo-SPIP-avec-CKeditor&quot; class='spip_out' rel='external'&gt;dernier article publi&#233; sur Contrib&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;
		&lt;div class='rss_texte'&gt;&lt;p&gt;Je continue &#224; penser que (F)Ckeditor est une mauvaise id&#233;e parce qu'il incite &#224; penser forme et non sens. Je continuer &#224; penser que l'apprentissage des raccourcis typographiques de SPIP a plus de sens, m&#234;me si cela peut prendre un peu plus de temps (et encore).&lt;/p&gt; &lt;p&gt;Pour autant, la derni&#232;re contribution enl&#232;ve une de mes critiques majeures, en fait ma critique majeure, &#224; savoir que (F)Ckeditor produit du HTML et non pas du code SPIP.&lt;/p&gt; &lt;p&gt;En effet, il est d&#233;sormais possible de dire &#224; (F)Ckeditor de &lt;a href=&quot;http://www.spip-contrib.net/Preserver-la-typo-SPIP-avec-CKeditor&quot; class='spip_out' rel='external'&gt;produire du SPIP et non pas du HTML&lt;/a&gt;.
Ce qui &#224; l'avantage :
&lt;br /&gt;&lt;img src=&quot;http://geekographie.maieul.net/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; /&gt; de permettre une conversion plus simple vers d'autres formats.
&lt;br /&gt;&lt;img src=&quot;http://geekographie.maieul.net/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; /&gt; de permettre de se passer de CKeditor le cas &#233;ch&#233;ant.
&lt;br /&gt;&lt;img src=&quot;http://geekographie.maieul.net/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; /&gt; de pouvoir utiliser les crayons.&lt;/p&gt;&lt;/div&gt;
		&lt;div class='rss_ps'&gt;&lt;p&gt;Je n'ai pas test&#233;, mais je fais confiance &#224; l'auteur de l'article. Reste &#224; savoir comment nettoyer une base qui a &#233;t&#233; salie par les anciennes versions du plugin.&lt;/p&gt;&lt;/div&gt;
		</content:encoded>


		

	</item>
<item xml:lang="fr">
		<title>Site internet : attention aux arnaques !
</title>
		<link>http://geekographie.maieul.net/Site-internet-attention-aux</link>
		<guid isPermaLink="true">http://geekographie.maieul.net/Site-internet-attention-aux</guid>
		<dc:date>2011-02-05T10:36:29Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		



		<description>
&lt;p&gt;Beaucoup de bo&#238;tes vendent des sites internet en utilisant des m&#233;thodes commerciales plus que douteuses. Cela s'appelle de l'arnaque. Extrait Service maximum proposition site internet &quot;gratuit&quot; envoy&#233; par adcapi. - L&#039;info video en direct. Voici quelques r&#232;gles de base pour ne pas se faire avoir : Se m&#233;fier des &#171; partenariats &#187; : un site internet prend du temps &#224; &#234;tre d&#233;velopp&#233;, ce n'est pas un partenariat, mais une vente. Regarder si la bo&#238;te vend un site qui utilise un produit connu (...)&lt;/p&gt;


-
&lt;a href="http://geekographie.maieul.net/-SPIP-" rel="directory"&gt;SPIP
&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_chapo'&gt;&lt;p&gt;Beaucoup de bo&#238;tes vendent des sites internet en utilisant des m&#233;thodes commerciales plus que douteuses. Cela s'appelle de l'arnaque. Extrait&lt;/p&gt;&lt;/div&gt;
		&lt;div class='rss_texte'&gt;&lt;object width=&quot;480&quot; height=&quot;360&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.dailymotion.com/swf/video/x82kvb?width=&amp;theme=none&amp;foreground=%23F7FFFD&amp;highlight=%23FFC300&amp;background=%23171D1B&amp;start=&amp;animatedTitle=&amp;iframe=0&amp;additionalInfos=0&amp;autoPlay=0&amp;hideInfos=0&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowScriptAccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;&lt;embed type=&quot;application/x-shockwave-flash&quot; src=&quot;http://www.dailymotion.com/swf/video/x82kvb?width=&amp;theme=none&amp;foreground=%23F7FFFD&amp;highlight=%23FFC300&amp;background=%23171D1B&amp;start=&amp;animatedTitle=&amp;iframe=0&amp;additionalInfos=0&amp;autoPlay=0&amp;hideInfos=0&quot; width=&quot;480&quot; height=&quot;360&quot; allowfullscreen=&quot;true&quot; allowscriptaccess=&quot;always&quot;&gt;&lt;/embed&gt;&lt;/object&gt;
&lt;p&gt;&lt;br /&gt;&lt;b&gt;&lt;a href=&quot;http://www.dailymotion.com/video/x82kvb_service-maximum-proposition-site-in_news&quot;&gt;Service maximum proposition site internet &quot;gratuit&quot;&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;i&gt;envoy&#233; par &lt;a href=&quot;http://www.dailymotion.com/adcapi&quot;&gt;adcapi&lt;/a&gt;. - &lt;a target=&quot;_self&quot; href=&quot;http://www.dailymotion.com/fr/channel/news&quot;&gt;L&#039;info video en direct.&lt;/a&gt;&lt;/i&gt;&lt;/p&gt; &lt;p&gt;Voici quelques r&#232;gles de base pour ne pas se faire avoir :&lt;/p&gt;
&lt;ul class=&quot;spip&quot;&gt;&lt;li&gt; Se m&#233;fier des &#171; partenariats &#187; : un site internet prend du temps &#224; &#234;tre d&#233;velopp&#233;, ce n'est pas un partenariat, mais une vente.&lt;/li&gt;&lt;li&gt; Regarder si la bo&#238;te vend un site qui utilise un produit connu (type SPIP, Joomla, Drupal). Demander la solution logicielle retenue. Si c'est une solution &#171; maison &#187;, m&#233;fiance : vous deviendrez d&#233;pendant de la bo&#238;te. Si c'est une solution non-maison, un produit connu, passer sur les r&#233;seaux de la communaut&#233;s, et demander si la bo&#238;te y est impliqu&#233;e. Par exemple, vous pourrez savoir que je suis impliqu&#233; dans la communaut&#233; SPIP, ce qui garanti en g&#233;n&#233;ral une certaine d&#233;ontologie.&lt;/li&gt;&lt;li&gt; Bien v&#233;rifier que les interventions de contenu sur le site sont entre vos mains. Il n'y a pas &#224; passer par une agence pour modifier le titre d'une page, un texte, une photo.&lt;/li&gt;&lt;li&gt; Surtout, ne pas utiliser un paiement par mois. Il faut un prix annonc&#233; &#171; brut &#187;, &#233;ventuellement payable en plusieurs mensualit&#233;s. Mais pas un site &#224; xxx euros par mois : cela revient &#224; avoir une location, donc &#224; ne pas &#234;tre propri&#233;taire du site.&lt;/li&gt;&lt;li&gt; S'assurer que l'h&#233;bergeur (la personne qui stocke le site sur internet) ne soit pas la m&#234;me soci&#233;t&#233; que celle qui con&#231;oit. Si c'est le concepteur qui paie l'h&#233;bergeur pour vous, demander &#224; avoir un certificat que vous &#234;tes bien en r&#233;alit&#233; le client.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;
		&lt;div class='rss_ps'&gt;&lt;p&gt;Je rappelle que &lt;a href=&quot;http://maieul.net/&quot; class='spip_out' rel='external'&gt;je vends moi m&#234;me des sites internet&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;
		</content:encoded>


		

	</item>



</channel>

</rss>
