<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://www.llaumgui.com/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
  <title>Le blog de llaumgui - MySQL</title>
  <link>http://www.llaumgui.com/</link>
  <description>Linux en général, Fedora en particulier...</description>
  <language>fr</language>
  <pubDate>Fri, 16 May 2008 04:14:49 +0200</pubDate>
  <copyright>http://creativecommons.org/licenses/by-nc-nd/2.5/</copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>Du changment dans ma vie</title>
    <link>http://www.llaumgui.com/post/Du-changment-dans-ma-vie</link>
    <guid isPermaLink="false">urn:md5:11c3f91a5b9a6d01a92c826950938291</guid>
    <pubDate>Wed, 30 Apr 2008 08:43:00 +0200</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>Humeur</category>
        <category>eZ Publish</category><category>MySQL</category><category>php</category><category>php5</category>    
    <description>    &lt;p&gt;Hier était pour moi un jour particulier puisqu'il s'agissait de mon dernier jour au sein de la société &lt;a hreflang=&quot;fr&quot; href=&quot;http://www.kaliop.com/&quot; title=&quot;Kaliop Agence Multimedia&quot;&gt;Kaliop&lt;/a&gt;. Une société et des collaborateurs avec qui j'ai pris plaisir à travailler pendant près de 2 ans &amp;amp; demi, et où je pense avoir beaucoup appris.&lt;/p&gt;
&lt;p&gt;Lundi commencera pour moi un nouveau défi puisque j'intègre la société &lt;a hreflang=&quot;en&quot; href=&quot;http://www.logica.com&quot;&gt;Logica&lt;/a&gt;, &lt;q&gt;la 7&lt;sup class=&quot;exposant&quot;&gt;e&lt;/sup&gt; société de conseil, de services informatiques et outsourcing en Europe&lt;/q&gt; (&lt;a hreflang=&quot;en&quot; href=&quot;http://fr.wikipedia.org/wiki/Logica&quot;&gt;sources Wikipédia&lt;/a&gt;) qui est plus connu en France sous son ancien nom : &lt;a hreflang=&quot;fr&quot; href=&quot;http://fr.wikipedia.org/wiki/Unilog&quot;&gt;Unilog&lt;/a&gt; (&lt;a href=&quot;http://voitou.fr/&quot; hreflang=&quot;fr&quot;&gt;Mais où est passé Unilog&lt;/a&gt;). Mon titre y est décrit comme &amp;quot;&lt;em&gt;Ingénieur en technologies de l'information&lt;/em&gt;&amp;quot; et j'y ferais principalement du &lt;a hreflang=&quot;en&quot; href=&quot;http://php.net/&quot;&gt;php&lt;/a&gt;5/&lt;a hreflang=&quot;en&quot; href=&quot;http://mysql.com/&quot;&gt;MySQL&lt;/a&gt;/&lt;a hreflang=&quot;en&quot; href=&quot;http://ez.no/&quot;&gt;eZ Publish&lt;/a&gt;; bref, je m'aventure en terrain connu ;-).&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.llaumgui.com/public/images/geek/kit_arrivee_logica.jpg&quot;&gt;&lt;img style=&quot;margin: 0 auto; display: block;&quot; alt=&quot;&quot; src=&quot;http://www.llaumgui.com/public/images/geek/.kit_arrivee_logica_m.jpg&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Autre changement en prévision : un nouveau déménagement ! Ce coup si je n'emménage pas seul vu que je déménage pour habiter avec ma copine ;-).&lt;/p&gt;
&lt;p&gt;Petit message à mes anciens collaborateurs : &lt;a href=&quot;http://pwet.fr/blog/petit_jeu_entre_amis&quot; hreflang=&quot;fr&quot;&gt;Vengeance&lt;/a&gt; &lt;img src=&quot;/themes/default/smilies/wink.png&quot; alt=&quot;;-)&quot; class=&quot;smiley&quot; /&gt; : &lt;a href=&quot;http://www.nicolas-martinez.info/&quot; title=&quot;Dark Tyranus&quot;&gt;Dark Tyranus&lt;/a&gt; | &lt;a href=&quot;http://t-ka.net/blog&quot; title=&quot;Kakia la coquine&quot;&gt;Kakia la coquine&lt;/a&gt; | &lt;a href=&quot;http://www.frefred.fr&quot; title=&quot;Touche les tétous&quot;&gt;Touche les tétous&lt;/a&gt; &lt;img src=&quot;/themes/default/smilies/smile.png&quot; alt=&quot;:-)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://www.llaumgui.com/post/Du-changment-dans-ma-vie#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/Du-changment-dans-ma-vie#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/420</wfw:commentRss>
      </item>
    
  <item>
    <title>Bug MySQL 5.0.51a</title>
    <link>http://www.llaumgui.com/post/Bug-MySQL-5051a</link>
    <guid isPermaLink="false">urn:md5:08e92bf0d01edeabaa94de2436ea16ef</guid>
    <pubDate>Mon, 18 Feb 2008 23:04:00 +0100</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>Développement web</category>
        <category>Borsalino</category><category>MySQL</category><category>PunBB</category><category>Remi</category><category>serveur</category>    
    <description>&lt;p&gt;Depuis quelques jours &lt;a href=&quot;http://forums.fedora-fr.org/viewtopic.php?id=29504&quot; hreflang=&quot;fr&quot; title=&quot;Afficher vos messages - Ordre d'affichage des messages&quot;&gt;on me rapporte des comportements étranges&lt;/a&gt; sur les forums de &lt;a href=&quot;http://www.fedora-fr.org/&quot; hreflang=&quot;fr&quot; title=&quot;Communauté francophone Fedora Core - Linux&quot;&gt;fedora-fr&lt;/a&gt;. Les messages récents ne seraient plus triés dans le bon ordre (ni dans aucun autre d'ailleurs)... Étonnant, car je n'ai rien touché au code de notre &lt;a href=&quot;http://punbb.org/&quot; hreflang=&quot;en&quot;&gt;PunBB&lt;/a&gt; depuis un bon petit moment...&lt;/p&gt;


&lt;p&gt;Bref un petit &lt;code&gt;vim include/common.php&lt;/code&gt; pour passer le &lt;em&gt;PUN_SHOW_QUERIES&lt;/em&gt; à 1 et ainsi tracer les requêtes MySQL et m'apercevoir que la requête fait bien un &lt;code&gt;ORDER BY t.last_post DESC&lt;/code&gt;:&lt;/p&gt;    &lt;code class=&quot;sql&quot;&gt;&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;SELECT&lt;/span&gt; t.id &lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;AS&lt;/span&gt; tid, t.poster, t.subject, t.last_post, t.last_post_id, t.last_poster, t.num_replies, t.closed, t.forum_id&lt;br /&gt;
&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;FROM&lt;/span&gt; punbb_topics &lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;AS&lt;/span&gt; t&lt;br /&gt;
&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;WHERE&lt;/span&gt; t.id&lt;br /&gt;
&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;IN&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;14524&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29504&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29192&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29526&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29426&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29358&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29381&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29507&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29512&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29534&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29523&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29531&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29532&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29514&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29469&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;28791&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29308&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29141&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;20353&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29449&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29505&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;28867&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29500&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29495&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29535&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29321&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29478&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29480&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29486&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29499&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29506&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29528&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29529&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29457&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29496&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29533&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;28380&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29510&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;28969&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29142&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29416&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29454&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29511&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29513&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;26116&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29333&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29267&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29455&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29493&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29524&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;28420&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29258&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29410&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29418&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29452&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29509&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29491&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29477&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29487&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29492&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29501&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29508&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29515&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29517&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29519&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29520&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29525&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29530&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29527&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;27926&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;28938&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29231&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29265&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29371&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29440&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29485&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29497&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29502&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29518&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29522&lt;/span&gt;, &lt;span style=&quot;color: #cc66cc;&quot;&gt;29521&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;GROUP&lt;/span&gt; &lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;BY&lt;/span&gt; t.id, t.poster, t.subject, t.last_post, t.last_post_id, t.last_poster, t.num_replies, t.closed, t.forum_id&lt;br /&gt;
&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;ORDER&lt;/span&gt; &lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;BY&lt;/span&gt; t.last_post &lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;DESC&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #993333; font-weight: bold;&quot;&gt;LIMIT&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt; , &lt;span style=&quot;color: #cc66cc;&quot;&gt;30&lt;/span&gt;&lt;/code&gt;


