<?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 - script</title>
  <link>http://www.llaumgui.com/</link>
  <description>Linux en général, Fedora en particulier...</description>
  <language>fr</language>
  <pubDate>Fri, 04 Jul 2008 15:07:50 +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>Un labo pour tester ezipb, le connecteur IPB pour eZ publish</title>
    <link>http://www.llaumgui.com/post/Un-labo-pour-tester-ezipb-le-connecteur-IPB-pour-eZ-publish</link>
    <guid isPermaLink="false">urn:md5:57e2a710ce2d1e502bd6a9ae181b9f82</guid>
    <pubDate>Wed, 26 Sep 2007 00:03:00 +0200</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>Développement web</category>
        <category>eZ Publish</category><category>ezipb</category><category>IPB</category><category>script</category><category>serveur</category>    
    <description>    &lt;p&gt;Comme je viens tout juste de finir un petit script permettant de configurer automatiquement un site web sur un serveur (création de la base de données &lt;a hreflang=&quot;fr&quot; href=&quot;http://www-fr.mysql.com/&quot; title=&quot;La Base de Données Open Source la plus Populaire au Monde&quot;&gt;MySQL&lt;/a&gt;, des répertoires, configuration des stats &lt;a href=&quot;http://awstats.sourceforge.net/&quot; hreflang=&quot;en&quot; title=&quot;Free real-time logfile analyzer to get advanced statistics (GNU GPL).&quot;&gt;Awstats&lt;/a&gt;, du vhost, etc...), j'en ai profité pour mettre en place un petit &lt;a href=&quot;http://labo.llaumgui.com/&quot; hreflang=&quot;fr&quot; rel=&quot;nofolow&quot;&gt;labo&lt;/a&gt; afin de pouvoir vous monter &lt;a href=&quot;http://trac.llaumgui.com/wiki/ezipb&quot; hreflang=&quot;fr&quot; title=&quot;ezipb|Connecteur IPB pour eZ publish&quot;&gt;ezipb&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Pour le moment, ça fait pas grand chose mais ça peut vous donner une idée de ce que sera mon intégration d'&lt;a hreflang=&quot;en&quot; href=&quot;http://www.invisionboard.com&quot;&gt;Invision Power Board&lt;/a&gt; (IPB pour les intimes) avec &lt;a hreflang=&quot;en&quot; href=&quot;http://ez.no&quot; title=&quot;eZ Publish Open Source Enterprise Content Management System&quot;&gt;eZ publish&lt;/a&gt; (eZ pour les intimes).&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;URL :&lt;/strong&gt; &lt;a href=&quot;http://labo.llaumgui.com/&quot; hreflang=&quot;fr&quot; rel=&quot;nofolow&quot;&gt;labo&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Login :&lt;/strong&gt; ezipb&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Mot de passe :&lt;/strong&gt; ezipb&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;&lt;ins&gt;Remarque&lt;/ins&gt; :&lt;/strong&gt; Pour ce qui est de mon script, il fera l'objet d'un prochain billet lors que j'aurais un peu mieux testé le truc.&lt;/em&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://www.llaumgui.com/post/Un-labo-pour-tester-ezipb-le-connecteur-IPB-pour-eZ-publish#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/Un-labo-pour-tester-ezipb-le-connecteur-IPB-pour-eZ-publish#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/359</wfw:commentRss>
      </item>
    
  <item>
    <title>Mise à jour automatique de Dotclear 2.0 et de ses plugins, à partir du SVN (update)</title>
    <link>http://www.llaumgui.com/post/Mise-a-jour-automatique-de-Dotclear-20-et-de-ses-plugins-a-partir-du-SVN-update</link>
    <guid isPermaLink="false">urn:md5:9e586f65e2f52fa9c3084d15cb60c04a</guid>
    <pubDate>Fri, 31 Aug 2007 20:01:00 +0200</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>Développement web</category>
        <category>Dotclear</category><category>script</category><category>Subversion</category>    
    <description>    &lt;p&gt;Je mets très souvent mon blog à jour à partir de &lt;a href=&quot;https://svn.dotclear.net/2.0/trunk&quot; hreflang=&quot;fr&quot;&gt;la dernière version SVN&lt;/a&gt; de &lt;a href=&quot;http://www.dotclear.net&quot; hreflang=&quot;fr&quot; title=&quot;DotClear est un outil idéal pour installer très rapidement son weblog sur son propre serveur&quot;&gt;Dotclear&lt;/a&gt; 2.0.
Jusqu'à présent, je faisais un &lt;code&gt;svn co&lt;/code&gt; sur ma machine locale, puis je virais les répertoires inutiles (&lt;code&gt;rm -rf `find ./ -name .svn`&lt;/code&gt;) et enfin j'envoyais le tout sur mon ftp.
On obtient alors une version de Dotclear à jour et sans fichiers .svn. Le revers de la médaille étant le temps passé à faire la manip'. Je me suis donc fais un petit script pour automatiser tout ça :&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Mise à jours des sources de Dotclear à partir du &lt;a href=&quot;http://fr.wikipedia.org/wiki/Subversion_(logiciel)&quot; hreflang=&quot;fr&quot; title=&quot;Subversion&quot;&gt;SVN&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Mise à jour et téléchargement de nouveaux plugins à partir du SVN de Dotclear.&lt;/li&gt;
&lt;li&gt;Mise à jour de la base de données (visite de la page d'admin).&lt;/li&gt;
&lt;li&gt;Vidage le cache.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Comme je suis un Geek très flémard et qui n'a peur de rien : j'ai mis le tout en tâche &lt;a href=&quot;http://fr.wikipedia.org/wiki/Cron&quot; hreflang=&quot;fr&quot;&gt;cron&lt;/a&gt;.&lt;/p&gt;

&lt;code class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#!/bin/bash&lt;/span&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;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# dc-svn-&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;co&lt;/span&gt; :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Mise à jour d&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'une installation Dotclear 2.0 à partir des sources du SVN.&lt;br /&gt;
#&lt;br /&gt;
# Dépendances requises :&lt;br /&gt;
#&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- subversion&lt;br /&gt;
#&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- curl&lt;br /&gt;
#&lt;br /&gt;
# Attention : L'&lt;/span&gt;utilisation de ce script permet de mettre à jour votre instance&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# de Dotclear à partir d&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'une version dite instable !&lt;br /&gt;
# Utiliser à vos risques et périls !&lt;br /&gt;
#&lt;br /&gt;
# Licence Dotclear : http://www.dotclear.net/license.html&lt;br /&gt;
#&lt;br /&gt;
# by Guillaume Kulakowski a.k.a LLaumgui &amp;lt;guillaume at llaumgui dot com&amp;gt;&lt;br /&gt;
# Version 2.0&lt;br /&gt;
#&lt;br /&gt;
###############################################################################&lt;br /&gt;
# This program is free software; you can redistribute it and/or&lt;br /&gt;
# modify it under the terms of the GNU General Public License&lt;br /&gt;
# as published by the Free Software Foundation; either version 2&lt;br /&gt;
# of the License, or (at your option) any later version.&lt;br /&gt;
#&lt;br /&gt;
# This program is distributed in the hope that it will be useful,&lt;br /&gt;
# but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br /&gt;
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. &amp;nbsp;See the&lt;br /&gt;
# GNU General Public License for more details.&lt;br /&gt;
#&lt;br /&gt;
# You should have received a copy of the GNU General Public License&lt;br /&gt;
# along with this program; if not, &lt;br /&gt;
# &amp;nbsp;- write to the Free Software&lt;br /&gt;
# &amp;nbsp; &amp;nbsp; &amp;nbsp; Foundation, Inc., 51 Franklin Street, Fifth Floor,&lt;br /&gt;
# &amp;nbsp; &amp;nbsp; &amp;nbsp; Boston, MA &amp;nbsp;02110-1301, USA.&lt;br /&gt;
# &amp;nbsp; - See http://www.gnu.org/licenses/gpl.html&lt;br /&gt;
###############################################################################&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
######################################&lt;br /&gt;
# Variables :&lt;br /&gt;
&lt;br /&gt;
# Chemin vers l'&lt;/span&gt;installation de Dotclear :&lt;br /&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;DC_CORE_PATH=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;/home/www.xxx.com/www&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Chemin vers les plugins de Dotclear :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;DC_PLUGIN_PATH=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$DC_CORE_PATH/plugins&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Chemin vers le cache :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;DC_CACHE_PATH=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$DC_CORE_PATH/cache&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Liste des plugins à récupérer à partir &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;du&lt;/span&gt; svn :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;DC_PLUGIN_LIST=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;antiflood commentsWikibar dayMode emailNotification gallery related sitemaps spamplemousse2&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Chemin vers votre administration &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;pour la requête de mise à jour&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;DC_URL=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;http://www.xxx.com/admin/&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;SVN_DC_URL=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;https://svn.dotclear.net/2.0/trunk&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;SVN_DC_PLUGIN_URL=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;https://svn.dotclear.net/2.0/plugins&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&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; &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;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# # # &amp;nbsp; /!\ On touche plus /!\ &amp;nbsp; # # #&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&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;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;######################################&lt;/span&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;# Mise à jour à partir &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;du&lt;/span&gt; SVN :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; svnCo&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;cd&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$1&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; svn &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;co&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$2&amp;quot;&lt;/span&gt; ./&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&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;# Mise à jour de la liste des plugins à partir &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;du&lt;/span&gt; svn :&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; svnPlugin &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;for&lt;/span&gt; plugin &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;in&lt;/span&gt; &lt;span style=&quot;color: #007800;&quot;&gt;$DC_PLUGIN_LIST&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;do&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: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; -e &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;############### &amp;nbsp;$plugin &amp;nbsp; ###############&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;br /&gt;
&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;# Création &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;du&lt;/span&gt; répertoire pour les nouveaux plugins :&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: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt; ! -d &lt;span style=&quot;color: #007800;&quot;&gt;$DC_PLUGIN_PATH&lt;/span&gt;/&lt;span style=&quot;color: #007800;&quot;&gt;$plugin&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;then&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: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Le répertoire $plugin n'existe pas !&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: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Création du répertoire $plugin.&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: #c20cb9; font-weight: bold;&quot;&gt;mkdir&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$DC_PLUGIN_PATH/$plugin&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: #000000; font-weight: bold;&quot;&gt;fi&lt;/span&gt;;&lt;br /&gt;
&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; svnCo &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$DC_PLUGIN_PATH/$plugin&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$SVN_DC_PLUGIN_URL/$plugin&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;done&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&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;# Mise à jour de la base par appel de l&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;'url de l'&lt;/span&gt;admin :&lt;br /&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; updateDB&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; curl &lt;span style=&quot;color: #007800;&quot;&gt;$DC_URL&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&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;# On vide le cache&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; cleanCache&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&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: #c20cb9; font-weight: bold;&quot;&gt;rm&lt;/span&gt; -rf &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$DC_CACHE_PATH/cbfeed&amp;quot;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;rm&lt;/span&gt; -rf &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$DC_CACHE_PATH/cbtpl&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;################################################################################&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;# &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;# &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Mise à jour de Dotclear à partir des sources SVN &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;# &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;################################################################################&amp;quot;&lt;/span&gt;&lt;br /&gt;
svnCo &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$DC_CORE_PATH&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$SVN_DC_URL&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; -e &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;################################################################################&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;# &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;# &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Mise à jour de la liste des plugins &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;# &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;################################################################################&amp;quot;&lt;/span&gt;&lt;br /&gt;
svnPlugin&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; -e &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;################################################################################&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;# &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;# &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Opérations de mise à jours &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;# &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;################################################################################&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; -e &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;### Mise à jour de la base de données ###&amp;quot;&lt;/span&gt;&lt;br /&gt;
updateDB&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; -e &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;### &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Vidage du cache &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;###&amp;quot;&lt;/span&gt;&lt;br /&gt;
cleanCache&lt;/code&gt;


&lt;p&gt;Je mets à disposition mon script (sous licence &lt;a href=&quot;http://fr.wikipedia.org/wiki/Licence_publique_g%C3%A9n%C3%A9rale_GNU&quot; hreflang=&quot;fr&quot; title=&quot;Licence publique générale GNU&quot;&gt;GPL&lt;/a&gt;) tout en précisant que son utilisation réfléchie ne pose pas de problème (pas plus qu'un &lt;a href=&quot;http://fr.wikipedia.org/wiki/Subversion_(logiciel)#Les_principales_commandes_de_Subversion&quot; hreflang=&quot;fr&quot; title=&quot;Les principales commandes de Subversion&quot;&gt;checkout&lt;/a&gt;) mais qu'une mise à jour automatisée au moment où la révision Subversion plante (ça peut arriver), fait buger le site jusqu'à la mise à jour suivante...&lt;/p&gt;


&lt;p&gt;&lt;strong&gt;Mise à jour :&lt;/strong&gt; Métro-sexualisation du code pour un rapport par mail (crontab) plus lisible.&lt;/p&gt;</description>
    
          <enclosure url="http://www.llaumgui.com/public/files/dc-svn-co"
      length="4732" type="text/plain" />
    
    
          <comments>http://www.llaumgui.com/post/Mise-a-jour-automatique-de-Dotclear-20-et-de-ses-plugins-a-partir-du-SVN-update#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/Mise-a-jour-automatique-de-Dotclear-20-et-de-ses-plugins-a-partir-du-SVN-update#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/346</wfw:commentRss>
      </item>
    
  <item>
    <title>Serveur mail postfix / postfix-mysql / Dovecot / RoundCube / spamassassin sous CentOS 5</title>
    <link>http://www.llaumgui.com/post/Serveur-mail-postfix-/-postfix-mysql-/-Dovecot-/-RoundCube-/-spamassassin-sous-CentOS-5</link>
    <guid isPermaLink="false">urn:md5:b1b9999fe9fd6ca13d6eab35caa6ea3a</guid>
    <pubDate>Mon, 06 Aug 2007 21:24:00 +0200</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>Linux</category>
        <category>CentOS</category><category>centosplus</category><category>Dedibox</category><category>Dovecot</category><category>EPEL</category><category>IMAP</category><category>postfix</category><category>postfix-mysql</category><category>RoundCube</category><category>script</category><category>serveur</category><category>spamassassin</category><category>spb-box</category><category>webmail</category><category>yum</category>    
    <description>&lt;p&gt;Après le passage de &lt;a href=&quot;http://www.scenario-paintball.com/&quot; hreflang=&quot;fr&quot; title=&quot;Le repaire des fougères&quot;&gt;Scenario-PaintBall&lt;/a&gt; sur un serveur dédié (spb-box), je me suis lancé dans la configuration du serveur mail. Pour rappel, le serveur est une &lt;a href=&quot;http://www.dedibox.fr/&quot; hreflang=&quot;fr&quot; title=&quot;Votre serveur dédié pour 29,99 Euros / mois trafic illimité&quot;&gt;dedibox&lt;/a&gt; sous &lt;a href=&quot;http://www.centos.org/&quot; hreflang=&quot;en&quot; title=&quot;The Community ENTerprise Operating System&quot;&gt;CentOS&lt;/a&gt; 5.&lt;br /&gt;
Afin de pouvoir gérer plusieurs domaines et plusieurs comptes facilement, postfix est configuré en multi-domaines et virtual-user et afin d'ajouter facilement des comptes, les informations sont stockées en base &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; via postfix-mysql.&lt;/p&gt;    &lt;h2&gt;Architecture du serveur mail&lt;/h2&gt;

&lt;p&gt;Connaissant bien &lt;a href=&quot;http://www.postfix.org/&quot; hreflang=&quot;en&quot;&gt;postfix&lt;/a&gt; (personnellement et professionnellement, bien que nos derniers serveurs &lt;a href=&quot;http://www.kaliop.com&quot; hreflang=&quot;fr&quot;&gt;au taf&lt;/a&gt; soient sous &lt;a href=&quot;http://www.exim.org/&quot; hreflang=&quot;en&quot; title=&quot;Internet Mailer&quot;&gt;Exim&lt;/a&gt;) et ayant déjà configuré postfix pour l'envoi de mail via php, c'est donc tout naturellement que j'ai retenu cette solution couplée à un &lt;a href=&quot;http://www.dovecot.org/&quot; hreflang=&quot;en&quot; title=&quot;Secure IMAP server&quot;&gt;Dovecot,&lt;/a&gt; un &lt;a href=&quot;http://spamassassin.apache.org/&quot; hreflang=&quot;en&quot; title=&quot;The Apache SpamAssassin Project&quot;&gt;spamassassin&lt;/a&gt; et un webmail sous le très prometteur &lt;a href=&quot;http://roundcube.net/&quot; hreflang=&quot;en&quot; title=&quot;Webmail Project&quot;&gt;RoundCube&lt;/a&gt;.&lt;/p&gt;


&lt;h2&gt;postfix&lt;/h2&gt;

&lt;p&gt;Bien que pour le moment il n'y ai qu'un seul domaine géré par le serveur, j'ai choisis de faire une configuration multi-domaines et virtual-user (sans passer par des comptes unix).&lt;br /&gt;
Les mails sont donc dans un compte Unix unique : vbox; et ils sont stockés dans un arborescence du type : /home/vbox/domain/compte.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://postfix.traduc.org&quot; hreflang=&quot;fr&quot;&gt;Documentation de Postfix en français&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://postfix.traduc.org/index.php/VIRTUAL_README.html#virtual_mailbox&quot; hreflang=&quot;fr&quot;&gt;Configuration sur laquel je me suis basé&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Je mets &lt;a href=&quot;http://www.llaumgui.com/public/files/postfix-centos/main.cf&quot; hreflang=&quot;fr&quot;&gt;mon fichier main.cf&lt;/a&gt; en annexe.&lt;/p&gt;


&lt;h2&gt;postfix-mysql et CentOS&lt;/h2&gt;

&lt;p&gt;Alors là j'ai perdu pas mal de temps. Le postfix de CentOS n'est pas compilé avec l'option MySQL et il n'y a pas de paquet postfix-mysql pour CentOS ! Heureusement &lt;a href=&quot;http://www.google.fr&quot; hreflang=&quot;fr&quot;&gt;Google&lt;/a&gt; est mon ami et j'ai trouvé la solution : prendre le postfix de &lt;a href=&quot;http://wiki.centos.org/Repositories/CentOSPlus?highlight=%28centosplus%29&quot; hreflang=&quot;en&quot; title=&quot;The CentOSPlus Repository&quot;&gt;centosplus&lt;/a&gt; (présent de base dans CentOS mais pas activé par défaut) :&lt;/p&gt;

&lt;code class=&quot;bash&quot;&gt;yum -–&lt;span style=&quot;color: #007800;&quot;&gt;enablerepo=&lt;/span&gt;centosplus update postfix&lt;/code&gt;


&lt;p&gt;Pour éviter de mettre à jour postfix à partir de &lt;em&gt;updates&lt;/em&gt; j'ai juste rajouté postfix* dans la liste des paquets exclus (&lt;a href=&quot;http://www.llaumgui.com/public/files/postfix-centos/CentOS-Base.repo&quot; hreflang=&quot;fr&quot;&gt;fichier .repo en annexe&lt;/a&gt;). Comme j'ai activé centosplus par défaut, j'ai aussi exclus le kernel de centosplus pour privilégier celui d'updates et ainsi éviter les problèmes.&lt;/p&gt;


&lt;h2&gt;Postfix-mysql&lt;/h2&gt;

&lt;p&gt;Ce qui est génial avec postfix-mysql, c'est qu'on construit ses requêtes ! On peu donc attaquer n'importe quel structure de base existante ou en faire une soit même. J'ai mis en annexe mes fichiers de conf' ainsi que la structure de ma base.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://postfix.traduc.org/index.php/MYSQL_README.html&quot; hreflang=&quot;fr&quot; title=&quot;Howto MySQL Postfix&quot;&gt;Page dans la doc francophone&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.llaumgui.com/public/files/postfix-centos/main.cf&quot; hreflang=&quot;fr&quot;&gt;Tutoriel sur lequel je me suis basé&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;Dovecot&lt;/h2&gt;

&lt;p&gt;Maintenant que les mails sont sur le serveur, faudrait pouvoir les lire ! J'ai donc utilisé l'excellent Dovecot pour me faire un serveur &lt;a href=&quot;http://fr.wikipedia.org/wiki/IMAP&quot; hreflang=&quot;fr&quot; title=&quot;Internet Message Access Protocol&quot;&gt;IMAP&lt;/a&gt;.&lt;br /&gt;
Sa configuration est simple, je me suis basé sur &lt;a href=&quot;http://blog.beneth.fr/index.php?post/2007/04/08/Installer-Postfix-Maildrop-dovecot-avec-une-gestion-Mysql-pour-des-comptes-Mails-Virtuels&quot; hreflang=&quot;fr&quot; title=&quot;Installer Postfix + Maildrop, Comptes Virtuels avec gestion Mysql&quot;&gt;ce tutoriel&lt;/a&gt;.&lt;/p&gt;


&lt;p&gt;Afin de pouvoir attaquer le serveur mail avec un client du type &lt;a href=&quot;http://www.mozilla-europe.org/fr/products/thunderbird/&quot; hreflang=&quot;fr&quot;&gt;ThunderBird&lt;/a&gt;, ne pas oublier d'ouvrir le port IMAP, le 143 (perso, je passe par le &lt;a href=&quot;http://fr.wikipedia.org/wiki/Tui&quot; hreflang=&quot;fr&quot; title=&quot;Text User Interface &quot;&gt;tui&lt;/a&gt; system-config-securitylevel-tui).&lt;/p&gt;


&lt;h2&gt;RoundCube&lt;/h2&gt;

&lt;p&gt;Excellent et très prometteur projet encore au stade de la O.1 RC1 et disponible dans le &lt;a href=&quot;http://fedoraproject.org/wiki/EPEL&quot; hreflang=&quot;en&quot;&gt;dépot EPEL&lt;/a&gt;. Ça configuration passe comme une lettre à la poste !&lt;/p&gt;


&lt;h2&gt;Spamassassin&lt;/h2&gt;

&lt;p&gt;Pour installer spamassassin rien de tel qu'un petit &lt;code&gt;yum install spamassassin&lt;/code&gt; (installation), suivi d'un &lt;code&gt;service spamassassin start&lt;/code&gt;  (démarrage du service) ainsi que d'un &lt;code&gt;chkconfig spamassassin on&lt;/code&gt; (lancer au démarrage) et surtout &lt;a href=&quot;http://wiki.apache.org/spamassassin/IntegratedSpamdInPostfix?highlight=%28postfix%29&quot; hreflang=&quot;en&quot; title=&quot;Integrating SpamAssassin into Postfix using spamd&quot;&gt;une lecture de la doc&lt;/a&gt;.&lt;/p&gt;


&lt;h2&gt;Script de création de comptes mail&lt;/h2&gt;

&lt;p&gt;Histoire de créer facilement des comptes mails, je me suis fait 3 petits scripts tout simples que je vous livre en tant que démo.&lt;/p&gt;


&lt;p&gt;&lt;em&gt;&lt;strong&gt;&lt;ins&gt;Remarque&lt;/ins&gt; :&lt;/strong&gt; Ces script sont appelés en root et j'ai un fichier /root/.my.cf contenant le mot de passe MySQL du root, ce mot de pase ne m'est donc plus demandé.&lt;/em&gt;&lt;/p&gt;</description>
    
          <enclosure url="http://www.llaumgui.com/public/files/postfix-centos/main.cf"
      length="1343" type="text/plain" />
          <enclosure url="http://www.llaumgui.com/public/files/postfix-centos/CentOS-Base.repo"
      length="2423" type="text/plain" />
          <enclosure url="http://www.llaumgui.com/public/files/postfix-centos/mysql_transport"
      length="125" type="text/plain" />
          <enclosure url="http://www.llaumgui.com/public/files/postfix-centos/mysql_virtual"
      length="117" type="text/plain" />
          <enclosure url="http://www.llaumgui.com/public/files/postfix-centos/mysql_virtual_mailbox"
      length="134" type="text/plain" />
          <enclosure url="http://www.llaumgui.com/public/files/postfix-centos/mysql_virtual_uid"
      length="114" type="text/plain" />
          <enclosure url="http://www.llaumgui.com/public/files/postfix-centos/mysql_virtual_gid"
      length="115" type="text/plain" />
          <enclosure url="http://www.llaumgui.com/public/files/postfix-centos/mailadd_mailbox"
      length="1816" type="text/plain" />
          <enclosure url="http://www.llaumgui.com/public/files/postfix-centos/mailadd_redirect"
      length="1670" type="text/plain" />
          <enclosure url="http://www.llaumgui.com/public/files/postfix-centos/maildel_redirect"
      length="1629" type="text/plain" />
          <enclosure url="http://www.llaumgui.com/public/files/postfix-centos/mail_server.sql"
      length="2012" type="text/plain" />
    
    
          <comments>http://www.llaumgui.com/post/Serveur-mail-postfix-/-postfix-mysql-/-Dovecot-/-RoundCube-/-spamassassin-sous-CentOS-5#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/Serveur-mail-postfix-/-postfix-mysql-/-Dovecot-/-RoundCube-/-spamassassin-sous-CentOS-5#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/335</wfw:commentRss>
      </item>
    
  <item>
    <title>Script de conversion vidéo au format des Meizu M3 &amp; M6 via Nautilus Actions</title>
    <link>http://www.llaumgui.com/post/Script-de-conversion-video-au-format-des-Meizu-M3-M6-via-Nautilus-Actions</link>
    <guid isPermaLink="false">urn:md5:1d0d82c815f85fed50fec61381702d54</guid>
    <pubDate>Sun, 27 May 2007 23:14:00 +0200</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>Linux</category>
        <category>ffmpeg</category><category>Meizu M3</category><category>Nautilus Action</category><category>script</category>    
    <description>    &lt;p&gt;Suite à &lt;a href=&quot;http://www.meizume.com/showthread.php?t=1936&quot; hreflang=&quot;fr&quot; title=&quot;Encoder une video sous linux&quot;&gt;une réflexion&lt;/a&gt; sur les forums de &lt;a href=&quot;http://www.meizume.com/&quot; hreflang=&quot;en&quot; title=&quot;Fansite and Forum for Meizu MP3 Players&quot;&gt;Meizu Me&lt;/a&gt;, j'ai adapté &lt;a href=&quot;http://www.llaumgui.com/post/Version-11-de-mon-script-de-convertion-au-format-FLV-via-Nautilus-Action&quot; hreflang=&quot;fr&quot; title=&quot;Version 1.1 de mon script de convertion au format FLV via Nautilus Action&quot;&gt;mon script de conversion flv via Nautilus Actions&lt;/a&gt; pour convertir au format des Meizu M3 et M6.&lt;/p&gt;
&lt;p&gt;Le kit se compose :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;D'une image pour votre menu contextuel (à mettre dans ~/.icons).&lt;/li&gt;
&lt;li&gt;D'un fichier d'importations Nautilus Actions.&lt;/li&gt;
&lt;li&gt;D'un script shell (à mettre dans ~/bin/).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Important :&lt;/strong&gt;
Le script est réglé pour un Meizu M6, processeurs de M3, commentez la ligne 38 et décommentez la 39.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Dépendances :&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;ffmpeg&lt;/li&gt;
&lt;li&gt;zenity&lt;/li&gt;
&lt;li&gt;nautilus-actions&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
Ensuite pour convertir une vidéo au format adéquat, suffit de faire un clic droit.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;PS : Comme je suis une buse, je me suis rendu compte que le pack 1.1 du script de conversion flv ne comportait pas le bon script shell ;-). Je publie donc la 1.1.1 qui est une vrai 1.1 (toujours dur les numéros de versions).&lt;/em&gt;&lt;/p&gt;</description>
    
          <enclosure url="http://www.llaumgui.com/public/files/convert2flv_1.1.1.tar.gz"
      length="11678" type="application/x-gzip" />
          <enclosure url="http://www.llaumgui.com/public/files/convert2Meizu_1.0.tar.gz"
      length="11394" type="application/x-gzip" />
    
    
          <comments>http://www.llaumgui.com/post/Script-de-conversion-video-au-format-des-Meizu-M3-M6-via-Nautilus-Actions#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/Script-de-conversion-video-au-format-des-Meizu-M3-M6-via-Nautilus-Actions#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/206</wfw:commentRss>
      </item>
    
  <item>
    <title>Version 1.1 de mon script de convertion au format FLV via Nautilus Action</title>
    <link>http://www.llaumgui.com/post/Version-11-de-mon-script-de-convertion-au-format-FLV-via-Nautilus-Action</link>
    <guid isPermaLink="false">urn:md5:6996af722ce551df149391fbeaa9220d</guid>
    <pubDate>Fri, 20 Apr 2007 21:53:00 +0200</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>Linux</category>
        <category>flv</category><category>Nautilus Action</category><category>script</category>    
    <description>    &lt;p&gt;Une petite mise à jour de &lt;a href=&quot;http://www.llaumgui.com/post/Convertir-des-videos-en-en-flv-avec-Nautilus-Action&quot; title=&quot;Convertir des vidéos en en flv avec Nautilus Action&quot; hreflang=&quot;fr&quot;&gt;mon script de conversion&lt;/a&gt; vers le format &lt;a href=&quot;http://fr.wikipedia.org/wiki/Format_ferm%C3%A9&quot; title=&quot;Format fermé sur Wikipédia&quot; hreflang=&quot;fr&quot;&gt;caca-proprio-fermé&lt;/a&gt; qui a le vent en poupe : le &lt;a href=&quot;http://fr.wikipedia.org/wiki/FLV&quot; hreflang=&quot;fr&quot; title=&quot;Flash Video sur Wikipédia&quot;&gt;flv&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Parmi les quelques (en fait 2, mais dire quelques peut faire croire que j'ai vachement taffé dessus ;-)) nouveautés :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Possibilité de ré-encoder le flv (modification du fichier d'import de &lt;a href=&quot;http://www.grumz.net/&quot; hreflang=&quot;en&quot; title=&quot;A Lump in the World Wide Soup&quot;&gt;Nautilus Actions&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;Boite affichant le débug une fois la conversion achevée.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Pour la doc, faut lire le &lt;em&gt;README&lt;/em&gt;, pour la licence, c'est le &lt;em&gt;LICENCE&lt;/em&gt; (GPL v2), pour l'installation automatique... J'ai la flemme ;-).&lt;/p&gt;</description>
    
          <enclosure url="http://www.llaumgui.com/public/files/convert2flv_1.1.1.tar.gz"
      length="11678" type="application/x-gzip" />
    
    
          <comments>http://www.llaumgui.com/post/Version-11-de-mon-script-de-convertion-au-format-FLV-via-Nautilus-Action#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/Version-11-de-mon-script-de-convertion-au-format-FLV-via-Nautilus-Action#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/187</wfw:commentRss>
      </item>
    
  <item>
    <title>Version finale du script de migration de Xoops vers punBB</title>
    <link>http://www.llaumgui.com/post/Version-finale-du-script-de-migration-de-Xoops-vers-punBB</link>
    <guid isPermaLink="false">urn:md5:46a9fa1a319a94ef83bc9cfe4297b6ca</guid>
    <pubDate>Sun, 17 Sep 2006 22:34:00 +0200</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>Développement web</category>
        <category>fedora-fr</category><category>php</category><category>PunBB</category><category>script</category><category>Xoops</category>    
    <description>Quelques semaines après le &lt;a href=&quot;http://www.llaumgui.com/post/Reflexion-sur-Fedora-France-Xoops-et-lhebergement&quot; hreflang=&quot;fr&quot; title=&quot;Fedora-France Xoops et l'hebergement&quot;&gt;lancement du débat&lt;/a&gt; et le &lt;a href=&quot;http://www.llaumgui.com/post/Script-de-migration-de-Xoops-vers-punBB&quot; hreflang=&quot;fr&quot; title=&quot;Script de migration de Xoops vers punBB&quot;&gt;début du projet&lt;/a&gt;, je viens de terminer mon script de migration de &lt;a hreflang=&quot;fr&quot; href=&quot;http://www.xoops.org&quot;&gt;Xoops&lt;/a&gt; vers &lt;a hreflang=&quot;fr&quot; href=&quot;http://www.punbb.org/&quot;&gt;punBB&lt;/a&gt;. Ce script migre les données d'un site sous Xoops muni d'un forum CBB pour les transférer dans l'interface de punBB.    &lt;h2&gt;Pré requis :&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.php.net&quot; hreflang=&quot;en&quot; title=&quot;PHP&quot;&gt;php4&lt;/a&gt; ou supérieur.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.php.net/manual/fr/features.commandline.php&quot; hreflang=&quot;fr&quot; title=&quot;Utiliser PHP en ligne de commande&quot;&gt;php-cli&lt;/a&gt; pour lancer le script en ligne de commande.&lt;br /&gt;
Je n'ai pas testé avec un navigateur mais ça doit marcher quand même ;).&lt;/li&gt;
&lt;li&gt;Quelques connaissances en php.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Licence :&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;http://www.gnu.org/licenses/gpl.html&quot; hreflang=&quot;fr&quot; title=&quot;Licence GPL&quot;&gt;Gnu/GPL&lt;/a&gt;, vous pouvez donc l'adapter au besoin, il est fait pour ça.&lt;/p&gt;
&lt;h2&gt;Concrètement ce script convertie :&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Les groupes de membres :&lt;/strong&gt; Les permissions seront les mêmes pour tous les groupes.&lt;br /&gt;
Elles seront donc à modifier par la suite.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Les membres :&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;Xoops autorisant plusieurs groupes pour un seul membre, ce que punBB ne fais pas, les membres sont tous mis dans le même groupe, membres (id=4).&lt;/li&gt;
&lt;li&gt;Autre petites subtilité de punBB, le membre à l'identifiant 1 est l'invité, il faut donc ne pas avoir de membre avec un uid=1 sous Xoops. Si c'est votre cas, vous devrez faire une petite moulinette en modifiant mon script.&lt;/li&gt;
&lt;li&gt;Les avatars, il faut tous les mettre dans le bon dossiers (img/avatars).&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Les catégories&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Les forums&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Les topics&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Les postes :&lt;/strong&gt; Ca c'est le gros morceau, il y a un traitement par lots pour les grosse bases.&lt;/li&gt;
&lt;/ul&gt;</description>
    
          <enclosure url="http://www.llaumgui.com/public/files/xoops2punbb.zip"
      length="6479" type="application/zip" />
    
    
          <comments>http://www.llaumgui.com/post/Version-finale-du-script-de-migration-de-Xoops-vers-punBB#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/Version-finale-du-script-de-migration-de-Xoops-vers-punBB#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/96</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>Script de sauvegarde sur serveur</title>
    <link>http://www.llaumgui.com/post/script-de-sauvegarde-sur-serveur</link>
    <guid isPermaLink="false">urn:md5:8db1eeee7f3ae089bc8cfb85d1121072</guid>
    <pubDate>Thu, 25 Aug 2005 23:38:00 +0000</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>Linux</category>
        <category>backup</category><category>Fedora</category><category>script</category><category>serveur</category>    
    <description>&lt;p&gt;Possédant 2 PCs (une station de travail et un serveur, tout deux sous Linux &lt;a href=&quot;http://fedora.redhat.com&quot; hreflang=&quot;us&quot;&gt;Fedora Core&lt;/a&gt;), je désire effectuer une sauvegarde de ma station sur mon serveur.
J'ai donc mi au point un script effectuant la connexion sur le serveur, la sauvegarde ainsi que la déconnexion. Ce script peut être appelé en ligne de commande (nécessite les droits de root) ou utilisé par une tache &lt;a href=&quot;http://fr.wikipedia.org/wiki/Cron&quot; hreflang=&quot;fr&quot; title=&quot;Cron&quot;&gt;Cron&lt;/a&gt;.&lt;/p&gt;    &lt;p&gt;La sauvegarde se fait en 3 étapes :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Etape 1 :&lt;/strong&gt; Connexion au serveur (192.168.1.1) via &lt;em&gt;mount -t smbfs&lt;/em&gt;. En cas d'erreur, le script est arrété.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Etape 2 :&lt;/strong&gt; Création de l'archive&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Etape 3 :&lt;/strong&gt; Déconnexion du serveur (umount).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Je vous livre le script qui demande quelques adaptations en fonction de vos fichiers ou répertoires à sauvegarder.&lt;/p&gt;

&lt;code class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#!/bin/sh&lt;/span&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;#&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Sauvegarde sur serveur&lt;/span&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;# by Guillaume Kulakowski a.k.a LLaumgui &amp;lt;guillaume at llaumgui dot com&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Version &lt;span style=&quot;color: #000000;&quot;&gt;1.0&lt;/span&gt;&lt;/span&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;###############################################################################&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# This program is &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;free&lt;/span&gt; software; you can redistribute it and/or&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# modify it under the terms of the GNU General Public License&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;as&lt;/span&gt; published by the Free Software Foundation; either version &lt;span style=&quot;color: #000000;&quot;&gt;2&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# of the License, or &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;at your option&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; any later version.&lt;/span&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;# This program is distributed &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;in&lt;/span&gt; the hope that it will be useful,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. &amp;nbsp;See the&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# GNU General Public License &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;for&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;more&lt;/span&gt; details.&lt;/span&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;# You should have received a copy of the GNU General Public License&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# along with this program; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; not, &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# &amp;nbsp;- &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;write&lt;/span&gt; to the Free Software&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Foundation, Inc., &lt;span style=&quot;color: #000000;&quot;&gt;51&lt;/span&gt; Franklin Street, Fifth Floor, Boston, MA &amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;02110&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;-1301&lt;/span&gt;, USA.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- See http://www.gnu.org/licenses/gpl.html&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;###############################################################################&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;------------------------------------------------------&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;- Sauvegarde système&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;------------------------------------------------------&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Etape 1 : Connection au serveur de backup&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; ! &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;mount&lt;/span&gt; -t smbfs -o &lt;span style=&quot;color: #007800;&quot;&gt;ip=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;192.168&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.1&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.1&lt;/span&gt;,&lt;span style=&quot;color: #007800;&quot;&gt;username=&lt;/span&gt;xxx,&lt;span style=&quot;color: #007800;&quot;&gt;password=&lt;/span&gt;xxx //&lt;span style=&quot;color: #000000;&quot;&gt;192.168&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.1&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;.1&lt;/span&gt;/serv_backup /mnt/backup/ ;&lt;br /&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;exit&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;fi&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;------------------------------------------------------&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Etape 2 : Création de l'archive&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;date=&lt;/span&gt;`&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;date&lt;/span&gt; +%m%d%y`;&lt;br /&gt;
&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;tar&lt;/span&gt; -cf /mnt/backup/backup_&lt;span style=&quot;color: #007800;&quot;&gt;$&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;date&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/span&gt;.&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;tar&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;/etc/&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;/home/llaumgui/&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;/usr/share/themes/&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;/usr/share/icons/&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;/usr/share/pixmaps/&amp;quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;------------------------------------------------------&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Etape 3 : Déconnection du serveur&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;umount&lt;/span&gt; /mnt/backup&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;------------------------------------------------------&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;### Fin de la sauvegarde &amp;lt;img src=&amp;quot;&lt;/span&gt;/themes/default/smilies/smile.png&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot; alt=&amp;quot;&lt;/span&gt;:&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot; class=&amp;quot;&lt;/span&gt;smiley&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot; /&amp;gt; ###&amp;quot;&lt;/span&gt;;&lt;/code&gt;</description>
    
    
    
          <comments>http://www.llaumgui.com/post/script-de-sauvegarde-sur-serveur#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/script-de-sauvegarde-sur-serveur#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/38</wfw:commentRss>
      </item>
    
</channel>
</rss>