&lt;p&gt;Un café plus tard, je lance directement la requête dans l'interface de &lt;a href=&quot;http://www.phpmyadmin.net/&quot; hreflang=&quot;en&quot;&gt;phpMyAdmin&lt;/a&gt; et je m'aperçois que les résultats ne sont effectivement pas triés dans l'ordre...
Mais qu'ai je fais ?! Je trace le log de yum et je constate que je suis récemment passé de mysql-server 5.0.45 à la version 5.0.51a...&lt;/p&gt;
&lt;code class=&quot;bash&quot;&gt;root@borsalino ~&amp;gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;cat&lt;/span&gt; /var/log/yum.log | &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;grep&lt;/span&gt; mysql&lt;br /&gt;
Oct &lt;span style=&quot;color: #000000;&quot;&gt;15&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;20&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;05&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;57&lt;/span&gt; Installed: mysql.i386 &lt;span style=&quot;color: #000000;&quot;&gt;5.0&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.27&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;-1&lt;/span&gt;.fc6&lt;br /&gt;
Oct &lt;span style=&quot;color: #000000;&quot;&gt;15&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;20&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;08&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;09&lt;/span&gt; Installed: mysql-server.i386 &lt;span style=&quot;color: #000000;&quot;&gt;5.0&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.27&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;-1&lt;/span&gt;.fc6&lt;br /&gt;
Oct &lt;span style=&quot;color: #000000;&quot;&gt;15&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;20&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;08&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;10&lt;/span&gt; Installed: php-mysql.i386 &lt;span style=&quot;color: #000000;&quot;&gt;5.1&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.6&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;-3.7&lt;/span&gt;.fc6&lt;br /&gt;
Jan &lt;span style=&quot;color: #000000;&quot;&gt;20&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;18&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;56&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;44&lt;/span&gt; Installed: mysql-libs.i386 &lt;span style=&quot;color: #000000;&quot;&gt;5.0&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.45&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;-1&lt;/span&gt;.fc6.remi&lt;br /&gt;
Jan &lt;span style=&quot;color: #000000;&quot;&gt;20&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;18&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;56&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;47&lt;/span&gt; Updated: mysql.i386 &lt;span style=&quot;color: #000000;&quot;&gt;5.0&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.45&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;-1&lt;/span&gt;.fc6.remi&lt;br /&gt;
Jan &lt;span style=&quot;color: #000000;&quot;&gt;20&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;18&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;56&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;54&lt;/span&gt; Updated: mysql-server.i386 &lt;span style=&quot;color: #000000;&quot;&gt;5.0&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.45&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;-1&lt;/span&gt;.fc6.remi&lt;br /&gt;
Jan &lt;span style=&quot;color: #000000;&quot;&gt;20&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;18&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;56&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;54&lt;/span&gt; Updated: php-mysql.i386 &lt;span style=&quot;color: #000000;&quot;&gt;5.2&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.5&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;-1&lt;/span&gt;.fc6.remi&lt;br /&gt;
Feb &lt;span style=&quot;color: #000000;&quot;&gt;17&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;13&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;06&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;18&lt;/span&gt; Updated: mysql-libs.i386 &lt;span style=&quot;color: #000000;&quot;&gt;5.0&lt;/span&gt;.51a&lt;span style=&quot;color: #000000;&quot;&gt;-1&lt;/span&gt;.fc6.remi&lt;br /&gt;
Feb &lt;span style=&quot;color: #000000;&quot;&gt;17&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;13&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;06&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;22&lt;/span&gt; Updated: mysql.i386 &lt;span style=&quot;color: #000000;&quot;&gt;5.0&lt;/span&gt;.51a&lt;span style=&quot;color: #000000;&quot;&gt;-1&lt;/span&gt;.fc6.remi&lt;br /&gt;
Feb &lt;span style=&quot;color: #000000;&quot;&gt;17&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;13&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;06&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;29&lt;/span&gt; Updated: mysql-server.i386 &lt;span style=&quot;color: #000000;&quot;&gt;5.0&lt;/span&gt;.51a&lt;span style=&quot;color: #000000;&quot;&gt;-1&lt;/span&gt;.fc6.remi&lt;/code&gt;


&lt;p&gt;Dans le doute je contact l'ami &lt;a href=&quot;http://blog.famillecollet.com/&quot; hreflang=&quot;fr&quot; title=&quot;Les RPM de Remi&quot;&gt;Remi&lt;/a&gt; qui m'aide et me trouve ce bug : &lt;a href=&quot;http://bugs.mysql.com/bug.php?id=30596&quot; hreflang=&quot;en&quot;&gt;#30596 : GROUP BY optimization gives wrong result order&lt;/a&gt;.&lt;/p&gt;


&lt;p&gt;Effectivement en virant les &lt;em&gt;GROUP BY&lt;/em&gt; la requête se retrouve ordonnée comme il faut...&lt;br /&gt;
5 minutes plus tard Remi lance un build de MySQL comportant le correctif que j'installe dans la foulée et tout ce remet à marcher dans l'ordre ;-).&lt;/p&gt;

&lt;code class=&quot;bash&quot;&gt;root@borsalino ~&amp;gt; yum --&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;enable&lt;/span&gt; remi-&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;test&lt;/span&gt; update mysql\*&lt;/code&gt;</description>
    
    
    
          <comments>http://www.llaumgui.com/post/Bug-MySQL-5051a#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/Bug-MySQL-5051a#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/395</wfw:commentRss>
      </item>
    
  <item>
    <title>Remi + Borsalino = php5.2 + MySQL 5 mis à jour</title>
    <link>http://www.llaumgui.com/post/Remi-Borsalino-php52-MySQL-5-mis-a-jour</link>
    <guid isPermaLink="false">urn:md5:e497ff133ede907baba9fea6de6f78d4</guid>
    <pubDate>Sun, 20 Jan 2008 18:02:00 +0100</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>fedora-fr</category>
        <category>Borsalino</category><category>Fedora</category><category>Fedora Core 6</category><category>fedora-fr</category><category>MySQL</category><category>php</category><category>Remi</category><category>rpm</category><category>serveur</category><category>sécurité</category>    
    <description>&lt;p&gt;Devant la coupure de service, surement due à une monté en charge de &lt;a href=&quot;http://www.llaumgui.com/tag/Borsalino&quot;&gt;Borsalino&lt;/a&gt;, et devant les failles récentes révélées pour &lt;a href=&quot;http://www.php.net&quot; hreflang=&quot;en&quot; title=&quot;PHP  is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML&quot;&gt;php&lt;/a&gt; : j'ai décidé de basculer Borsalino sur le dépôt de l'ami &lt;a href=&quot;http://remi.collet.free.fr&quot; hreflang=&quot;fr&quot; title=&quot;Les RPM de Remi&quot;&gt;Remi Collet&lt;/a&gt; qui maintient toujours les packages php et &lt;a href=&quot;http://www-fr.mysql.com/&quot; hreflang=&quot;fr&quot; title=&quot;La Base de Données Open Source la plus Populaire au Monde&quot;&gt;MySQL&lt;/a&gt; pour &lt;a href=&quot;http://fedoraproject.org/&quot; hreflang=&quot;fr&quot; title=&quot;Fedora est un système d'exploitation basé sur Linux servant de vitrine aux logiciels libres les plus récents&quot;&gt;Fedora&lt;/a&gt; 6 alias &lt;a href=&quot;http://fr.wikipedia.org/wiki/G%C3%A9n%C3%A9ral_Zod&quot; hreflang=&quot;fr&quot; title=&quot;Général Zod&quot;&gt;Zod&lt;/a&gt; !&lt;/p&gt;    &lt;p&gt;On install le dépôt :&lt;/p&gt;
&lt;code class=&quot;bash&quot;&gt;root@borsalino ~&amp;gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;wget&lt;/span&gt; http://remi.collet.&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;free&lt;/span&gt;.fr/rpms/remi-release&lt;span style=&quot;color: #000000;&quot;&gt;-6&lt;/span&gt;.rpm&lt;br /&gt;
root@borsalino ~&amp;gt; rpm -Uvh remi-release&lt;span style=&quot;color: #000000;&quot;&gt;-6&lt;/span&gt;.rpm&lt;/code&gt;


&lt;p&gt;On active le dépôt en passant enabled à 1 :&lt;/p&gt;
&lt;code class=&quot;bash&quot;&gt;root@borsalino ~&amp;gt; vim /etc/yum.repos.d/remi.repo&lt;/code&gt;


&lt;p&gt;Et on mets à jour :&lt;/p&gt;
&lt;code class=&quot;bash&quot;&gt;root@borsalino ~&amp;gt; yum clean all; yum update&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;...&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;br /&gt;
Dependencies Resolved&lt;br /&gt;
&lt;br /&gt;
=============================================================================&lt;br /&gt;
&amp;nbsp;Package &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Arch &amp;nbsp; &amp;nbsp; &amp;nbsp; Version &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Repository &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Size &lt;br /&gt;
=============================================================================&lt;br /&gt;
Updating:&lt;br /&gt;
&amp;nbsp;mysql &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i386 &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;5.0&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.45&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;-1&lt;/span&gt;.fc6.remi &amp;nbsp;remi &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;2.1&lt;/span&gt; M&lt;br /&gt;
&amp;nbsp;mysql-server &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i386 &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;5.0&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.45&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;-1&lt;/span&gt;.fc6.remi &amp;nbsp;remi &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;10&lt;/span&gt; M&lt;br /&gt;
&amp;nbsp;php &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i386 &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;5.2&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.5&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;-1&lt;/span&gt;.fc6.remi &amp;nbsp;remi &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;1.3&lt;/span&gt; M&lt;br /&gt;
&amp;nbsp;php-cli &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i386 &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;5.2&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.5&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;-1&lt;/span&gt;.fc6.remi &amp;nbsp;remi &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;2.5&lt;/span&gt; M&lt;br /&gt;
&amp;nbsp;php-common &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i386 &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;5.2&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.5&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;-1&lt;/span&gt;.fc6.remi &amp;nbsp;remi &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;226&lt;/span&gt; k&lt;br /&gt;
&amp;nbsp;php-eaccelerator &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i386 &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;1&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;0.9&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.5&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.2&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;-1&lt;/span&gt;.fc6.remi &amp;nbsp;remi &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;136&lt;/span&gt; k&lt;br /&gt;
&amp;nbsp;php-gd &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i386 &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;5.2&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.5&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;-1&lt;/span&gt;.fc6.remi &amp;nbsp;remi &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;115&lt;/span&gt; k&lt;br /&gt;
&amp;nbsp;php-ldap &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i386 &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;5.2&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.5&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;-1&lt;/span&gt;.fc6.remi &amp;nbsp;remi &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;33&lt;/span&gt; k&lt;br /&gt;
&amp;nbsp;php-mbstring &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i386 &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;5.2&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.5&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;-1&lt;/span&gt;.fc6.remi &amp;nbsp;remi &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;1.1&lt;/span&gt; M&lt;br /&gt;
&amp;nbsp;php-mcrypt &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i386 &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;5.2&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.5&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;-1&lt;/span&gt;.fc6.remi &amp;nbsp;remi &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;28&lt;/span&gt; k&lt;br /&gt;
&amp;nbsp;php-mysql &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i386 &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;5.2&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.5&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;-1&lt;/span&gt;.fc6.remi &amp;nbsp;remi &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;83&lt;/span&gt; k&lt;br /&gt;
&amp;nbsp;php-pdo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i386 &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;5.2&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.5&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;-1&lt;/span&gt;.fc6.remi &amp;nbsp;remi &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;89&lt;/span&gt; k&lt;br /&gt;
&amp;nbsp;php-pear &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;noarch &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;1&lt;/span&gt;:&lt;span style=&quot;color: #000000;&quot;&gt;1.6&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.2&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;-1&lt;/span&gt;.fc6.remi &amp;nbsp;remi &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;400&lt;/span&gt; k&lt;br /&gt;
&amp;nbsp;php-xml &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i386 &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;5.2&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.5&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;-1&lt;/span&gt;.fc6.remi &amp;nbsp;remi &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;97&lt;/span&gt; k&lt;br /&gt;
Installing &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;for&lt;/span&gt; dependencies:&lt;br /&gt;
&amp;nbsp;mysql-libs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i386 &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;5.0&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.45&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;-1&lt;/span&gt;.fc6.remi &amp;nbsp;remi &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;1.5&lt;/span&gt; M&lt;br /&gt;
&amp;nbsp;sqlite2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i386 &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;2.8&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.17&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;-1&lt;/span&gt;.fc6 &amp;nbsp; &amp;nbsp; extras &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;170&lt;/span&gt; k&lt;br /&gt;
&lt;br /&gt;
Transaction Summary&lt;br /&gt;
=============================================================================&lt;br /&gt;
Install &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;2&lt;/span&gt; Package&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;s&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
Update &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;14&lt;/span&gt; Package&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;s&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
Remove &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000;&quot;&gt;0&lt;/span&gt; Package&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;s&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
Total download &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;size&lt;/span&gt;: &lt;span style=&quot;color: #000000;&quot;&gt;20&lt;/span&gt; M&lt;/code&gt;


&lt;p&gt;Pour finir, on peut utiliser &lt;a href=&quot;http://www.friendsnippets.com/snippet/92/&quot; hreflang=&quot;fr&quot; title=&quot;yum-check&quot;&gt;mon script pour notifier des mises à jour via yum&lt;/a&gt;...&lt;/p&gt;</description>
    
    
    
          <comments>http://www.llaumgui.com/post/Remi-Borsalino-php52-MySQL-5-mis-a-jour#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/Remi-Borsalino-php52-MySQL-5-mis-a-jour#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/388</wfw:commentRss>
      </item>
    
  <item>
    <title>Une petite Dedibox sous CentOS</title>
    <link>http://www.llaumgui.com/post/Une-petite-Dedibox-sous-CentOS</link>
    <guid isPermaLink="false">urn:md5:5486c12097143eb63f64ddf97017fa85</guid>
    <pubDate>Wed, 04 Jul 2007 22:57:00 +0200</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>Linux</category>
        <category>apache</category><category>CentOS</category><category>Debian</category><category>Dedibox</category><category>MySQL</category><category>paintBall</category><category>serveur</category>    
    <description>    &lt;p&gt;Comme certains le savent peut être, je suis fan de &lt;a href=&quot;http://www.llaumgui.com/tag/PaintBall&quot;&gt;PaintBall&lt;/a&gt; et j'administre avec mon pote &lt;a href=&quot;http://forums.scenario-paintball.com/index.php?showuser=2&quot; hreflang=&quot;fr&quot;&gt;Radinus&lt;/a&gt;, &lt;a href=&quot;http://www.scenario-paintball.com&quot; hreflang=&quot;fr&quot; title=&quot;Scénario-PaintBall, le repaire des fougères&quot;&gt;la plus grosse communauté francophone de paintball scénarisé&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Avec une base de données &lt;a href=&quot;http://www-fr.mysql.com/&quot; hreflang=&quot;fr&quot;&gt;MySQL&lt;/a&gt; qui grandie chaque jour (laisse tomber la manipulation de 200Mo sur un mutu' sans le shell) et les sites satellites qui vont arriver, il fallait se prendre un petit dédié.&lt;br /&gt;
Le choix s'est donc porté sur une &lt;a href=&quot;http://www.dedibox.fr/&quot; hreflang=&quot;fr&quot; title=&quot;Dedibox - Votre serveur dédié pour 29,99 Euros / mois trafic illimité&quot;&gt;Dedibox&lt;/a&gt; (pas pour rien qu'on l'appel Radinus) et pour le système d'exploitation, j'ai choisis &lt;a href=&quot;http://www.centos.org/&quot; hreflang=&quot;fr&quot; title=&quot;The Community ENTerprise Operating System&quot;&gt;CentOS&lt;/a&gt; 5.0, pourquoi ?&lt;/p&gt;
&lt;p&gt;Les raisons sont multiples :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.kaliop.com&quot; hreflang=&quot;fr&quot;&gt;Professionnellement&lt;/a&gt;, j'administre du &lt;a hreflang=&quot;fr&quot; href=&quot;http://www.debian.org/&quot; title=&quot;Debian, le système d'exploitation universel&quot;&gt;Debian&lt;/a&gt;, une CentOS me permet d'acquérir de nouvelles expériences et de prendre une bouffée de &lt;a href=&quot;http://fr.wikipedia.org/wiki/RPM_Package_Manager&quot; hreflang=&quot;fr&quot; title=&quot;RPM Package Manager&quot;&gt;RPM&lt;/a&gt; dans un monde de &lt;a href=&quot;http://fr.wikipedia.org/wiki/Deb&quot; hreflang=&quot;fr&quot;&gt;deb&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;C'est la famille (représente le chapeau !).&lt;/li&gt;
&lt;li&gt;Autant je kiff &lt;a hreflang=&quot;fr&quot; href=&quot;http://www.fedora-fr.org&quot;&gt;Fedora&lt;/a&gt; pour du desk, autant son cycle de vie accéléré est moyen pour du serveur. Donc, dans la famille &lt;a hreflang=&quot;fr&quot; href=&quot;http://www.redhat.fr/&quot;&gt;Red Hat&lt;/a&gt;, je demande le serveur au support gratuit : CentOS; bonne pioche.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Bref, pour le moment le strict minimum tourne dessus (apache/MySQL/Postfix) et je commence à transférer les petits sites satellites avant de passer &lt;a href=&quot;http://forums.scenario-paintball.com&quot; hreflang=&quot;fr&quot;&gt;au gros forum&lt;/a&gt;.&lt;/p&gt;</description>
    
    
    
          <comments>http://www.llaumgui.com/post/Une-petite-Dedibox-sous-CentOS#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/Une-petite-Dedibox-sous-CentOS#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/330</wfw:commentRss>
      </item>
    
  <item>
    <title>Script de migration de Xoops vers punBB</title>
    <link>http://www.llaumgui.com/post/Script-de-migration-de-Xoops-vers-punBB</link>
    <guid isPermaLink="false">urn:md5:67bdb8adfdb6c659a732f3a38b296f82</guid>
    <pubDate>Sat, 09 Sep 2006 18:28:00 +0200</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>Développement web</category>
        <category>ambassadeur</category><category>MySQL</category><category>PunBB</category><category>script</category><category>serveur</category><category>Xoops</category>    
    <description>&lt;p&gt;Suite à &lt;a href=&quot;http://www.llaumgui.com/post/Reflexion-sur-Fedora-France-Xoops-et-lhebergement&quot; hreflang=&quot;fr&quot; title=&quot;Réflexion sur Fedora-France Xoops et l'hébergement&quot;&gt;ma réflexion&lt;/a&gt; ainsi que l'avale des &lt;a href=&quot;http://www.fedoraproject.org/wiki/Ambassadors/FrenchTeam&quot; hreflang=&quot;fr&quot; title=&quot;Ambassadeurs Francophones&quot;&gt;ambassadeurs francophones&lt;/a&gt; du &lt;a href=&quot;http://www.fedoraproject.org/&quot; hreflang=&quot;fr&quot; title=&quot;Projet Fedora&quot;&gt;projet Fedora&lt;/a&gt;, je  viens de commencer le script de migration de &lt;a href=&quot;http://www.xoops.org/&quot; hreflang=&quot;en&quot; title=&quot;CMS Xoops&quot;&gt;Xoops&lt;/a&gt; vers &lt;a href=&quot;http://www.punbb.org/&quot; hreflang=&quot;en&quot; title=&quot;Forum punBB&quot;&gt;punBB&lt;/a&gt;.
Pour le moment, seul les groupes sont convertis (oui je sais, c'est le plus facile), mais cette migration ma permis de construire le script et sa logique.&lt;/p&gt;    &lt;h2&gt;Quel est la logique de ce script ?&lt;/h2&gt;


&lt;p&gt;Des requêtes &lt;em&gt;SELECT&lt;/em&gt; alimentent un tableau de correspondance des données de Xoops vers celles de punBB.
Ensuite, ce tableau est passé à la fonction &lt;em&gt;buildInsert&lt;/em&gt; qui va construire la requête d'insertion.&lt;/p&gt;

&lt;code class=&quot;php&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; convGroupe &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;//$this-&amp;gt;emptyTable( &amp;quot;punbb_groups&amp;quot; );&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$query&lt;/span&gt; = &lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;query&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;SELECT * FROM xoops_groups ORDER BY groupid&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;while&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$groupe&lt;/span&gt; = &lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;fetch_array&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$query&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// Convertie les groupid &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$groupe&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'groupid'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; = &lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;convertGroupeId&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$groupe&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'groupid'&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;#41;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$groupe&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'groupid'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &amp;gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;4&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$tab&lt;/span&gt; =&amp;nbsp; &lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&amp;nbsp; &lt;span style=&quot;color: #ff0000;&quot;&gt;'g_id'&lt;/span&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$groupe&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'groupid'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #ff0000;&quot;&gt;'g_title'&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$groupe&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'name'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #ff0000;&quot;&gt;'g_user_title'&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$groupe&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'name'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #ff0000;&quot;&gt;'g_read_board'&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #ff0000;&quot;&gt;'g_post_replies'&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #ff0000;&quot;&gt;'g_post_topics'&lt;/span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #ff0000;&quot;&gt;'g_post_polls'&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #ff0000;&quot;&gt;'g_edit_posts'&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #ff0000;&quot;&gt;'g_delete_posts'&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #ff0000;&quot;&gt;'g_delete_topics'&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #ff0000;&quot;&gt;'g_set_title'&lt;/span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #ff0000;&quot;&gt;'g_search_users'&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #ff0000;&quot;&gt;'g_edit_subjects_interval'&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;300&lt;/span&gt;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #ff0000;&quot;&gt;'g_post_flood'&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;60&lt;/span&gt;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #ff0000;&quot;&gt;'g_search_flood'&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; =&amp;gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;30&lt;/span&gt;,&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;buidInsert&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;'punbb_groups'&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$tab&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/**&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * Construction de requêtes d'insertion.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; * @author Guillaume Kulakowski &amp;lt;guillaume AT llaumgui DOT com&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* @since 0.1&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* @TODO Code lourd à optimisé.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* @param array&amp;nbsp;$tab &amp;nbsp; &amp;nbsp;Paramêtres.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; */&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; buidInsert&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$table&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$tab&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$_key&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$_value&lt;/span&gt;;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;foreach&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$tab&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;as&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$key&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$value&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$_key&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;&amp;nbsp;= &lt;span style=&quot;color: #0000ff;&quot;&gt;$key&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$_value&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= &lt;span style=&quot;color: #0000ff;&quot;&gt;$value&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$SQL&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;INSERT INTO &amp;quot;&lt;/span&gt;.&lt;span style=&quot;color: #0000ff;&quot;&gt;$table&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot; (&amp;quot;&lt;/span&gt; . &lt;a href=&quot;http://www.php.net/implode&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;implode&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;, &amp;quot;&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$_key&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; . &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;) VALUES ('&amp;quot;&lt;/span&gt; . &lt;a href=&quot;http://www.php.net/implode&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;implode&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;', '&amp;quot;&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$_value&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; . &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;')&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;query&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$SQL&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/code&gt;


&lt;p&gt;Le layer de base est minimaliste car le script reste quand même dans un esprit &lt;em&gt;one-shoot&lt;/em&gt; mais pourra être repris par toutes personnes voulant réaliser la même opération.&lt;/p&gt;



&lt;h2&gt;Pré requis du script, lorsqu'il sera fini :&lt;/h2&gt;

&lt;p&gt;php4 ou supérieur, par contre la base de données de Fedora-France étant assez conséquente, je compte lancer le script en ligne de commande. Il sera donc optimisé pour les gros forums/sites mais pourra ne pas marcher avec un simple appel via un navigateur.&lt;/p&gt;



&lt;h2&gt;Un roadmap ?&lt;/h2&gt;

&lt;p&gt;&lt;del&gt;Non, le script sera prêt quand il sera prêt et sera sous licence &lt;a href=&quot;http://www.gnu.org/licenses/gpl.html&quot; hreflang=&quot;fr&quot; title=&quot;Licence GNU&quot;&gt;GNU/GPL&lt;/a&gt;, vous pouvez déjà télécharger la version en cours de développement attachée à ce billet.&lt;/del&gt;
Version finale disponible attachée à ce billet&lt;/p&gt;</description>
    
          <enclosure url="http://www.llaumgui.com/public/files/xoops2punbb.zip"
      length="6479" type="application/zip" />
    
    
          <comments>http://www.llaumgui.com/post/Script-de-migration-de-Xoops-vers-punBB#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/Script-de-migration-de-Xoops-vers-punBB#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/92</wfw:commentRss>
      </item>
    
  <item>
    <title>Réflexion sur Fedora-France, Xoops et l'hébergement.</title>
    <link>http://www.llaumgui.com/post/Reflexion-sur-Fedora-France-Xoops-et-lhebergement</link>
    <guid isPermaLink="false">urn:md5:265540566e3edd06572a9400e2be0f0f</guid>
    <pubDate>Sat, 02 Sep 2006 19:00:00 +0200</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>fedora-fr</category>
        <category>Dotclear</category><category>Fedora</category><category>Free</category><category>libre</category><category>MySQL</category><category>php</category><category>PunBB</category><category>script</category><category>Xoops</category>    
    <description>&lt;p&gt;Depuis plusieurs années, &lt;a href=&quot;http://www.fedora-fr.org&quot; hreflang=&quot;fr&quot; title=&quot;Fedora Fr&quot;&gt;Fedora-Fr&lt;/a&gt; tourne sous &lt;a href=&quot;http://www.xoops.org&quot; hreflang=&quot;fr&quot; title=&quot;Xoops CMS&quot;&gt;Xoops&lt;/a&gt;, un &lt;a hreflang=&quot;fr&quot; href=&quot;http://fr.wikipedia.org/wiki/Syst%C3%A8me_de_gestion_de_contenu&quot;&gt;CMS&lt;/a&gt; ultra complet mais qui nous enferme dans son univers. Depuis que j'ai pris en charge la partie technique du site, je n'ai pas eu le courage de changer et, je l'avoue, j'ai même freiné ce changement.&lt;/p&gt;
&lt;p&gt;A présent je m'interroge...&lt;br /&gt;De par mon travail, j'ai énormément progressé et je suis capable de réaliser une migration de &lt;a hreflang=&quot;en&quot; href=&quot;http://xoopsforge.com/&quot;&gt;CBB&lt;/a&gt; (forum de Xoops) vers &lt;a hreflang=&quot;en&quot; href=&quot;http://www.punbb.org/&quot;&gt;punBB&lt;/a&gt; sans problème (en fait, j'en étais capable avant, mais comme je n'avais rien fais de tel, j'avais un peu la flemme ;)).&lt;br /&gt;Et, récemment, &lt;a hreflang=&quot;fr&quot; href=&quot;https://www.redhat.com/archives/fedora-fr-list/2006-September/msg00004.html&quot;&gt;la réflexion&lt;/a&gt; de &lt;a href=&quot;http://glive.tuxfamily.org&quot; hreflang=&quot;en&quot; title=&quot;Blog de [splinux]&quot;&gt;Damien  Durant&lt;/a&gt; sur &lt;a href=&quot;https://www.redhat.com/mailman/listinfo/fedora-fr-list&quot; hreflang=&quot;fr&quot; title=&quot;Liste de diffusion des ambassadeurs francophones&quot;&gt;la liste de diffusion des ambassadeurs francophone&lt;/a&gt; m'a réconforté dans mon idée qu'il faut envisager le changement.&lt;/p&gt;    &lt;h2&gt;L'hébergement :&lt;/h2&gt;
&lt;p&gt;Avant tout, le vrai problème de Fedora France demeure l'hébergement. De plus en plus une solution dédiée s'impose ! Elle permettrait de souffler et de mettre fin au erreur 500 et autre petit problème de l'hébergement communautaire. Mais surtout, elle permettrait au site de prendre son envol.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;La question est quel hébergement pour Fedora-France ?&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Apparemment le &lt;a hreflang=&quot;fr&quot; href=&quot;http://www.fedoraproject.org&quot;&gt;Projet Fedora&lt;/a&gt; est hébergé par &lt;a hreflang=&quot;en&quot; href=&quot;http://www.redhat.com&quot;&gt;Red Hat&lt;/a&gt; qui n'héberge que du statique ou du Python pour raisons de sécurité.&lt;/li&gt;
&lt;li&gt;Avec le trafic actuel et de la publicité nous pourrions nous payer une &lt;a hreflang=&quot;fr&quot; href=&quot;http://www.dedibox.fr/&quot;&gt;Dedibox&lt;/a&gt; (solution dédiée de &lt;a hreflang=&quot;fr&quot; href=&quot;http://www.free.fr&quot;&gt;Free&lt;/a&gt;) sans trop de problème. Mais l'idée de la pub ne va-t-elle pas contre nos idées de liberté ?&lt;/li&gt;
&lt;li&gt;La solution serait alors de se monter en association (c'est prévu), de démarcher des fournisseurs (Dedibox en premier) et de leurs faire profiter de notre image de libre en nous soutenant.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;La structure de Fedora France et le choix d'un CMS&lt;/h2&gt;
&lt;p&gt;Damien propose de suivre le projet Fedora dans ses choix et de passer vers une solution Python, mais je pense que l'architecture php/MySQL offrirait beaucoup plus de souplesse, et en plus c'est ma spécialité.&lt;/p&gt;
&lt;p&gt;Voici ma réflexion :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Forum :&lt;/strong&gt; &lt;a hreflang=&quot;en&quot; href=&quot;http://www.punbb.org/&quot;&gt;punBB&lt;/a&gt; (scripts CBB -&amp;gt; punBB par moi même).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Wiki :&lt;/strong&gt; &lt;a hreflang=&quot;en&quot; href=&quot;http://wiki.splitbrain.org/wiki:dokuwiki&quot;&gt;DokuWiki&lt;/a&gt;, intégré à punBB (étude de la faisabilité d'un script wiwimod -&amp;gt; DokuWiki qui soit correct).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Planet :&lt;/strong&gt; &lt;a hreflang=&quot;fr&quot; href=&quot;http://www.dotclear.net&quot;&gt;DotClear 2&lt;/a&gt; et son plugin planet visible &lt;a hreflang=&quot;fr&quot; href=&quot;http://www.dotclear.net/planet/&quot;&gt;ici&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Page d'accueil :&lt;/strong&gt; Faites maison.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Je sais, certain dirons que cette structure ressemble pas mal à &lt;a hreflang=&quot;fr&quot; href=&quot;http://www.ubuntu-fr.org&quot;&gt;un autre site&lt;/a&gt;... Mais à problématique proche, solution proche.&lt;/p&gt;
&lt;p&gt;Bref, le travail que j'aurais à faire pourrait être découpé en plusieurs étapes :&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Migration de Fedora France.&lt;/li&gt;
&lt;li&gt;Installation du planet.&lt;/li&gt;
&lt;li&gt;Migration du forum.&lt;/li&gt;
&lt;li&gt;Migration de la home page.&lt;/li&gt;
&lt;li&gt;Migration du wiki.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;em&gt;Cette réflexion n'engage que moi et nullement Fedora-francce. Elle est juste là pour aider un éventuel webmaster/administrateur qui se retrouverait face à une solution historique et serait effrayé par l'obstacle d'une migration.&lt;/em&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://www.llaumgui.com/post/Reflexion-sur-Fedora-France-Xoops-et-lhebergement#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/Reflexion-sur-Fedora-France-Xoops-et-lhebergement#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/89</wfw:commentRss>
      </item>
    
  <item>
    <title>Monter une base MySQL en ligne de commande</title>
    <link>http://www.llaumgui.com/post/monter-une-base-mysql-en-ligne-de-commande</link>
    <guid isPermaLink="false">urn:md5:dda190eb1fd4df06ed26910be3932695</guid>
    <pubDate>Sat, 12 Nov 2005 17:51:00 +0000</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>Linux</category>
        <category>MySQL</category><category>serveur</category>    
    <description>&lt;p&gt;Je travail actuellement sur un projet où la base de données &lt;a href=&quot;http://www-fr.mysql.com/&quot; hreflang=&quot;fr&quot;&gt;MySQL&lt;/a&gt; est assez conséquente (85Mo). Il va de soit que &lt;a href=&quot;http://www.phpmyadmin.net/&quot; hreflang=&quot;en&quot;&gt;phpMyAdmin&lt;/a&gt; est dépassé avec un tel poids et tournant sous Linux je ne peux utiliser
&lt;a href=&quot;http://www.mysqlfront.de/&quot; hreflang=&quot;en&quot;&gt;MySQL-Front&lt;/a&gt; :-(.&lt;br /&gt;
Mais heureusement que la ligne de commande et un accès SSH permettent de monter 85Mo en moins de 5 minutes &lt;img src=&quot;/themes/default/smilies/smile.png&quot; alt=&quot;:-)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;    &lt;code class=&quot;bash&quot;&gt;mysql -u nom_utilisateur -pmot_de_passe -h localhot nom_base &amp;lt; fichier.sql&lt;/code&gt;
&lt;p&gt;A noter que le &lt;em&gt;-p&lt;/em&gt; et le mot de passe sont accolés.&lt;br /&gt;
En cas d'erreur(s) dans la base de données, l'option &lt;em&gt;--force&lt;/em&gt; peut s'avérer utile.&lt;/p&gt;</description>
    
    
    
          <comments>http://www.llaumgui.com/post/monter-une-base-mysql-en-ligne-de-commande#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/monter-une-base-mysql-en-ligne-de-commande#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/55</wfw:commentRss>
      </item>
    
  <item>
    <title>MySQL 5.0 et la cohabitation de scripts php</title>
    <link>http://www.llaumgui.com/post/mysql-50-et-la-cohabitation-de-scripts-php</link>
    <guid isPermaLink="false">urn:md5:185b54aca74a411eff259a5195a31346</guid>
    <pubDate>Fri, 28 Oct 2005 19:27:00 +0000</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>Développement web</category>
        <category>MySQL</category><category>MySQL 5</category><category>php</category>    
    <description>&lt;p&gt;Le bridge (appellations tout ce qui a de moins officielle) est un pont
permettant à 2 scripts php de communiquer entre eux. Le meilleur exemple est, à
mon sens, &lt;a href=&quot;http://coppermine-gallery.net/&quot; hreflang=&quot;en&quot;&gt;Coppermine&lt;/a&gt;
qui est une galerie en php avec son propre espace membre mais qui sait utiliser
une autre table membres que la sienne afin d'être parfaitement intégrée à une
structure déjà existante.&lt;/p&gt;    &lt;p&gt;Un exemple concret peut être donné via &lt;a href=&quot;http://www.scenario-paintball.com&quot; hreflang=&quot;fr&quot;&gt;Scenario-PaintBall&lt;/a&gt; qui
utilise &lt;a href=&quot;http://www.invisionboard.com/&quot; hreflang=&quot;en&quot;&gt;IPB&lt;/a&gt; et
Coppermine avec le bridge adéquate pour n'avoir qu'un seul compte membre pour
les 2 scripts.&lt;/p&gt;
&lt;p&gt;Auparavant, soit ce système de bridge été incorporé en natif, soit il
fallait toucher au code d'un voir des 2 systèmes en places.&lt;br /&gt;
Par exemple, faire en sorte que l'inscription à IPB soit couplée avec celle de
Coppermine (Modification des source d'IPB) et utiliser le système
d'identification d'IPB sous Coppermine (Modification des source de
Coppermine).&lt;br /&gt;
Bref le travail était fastidieux, mais les mise à jour était pires.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.mysql.com/&quot; hreflang=&quot;en&quot;&gt;MySQL&lt;/a&gt; 5.0 introduit un
point très intéressant, que les utilisateurs de solutions telles que &lt;a href=&quot;http://www.microsoft.com/sql/default.mspx&quot; hreflang=&quot;en&quot;&gt;SQL Server&lt;/a&gt; ou
&lt;a href=&quot;http://www.oracle.com/global/fr/index.html&quot; hreflang=&quot;fr&quot;&gt;Oracle&lt;/a&gt;
connaissent : Les &lt;strong&gt;&lt;a href=&quot;http://fr.wikipedia.org/wiki/D%C3%A9clencheur&quot; hreflang=&quot;fr&quot;&gt;triggers&lt;/a&gt;&lt;/strong&gt;. En vulgarisant, ce sont des réactions à des actions
bien spécifiques.&lt;br /&gt;
Un exemple pourrait être une requête d'insertion dans la table membre de
Coppermine suite à une requête d'insertion dans celle d'IPB et vice versa... On
a donc automatisé l'inscription aux 2 scripts sans modifier une seul ligne de
code...&lt;/p&gt;
&lt;p&gt;Malheureusement, et oui, il y a toujours un &amp;quot;mais&amp;quot;, MySQL 5.0 n'est &lt;a href=&quot;http://www.xperience-fr.net/index.php?news=18352&quot; hreflang=&quot;fr&quot;&gt;officiellement
stable&lt;/a&gt; que depuis quelques jours et des incompatibilités apparaissent déjà
avec certain scripts très utilisés (&lt;a href=&quot;http://forums.invisionboard.fr/index.php?showtopic=21951&amp;hl=&quot; hreflang=&quot;fr&quot;&gt;IPB pour ne citer que lui&lt;/a&gt;). A mon avis, et les copains de &lt;a href=&quot;http://www.celeonet.fr/&quot; hreflang=&quot;fr&quot;&gt;Celeo&lt;/a&gt; sont d'accord avec moi, une
réelle utilisation en production de MySQL 5.0 ne se fera pas avant 1 an, mais
on peut s'y préparer.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;NB :&lt;/strong&gt; Comme me le fais remarquer &lt;a href=&quot;http://www.atelierphp5.com/&quot; hreflang=&quot;fr&quot;&gt;Dash&lt;/a&gt; sur IRC au moment de la
rédaction de ce billet : cette vision est simpliste et ne pourrait bien entendu
pas fonctionner avec n'importe quel script. Par exemple, le cryptage d'un
champs via un algorithmes compliqué ne pourrait être exécuté via le serveur
MySQL mais seulement récupéré à partir de la première requête... Les systèmes
utilisant un cryptage de mots de passe différents pourraient donc poser
problèmes.&lt;/em&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://www.llaumgui.com/post/mysql-50-et-la-cohabitation-de-scripts-php#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/mysql-50-et-la-cohabitation-de-scripts-php#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/54</wfw:commentRss>
      </item>
    
  <item>
    <title>Bien débuter le développement d'une application web niveau sécurité</title>
    <link>http://www.llaumgui.com/post/bien-debuter-le-developpement-dune-application-web-niveau-securite</link>
    <guid isPermaLink="false">urn:md5:a68eba55e4edf8feb8e5795599b97c9a</guid>
    <pubDate>Sun, 01 May 2005 23:02:00 +0000</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>Développement web</category>
        <category>MySQL</category><category>optimisation</category><category>php</category><category>sécurité</category>    
    <description>&lt;p&gt;Suite à &lt;a href=&quot;http://ipb2.ipbr-fr.com/index.php?showtopic=1053&quot; hreflang=&quot;fr&quot;&gt;une discutions sur les forums d'IPBR-Fr&lt;/a&gt; initiée par Darken, et à la critique émise lors de &lt;a href=&quot;http://www.llaumgui.com/post/boutique-en-ligne-autopsie-dune-faille-de-securite&quot; hreflang=&quot;fr&quot;&gt;mon précédent billet&lt;/a&gt; : je me demande, comment bien partir dans le développement d'application web (Ou mod IPB) du point de vu sécurité ?
En effet, la question de la sécurité doit être pensé lors du développement et non après coup.&lt;/p&gt;    &lt;h2&gt;I. Ne plus utiliser de fonction dévaluées :&lt;/h2&gt;
&lt;p&gt;php est un langage en perpétuelle évolution. Certaines vieilles fonctions sont toujours supportées dans les dernières versions mais sont fortements dévaluées... Pour des raisons de sécurité et de compatibilité dans les futures versions, éviter de telles fonctions se révèle une bonne chose.&lt;br /&gt;
Ainsi, par exemple, on préfèrera &lt;span style=&quot;color: blue;&quot;&gt;$_SESSION['TOTO']&lt;/span&gt; à &lt;span style=&quot;color: blue;&quot;&gt;session_register()&lt;/span&gt;.&lt;/p&gt;
&lt;h2&gt;II. register_global = Off  :&lt;/h2&gt;
&lt;p&gt;L'un des point de sécurité les plus important celon moi.&lt;br /&gt;
Depuis php 4.2, register_global prend la valeur off et &lt;a href=&quot;http://www.php.net&quot; hreflang=&quot;us&quot;&gt;php.net&lt;/a&gt; préconise de le laisser comme ça. Malheureusement trop de script ne tourne pas en environnement register_global = off, ce qui fait que les serveurs professionnels tourne sous On. Cela n'est pas grave en soit si vous avez développé votre application en Off car elle sera sécurisée.&lt;/p&gt;
&lt;p&gt;Imaginez que vous utilisiez une variable $login pour identifier un visiteur de votre site et que vous n'ayez pas travaillé dans un environnement registerglobal = On. Si $login n'est pas présent dans la session, php ira le chercher dans le cookie puis dans les supers variables POST et GET... Comment savoir d'où est affectée cette variable dans ce cas là ?&lt;/p&gt;
&lt;p&gt;La réponse est simple, si vous devez chercher cette variable dans la session, faite &lt;strong&gt;$_SESSION['login']&lt;/strong&gt;, dans un cookie : &lt;strong&gt;$_COOKIE['login']&lt;/strong&gt; et dans &lt;strong&gt;$_POST&lt;/strong&gt; et &lt;strong&gt;$_GET&lt;/strong&gt; pour les autres supers variables. Ainsi, vous saurez exactement d'où provient la valeur prise par une variable et pourrez la contrôler.&lt;/p&gt;
&lt;h2&gt;III. Typage de variable :&lt;/h2&gt;
&lt;p&gt;Le point fort de php est d'être facile à apprendre et entreprendre. De ce fait, il n'y a pas de typage des variables à proprement parler...&lt;br /&gt;
De cette facilité, née une faille de sécurité dont l'une des principales conséquences sont les injonctions SQL (Objet d'un prochain billet).&lt;br /&gt;
Forcer le typage des variables issues notamment de $_GET et surtout celle qui ne sont pas des chaînes de caractère se révèle donc indispensable.&lt;br /&gt;
Ainsi si notre variable $login représente un identifiant entier nous la récupèrerons ainsi :&lt;/p&gt;
&lt;div style=&quot;color: blue; text-align: center;&quot;&gt;$login_id = intval(@$_GET['login'])&lt;/div&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;La sécurité dans le domaine du web est devenue un point primordial de tout développement. Au risque de me répéter, cette question doit être abordée lors de l'analyse/conception de votre application.&lt;br /&gt;
Quel variables dois je récupérer à partir de super variables ? Comment dois je passer certaines informations de page en page ? Cookies ou sessions ? Sont autant de question non négligeable.&lt;/p&gt;</description>
    
    
    
          <comments>http://www.llaumgui.com/post/bien-debuter-le-developpement-dune-application-web-niveau-securite#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/bien-debuter-le-developpement-dune-application-web-niveau-securite#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/27</wfw:commentRss>
      </item>
    
  <item>
    <title>php, base de données et couche d'abstraction 3 (Driver MySQL)</title>
    <link>http://www.llaumgui.com/post/php-base-de-donnees-et-couche-dabstraction-1-driver-mysql</link>
    <guid isPermaLink="false">urn:md5:6c067e3ac1b6e6400b14c9b035b96882</guid>
    <pubDate>Sat, 05 Feb 2005 00:25:00 +0000</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>Développement web</category>
        <category>MySQL</category><category>php</category><category>SGBD</category>    
    <description>&lt;p&gt;Je viens de porter quelques retouches à mes driver MySQL (Ceux que j'utilise pour PortaLL mon portail perso). J'en profite donc pour vous les présenter.
A noter que je n'ai pas encore testé l'abstraction avec un autre SGBD, mais normalement tout devrait aller très bien ;-).&lt;/p&gt;    &lt;p&gt;Au programme des fonctionnalités :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Connexion/déconnexion.&lt;/li&gt;
&lt;li&gt;Fonctions de base MySQL.&lt;/li&gt;
&lt;li&gt;Compteur de requête.&lt;/li&gt;
&lt;li&gt;Liste des requêtes effectuées par une page.&lt;/li&gt;
&lt;li&gt;Mise en forme des requêtes avant de les afficher pour une lecture et un débogage  facilités.&lt;/li&gt;
&lt;/ul&gt;
&lt;code class=&quot;php&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/*-------------------------------------------------------------------------&lt;br /&gt;
| &amp;nbsp; PortaLL 2.1.&lt;br /&gt;
========================================&lt;br /&gt;
| &amp;nbsp; Par LLaumgui&lt;br /&gt;
| &amp;nbsp; (c) 2004&lt;br /&gt;
========================================&lt;br /&gt;
| &amp;nbsp; Web: http://www.xperience-fr.net&lt;br /&gt;
| &amp;nbsp; eMail: llaumgui_AT_xperience-fr.net&lt;br /&gt;
+-------------------------------------------------------------------------- */&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/**&lt;br /&gt;
* Gestion des relation avec une base de données mySQL.&lt;br /&gt;
* @package portall&lt;br /&gt;
* @author LLaumgui&lt;br /&gt;
* @version $Id&lt;br /&gt;
*/&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;class&lt;/span&gt; DataBase &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;var&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$data&lt;/span&gt; = &lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;array&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;db_host&amp;quot;&lt;/span&gt; &amp;nbsp; =&amp;gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;db_login&amp;quot;&lt;/span&gt; &amp;nbsp;=&amp;gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;db_pass&amp;quot;&lt;/span&gt; &amp;nbsp; =&amp;gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;db_name&amp;quot;&lt;/span&gt; &amp;nbsp; =&amp;gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;debug_mod&amp;quot;&lt;/span&gt; =&amp;gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// Information présente dans la conf_global.php.&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;var&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$query&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// La requête.&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;var&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$listQuery&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// La liste des requêtes (débug mod = 2).&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;var&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$connectionServer&lt;/span&gt;; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// Connexion au serveur.&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;var&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$connectionDB&lt;/span&gt;; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// Connexion à la base de donées.&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;var&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$countQuery&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// nombre de requêtes MySQL&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;var&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$fetch_row&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= &lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// mysql_fetch_row&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/**&lt;br /&gt;
* Constructeur de la classe&lt;br /&gt;
*/&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; DataBase&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;require&lt;/span&gt; ROOT_PATH.&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;conf_global.php&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'db_host'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &amp;nbsp; = &lt;span style=&quot;color: #0000ff;&quot;&gt;$CONF&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'DB_HOST'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'db_login'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &amp;nbsp;= &lt;span style=&quot;color: #0000ff;&quot;&gt;$CONF&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'DB_LOGIN'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'db_pass'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &amp;nbsp; = &lt;span style=&quot;color: #0000ff;&quot;&gt;$CONF&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'DB_PASSWORD'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'db_name'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &amp;nbsp; = &lt;span style=&quot;color: #0000ff;&quot;&gt;$CONF&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'DB_NAME'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'debug_mod'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; = &lt;span style=&quot;color: #0000ff;&quot;&gt;$CONF&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'DEBUG'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;//####################################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// &amp;nbsp; &amp;nbsp; &amp;nbsp;Fonctions de base du SGBD.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;//####################################################################################################&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/**&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;* Connexion à la base de données&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;* @author LLaumgui&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; connect&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;connectionServer&lt;/span&gt; = &lt;a href=&quot;http://www.php.net/mysql_connect&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;mysql_connect&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'db_host'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'db_login'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'db_pass'&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;#41;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;or &lt;a href=&quot;http://www.php.net/die&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;die&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;PortaLL ERROR: Cannot connect to mySQL server&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;connectionDB&lt;/span&gt; &amp;nbsp; &amp;nbsp; = &lt;a href=&quot;http://www.php.net/mysql_select_db&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;mysql_select_db&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'db_name'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;connectionServer&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;or &lt;a href=&quot;http://www.php.net/die&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;die&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;PortaLL ERROR: Cannot connect to database &amp;quot;&lt;/span&gt;.&lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'db_name'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/**&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;* Requête simple&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;* @author LLaumgui&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;* @param (String) La requête à exécuter&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;* @return (String) La requête&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; query&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$query&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;query&lt;/span&gt; = &lt;a href=&quot;http://www.php.net/mysql_query&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;mysql_query&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$query&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; or &lt;a href=&quot;http://www.php.net/die&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;die&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;errorMsg&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$query&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// Requête mySQL.&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// Débugage&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'debug_mod'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &amp;gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;countQuery&lt;/span&gt;++; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// +1 requêtes.&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'debug_mod'&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#93;&lt;/span&gt; &amp;gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;listQuery&lt;/span&gt; .= &lt;span style=&quot;color: #0000ff;&quot;&gt;$query&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;br /&amp;gt;&amp;lt;hr align=&amp;quot;center&amp;quot; /&amp;gt;'&lt;/span&gt;; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// Ajoute les requète à la liste.&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;query&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/**&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;* Fonction mysql_fetch_array&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;* @author LLaumgui&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;* @param (String) La requête à exécuter&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;* @return (array) Résultat de la commande mysql_fetch_array&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; fetch_row&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$query&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;a href=&quot;http://www.php.net/empty&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;empty&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$query&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;fetch_row&lt;/span&gt; = &lt;a href=&quot;http://www.php.net/mysql_fetch_array&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;mysql_fetch_array&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;query&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;fetch_row&lt;/span&gt; = &lt;a href=&quot;http://www.php.net/mysql_fetch_array&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;mysql_fetch_array&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$query&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;fetch_row&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/**&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;* Fonction mysql_num_rows&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;* @author LLaumgui&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;* @param (String) La requête à exécuter&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;* @return (int) Résultat de la commande mysql_num_rows&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; num_rows&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$query&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;a href=&quot;http://www.php.net/empty&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;empty&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$query&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$num_rows&lt;/span&gt; = &lt;a href=&quot;http://www.php.net/mysql_num_rows&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;mysql_num_rows&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;query&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;else&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$num_rows&lt;/span&gt; = &lt;a href=&quot;http://www.php.net/mysql_num_rows&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;mysql_num_rows&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$query&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$num_rows&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;//####################################################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// &amp;nbsp; &amp;nbsp; &amp;nbsp;Fonctions évoluées&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;//####################################################################################################&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/**&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;* Compteur de requète (Debug mod &amp;gt; 0)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;* @author LLaumgui&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;* @return (int) Nombre de requêtes&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; countQuery&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;countQuery&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/**&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;* Liste des requêtes utilisées pour une page (Debug mod &amp;gt; 1)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;* @author LLaumgui&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;* @return (String) Liste des requêtes&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; listQuery&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$query&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;listQuery&lt;/span&gt; = &lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;layout&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;listQuery&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$separator&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;lt;br /&amp;gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;b&amp;gt;&amp;lt;u&amp;gt;&amp;lt;font size=&amp;quot;+1&amp;quot;&amp;gt;Debug mySQL :&amp;lt;/font&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;'&lt;/span&gt;.&lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;listQuery&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/**&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;* Message d'erreur en cas de problème sur une requète mySQL&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;* @author LLaumgui&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;* @return (String) Message d'erreur&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; errorMsg&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$query&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$msg_error&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;font color=&amp;quot;#FF0000&amp;quot; size=&amp;quot;6&amp;quot;&amp;gt;&amp;lt;b&amp;gt;mySQL query error :&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;p&amp;gt; &amp;lt;/p&amp;gt;'&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$msg_error&lt;/span&gt; .= &lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;mySQL error :&amp;lt;/b&amp;gt; '&lt;/span&gt;.&lt;a href=&quot;http://www.php.net/mysql_error&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;mysql_error&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;/p&amp;gt;'&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$msg_error&lt;/span&gt; .= &lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;mySQL error code :&amp;lt;/b&amp;gt; '&lt;/span&gt;.&lt;a href=&quot;http://www.php.net/mysql_errno&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;mysql_errno&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;/p&amp;gt;'&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$msg_query&lt;/span&gt; = &lt;span style=&quot;color: #0000ff;&quot;&gt;$this&lt;/span&gt;-&amp;gt;&lt;span style=&quot;color: #006600;&quot;&gt;layout&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$query&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$msg_error&lt;/span&gt; .= &lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;span style=&amp;quot;border: 1px solid #000000; width: 500px&amp;quot;&amp;gt;'&lt;/span&gt;.&lt;span style=&quot;color: #0000ff;&quot;&gt;$msg_query&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;/span&amp;gt;'&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;return&lt;/span&gt; errorMsg;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;/**&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;* Mise en forme du code mySQL&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;* @author LLaumgui&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;* @param (String) Liste des requêtes brute&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;* @param (String) Séparateur de requêtes&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;* @return (String) La liste des requêtes exécutées mise en forme&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; layout&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$text&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$separator&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;lt;br /&amp;gt;&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;$separator&lt;/span&gt; == &lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;br /&amp;gt;'&lt;/span&gt; || &lt;span style=&quot;color: #0000ff;&quot;&gt;$separator&lt;/span&gt; == &lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;br /&amp;gt;'&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$tab&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;' &amp;nbsp; &amp;nbsp; '&lt;/span&gt;; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#123;&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;$tab&lt;/span&gt; = &lt;span style=&quot;color: #ff0000;&quot;&gt;''&lt;/span&gt;; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$text&lt;/span&gt; = &lt;a href=&quot;http://www.php.net/preg_replace&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;preg_replace&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;'#SELECT&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\s&lt;/span&gt;(.+?)&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\s&lt;/span&gt;FROM&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\s&lt;/span&gt;#is'&lt;/span&gt; , &lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;span class=&amp;quot;debug_command&amp;quot;&amp;gt;&amp;lt;b&amp;gt;SELECT&amp;lt;/b&amp;gt;&amp;lt;/span&amp;gt; &lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\\&lt;/span&gt;1'&lt;/span&gt;.&lt;span style=&quot;color: #0000ff;&quot;&gt;$separator&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;span class=&amp;quot;debug_command&amp;quot;&amp;gt;&amp;lt;b&amp;gt;FROM&amp;lt;/b&amp;gt;&amp;lt;/span&amp;gt; '&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$text&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// SELECT xxx FROM&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$text&lt;/span&gt; = &lt;a href=&quot;http://www.php.net/preg_replace&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;preg_replace&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;'#INSERT INTO&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\s&lt;/span&gt;(.+?)&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\s&lt;/span&gt;VALUES&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\s&lt;/span&gt;#is'&lt;/span&gt; , &lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;span class=&amp;quot;debug_command&amp;quot;&amp;gt;&amp;lt;b&amp;gt;INSERT INTO&amp;lt;/b&amp;gt;&amp;lt;/span&amp;gt; &lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\\&lt;/span&gt;1'&lt;/span&gt;.&lt;span style=&quot;color: #0000ff;&quot;&gt;$separator&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;span class=&amp;quot;debug_command&amp;quot;&amp;gt;&amp;lt;b&amp;gt;VALUES&amp;lt;/b&amp;gt;&amp;lt;/span&amp;gt; '&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$text&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// INSERT xxx INTO&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$text&lt;/span&gt; = &lt;a href=&quot;http://www.php.net/preg_replace&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;preg_replace&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;'#UPDATE&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\s&lt;/span&gt;(.+?)&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\s&lt;/span&gt;SET&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\s&lt;/span&gt;#is'&lt;/span&gt; , &lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;span class=&amp;quot;debug_command&amp;quot;&amp;gt;&amp;lt;b&amp;gt;UPDATE&amp;lt;/b&amp;gt;&amp;lt;/span&amp;gt; &lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\\&lt;/span&gt;1'&lt;/span&gt;.&lt;span style=&quot;color: #0000ff;&quot;&gt;$separator&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;span class=&amp;quot;debug_command&amp;quot;&amp;gt;&amp;lt;b&amp;gt;SET&amp;lt;/b&amp;gt;&amp;lt;/span&amp;gt; '&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$text&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// UPDATE xxx SET&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$text&lt;/span&gt; = &lt;a href=&quot;http://www.php.net/preg_replace&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;preg_replace&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;'#DELETE FROM&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\s&lt;/span&gt;#is'&lt;/span&gt; , &lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;span class=&amp;quot;debug_command&amp;quot;&amp;gt;&amp;lt;b&amp;gt;DELETE FROM&amp;lt;/b&amp;gt;&amp;lt;/span&amp;gt; '&lt;/span&gt;, &lt;span style=&quot;color: #0000ff;&quot;&gt;$text&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#41;&lt;/span&gt;; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;// DELET FROM xxx&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #0000ff;&quot;&gt;$text&lt;/span&gt; = &lt;a href=&quot;http://www.php.net/preg_replace&quot;&gt;&lt;span style=&quot;color: #000066;&quot;&gt;preg_replace&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;'#&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\s&lt;/span&gt;LEFT JOIN&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\s&lt;/span&gt;(.+?)&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\s&lt;/span&gt;ON&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\s&lt;/span&gt;#is'&lt;/span&gt; , &lt;span style=&quot;color: #0000ff;&quot;&gt;$separator&lt;/span&gt;.&lt;span style=&quot;color: #0000ff;&quot;&gt;$tab&lt;/span&gt;.&lt;span style=&quot;color: #ff0000;&quot;&gt;'&amp;lt;span class=&amp;quot;debug_command&amp;quot;&amp;gt