<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>Geek Noise</title> <atom:link href="http://www.geeknoise.com/feed/" rel="self" type="application/rss+xml" /><link>http://www.geeknoise.com</link> <description>Développement web &#38; Sécurité Informatique</description> <lastBuildDate>Tue, 24 Aug 2010 15:40:25 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>Installer des logiciels sur Ubuntu</title><link>http://www.geeknoise.com/installer-des-programmes-sur-ubuntu/</link> <comments>http://www.geeknoise.com/installer-des-programmes-sur-ubuntu/#comments</comments> <pubDate>Wed, 18 Aug 2010 17:56:40 +0000</pubDate> <dc:creator>ly3s</dc:creator> <category><![CDATA[Astuces]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[gnome]]></category> <category><![CDATA[installation]]></category> <category><![CDATA[logiciels]]></category> <category><![CDATA[programmes]]></category> <category><![CDATA[ubuntu]]></category><guid isPermaLink="false">http://www.geeknoise.com/?p=757</guid> <description><![CDATA[Si vous êtes un ancien utilisateur Windows, et que vous êtes passé à Ubuntu, vous vous demandez sûrement comment installer un logiciel sur cette fabuleuse distribution ]]></description> <content:encoded><![CDATA[<p>Si vous êtes un ancien utilisateur Windows, et que vous êtes passé à Ubuntu, vous vous demandez sûrement comment installer un logiciel sur cette fabuleuse distribution</p><h3>Introduction</h3><p>Sur Windows, pour installer un logiciel, il faut chercher en moins 1 minute sur Google le nom du logiciel, puis le télécharger, le décompresser, et enfin l&#8217;installer !</p><p>Mais sur Ubuntu, et toutes les distributions Linux, c&#8217;est complétement différent, et beaucoup plus rapide !</p><h3>Installation simple</h3><p>Vous avez deux solutions, une méthode graphique, et une autre en mode console.</p><p><strong>Mode graphique</strong></p><p>C&#8217;est très simple et intuitif, rendez-vous dans <strong>Applications → Logithèque Ubuntu</strong></p><p><img src="http://www.geeknoise.com/cdn/wp-content/uploads/2010/08/installerlogiciel1.png" alt="Installer un logiciel" width="650" /></p><p>Vous pouvez voir que les applications sont classées par catégories et téléchargeables en un clic !</p><p>Disons maintenant que l&#8217;on veuille installer le jeu Tetravex (jeu de casse tête), on entre le nom du logiciel, et on clique sur installer.</p><p><img src="http://www.geeknoise.com/cdn/wp-content/uploads/2010/08/installerlogiciel2.png" alt="Installer un logiciel" width="650" /></p><p>Dans &laquo;&nbsp;En cours&nbsp;&raquo; ça affiche les actions en cours (installations, désinstallations, et mises à jour), vous pourrez voir la progression.</p><p><img src="http://www.geeknoise.com/cdn/wp-content/uploads/2010/08/installerlogiciel3.png" alt="Installer un logiciel" width="650" /></p><p>Une fois installée, l&#8217;application sera placée toute seule, et dans le bon menu ! (ici Applications → Jeux) <img src='http://www.geeknoise.com/cdn/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p><p><img src="http://www.geeknoise.com/cdn/wp-content/uploads/2010/08/installerlogiciel4.png" alt="Installer un logiciel" /></p><p><strong>Mode console</strong></p><p>Maintenant que vous connaissez l&#8217;installation en mode graphique, il vous sera plus rapide d&#8217;installer une application en mode console. Pour ce faire, ouvrez une console, et entrez cette commande :</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> cheese</pre></div></div><p><img src="http://www.geeknoise.com/cdn/wp-content/uploads/2010/08/installerlogiciel5.png" alt="Installer un logiciel" width="650" /></p><p><strong>sudo: </strong>En effet, un utilisateur &laquo;&nbsp;simple&nbsp;&raquo; ne peut pas installer de logiciel, il faut donc se connecter en super-utilisateur pour avoir tous les droits <img src='http://www.geeknoise.com/cdn/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p><strong>apt-get:</strong> c&#8217;est le programme qui gère les paquets</p><p><strong>install:</strong> c&#8217;est la commande passée à apt-get, pour qu&#8217;il sache s&#8217;il doit installer, désinstaller, mettre à jour&#8230;etc.</p><p><strong>cheese: </strong>c&#8217;est le nom du paquet à installer (ce logiciel gère les webcams <img src='http://www.geeknoise.com/cdn/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> )</p><h3>Les fichiers .deb</h3><p>Si vous n&#8217;avez pas Internet chez vous, ces fichiers vous seront très utiles !</p><p>Vous cherchez le fichier .deb sur Google, un peu comme comme vous le faites pour Windows avec les .exe, et vous l&#8217;installez en double cliquant dessus.</p><p>Mais il y a un probèleme</p><p>Maintenant, si vous voulez savoir comment tout ça marche, continuez le tuto !</p><p><strong>En console</strong></p><p>Petite précision, si vous voulez les installer en console, voilà la ligne:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-i</span> paquet.deb</pre></div></div><h3>Les dépôts</h3><p>Les dépôts (ou <strong>repositories,</strong> en  anglais), est un système qui a été  inventé afin de vous éviter de  parcourir Internet pour trouver des  paquets pour vos logiciel. À l&#8217;aide  d&#8217;un gestionnaire de paquets (comme apt-get qu&#8217;on vient de voir, par  exemple), vous pouvez récupérer tous les paquets dont vous avez besoin,  ainsi que toutes leurs dépendances (on en reparlera ) à partir d&#8217;un <strong>serveur </strong>!</p><p><strong>Elle est où, la liste ?</strong></p><p>Dans Système → Administration → Sources de logiciels</p><p><a href="http://doc.ubuntu-fr.org/depots">[En savoir plus sur les dépôts]</a></p><h3>Les dépendances</h3><p>Chaque programme installé nécessite des dépendances, sans elles, le programme ne pourra pas fonctionner !</p><p>Si vous installez avec apt-get (ou aptitude), vous n&#8217;avez pas de soucis à vous faire, puisque il gère parfaitement les dépendances.</p><p>Par contre si vous installez à l&#8217;aider des .deb, vous devez savoir ou trouver les dépendances.</p><p>Rien de plus facile, vous cherchez (sur Google, toujours) l&#8217;<strong>arbre des dépendances</strong> fourni par le développeur. Vous les mettez toutes dans le même dossier, puis dans un terminal :</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-i</span> <span style="color: #000000; font-weight: bold;">*</span>.deb</pre></div></div><p class="note">* (étoile) est un joker qui veut dire &laquo;&nbsp;tout&nbsp;&raquo;</p><p>Voilà, on a fait le tour !</p><p>Ce tutoriel est là pour aider un ami, mais il vous sera certainement utile à tous !</p><div id="fb-like" style=""><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.geeknoise.com/installer-des-programmes-sur-ubuntu/&amp;layout=standard&amp;show_faces=true&amp;width=640&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:640px; height:px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://www.geeknoise.com/installer-des-programmes-sur-ubuntu/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>Sublimez votre interface Ubuntu</title><link>http://www.geeknoise.com/sublimer-interface-ubuntu/</link> <comments>http://www.geeknoise.com/sublimer-interface-ubuntu/#comments</comments> <pubDate>Sun, 15 Aug 2010 15:06:37 +0000</pubDate> <dc:creator>ly3s</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[gnome]]></category> <category><![CDATA[interface]]></category> <category><![CDATA[thèmes]]></category> <category><![CDATA[ubuntu]]></category><guid isPermaLink="false">http://www.geeknoise.com/?p=740</guid> <description><![CDATA[Salut tout le monde, si vous tournez sur Ubuntu, vous savez certainement que c'est customizable a 100%  :lol: !Ce que nous allons faire, c'est de transformer votre vieux bureau, en belle interface conviviale, tout en restant dans le style simple de Gnome.]]></description> <content:encoded><![CDATA[<p>Salut tout le monde, si vous tournez sur Ubuntu, vous savez certainement que c&#8217;est customizable a 100% <img src='http://www.geeknoise.com/cdn/wp-includes/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' /> !</p><p>Ce que nous allons faire, c&#8217;est de transformer votre vieux bureau, en belle interface conviviale, tout en restant dans le style simple de Gnome.</p><p>Voici les modifications que nous allons apporter :</p><ul><li>Bordures de fenêtre Mac Leopard (oui c&#8217;est beau Mac <img src='http://www.geeknoise.com/cdn/wp-includes/images/smilies/icon_smile.gif' alt=':smile:' class='wp-smiley' /> )</li><li>Contrôles thème &laquo;&nbsp;Sorbet&nbsp;&raquo;</li><li>Nouvelles icônes encapsulées dans un cadre arrondis</li><li>Fonds d&#8217;écran Aurora Mod (disponible en 6 couleurs)</li><li>Gadgets bureau Screenlets</li><li>+Bonus: CoverThmbnailer</li></ul><p>Voilà ce que vous aurez à la fin du tutoriel :</p><p><a href="http://www.geeknoise.com/cdn/wp-content/uploads/2010/08/themebleu.png"><img title="Thème Bureau Bleu" src="http://www.geeknoise.com/cdn/wp-content/uploads/2010/08/themebleu.png" alt="Thème Bureau Bleu" width="651" height="488" /></a></p><p><a href="http://www.geeknoise.com/cdn/wp-content/uploads/2010/08/thememac.png"><img title="Thème Bureau Violet" src="http://www.geeknoise.com/cdn/wp-content/uploads/2010/08/thememac.png" alt="Thème Bureau Violet" width="651" height="488" /></a></p><p>Alors commençons !</p><h3>Téléchargement</h3><p>Voilà ce que vous allez me télécharger !</p><ul><li><a href="https://wiki.ubuntu.com/Artwork/Incoming/Lucid/Sorbet?action=AttachFile&amp;amp;do=get&amp;amp;target=sorbet_v0.5.tar.gz">Thème Sorbet</a></li><li><a href="http://gnome-look.org/content/show.php/Leopard-Lucid?content=126422">Thème Leopard-Lucid</a></li><li><a href="http://tiheum.deviantart.com/art/Faenza-Icons-173323228">Icônes Faenza</a></li><li><a href="http://psychopulse.deviantart.com/art/Aurora-mods-136939403">Fonds d&#8217;écran Aurora Mod</a></li></ul><h3>Installation du thème</h3><p><img src="http://fc07.deviantart.net/fs71/i/2010/211/4/8/Faenza_Icons_by_tiheum.png" alt="faenza" width="650"/></p><p>Maintenant, vous allez installer tout ça.</p><p><strong>Système → Préférences → Apparence → Installer</strong></p><p>et sélectionnez l&#8217;archive a chaque fois (sauf pour les fonds d&#8217;écran)</p><p>Bien, maintenant, cliquez sur personnaliser, et faîtes comme suit :</p><p>- <strong>Contrôles </strong>: vous choisissez le thème Sorbet.</p><p>- <strong>Couleurs</strong>, choisissez une jolie couleur pour Éléments sélectionnés.</p><p>- <strong>Bordures de fenêtre</strong>, mettez Leopard-Lucid.</p><p>- <strong>Icônes</strong>, choisissez le thème Faenza.</p><p>Et votre thème est installé !</p><h3>Les Screenlets</h3><p>Les Screenlets, ce sont les petits Gadgets bureau qu&#8217;on trouve dans la sidebar de Vista, etc&#8230;Mais on peut aussi les installer sous Ubuntu !</p><p>Ouvrez un terminal, et tapez ça :</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> screenlets</pre></div></div><p>Ou installez-le en cliquant ici: <a href="apt://screenlets">Screenlets</a></p><p>Une fois installé, vous allez dans <strong>Applications → Accessoires → Screenlets</strong>.<br /> Vous avez une fenêtre ou choisir les screenlets à lancer, choisir au démarrage ou pas, etc&#8230;</p><p><a href="http://www.geeknoise.com/cdn/wp-content/uploads/2010/08/screenlets.png"><img title="screenlets" src="http://www.geeknoise.com/cdn/wp-content/uploads/2010/08/screenlets.png" alt="Screenlets" width="650" /></a></p><p>Vous pouvez trouver d&#8217;autres screenlets <a href="http://screenlets.org/index.php/Category:UserScreenlets">ici</a>.</p><h3>Bonus: CoverThumbnailer</h3><p>Ce petit add-on pour le navigateur de fichiers Nautilus vous sera complétement indispensable une fois installé !</p><p>Il remplace l&#8217;icône des vieux dossiers par une super vignette, aux dossiers musique, images, vidéos, documents etc&#8230;un peu comme Vista, mais en mieux <img src='http://www.geeknoise.com/cdn/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p><p>Voici un petit aperçu:<br /> <a href="http://www.geeknoise.com/cdn/wp-content/uploads/2010/08/capture-musique-nautilus.png"><img title="coverthumbnailer" src="http://www.geeknoise.com/cdn/wp-content/uploads/2010/08/capture-musique-nautilus.png" alt="coverthumbnailer" width="650" /></a></p><p><a href="http://www.geeknoise.com/cdn/wp-content/uploads/2010/08/capture-images-nautilus.png"><img title="coverthumbnailer" src="http://www.geeknoise.com/cdn/wp-content/uploads/2010/08/capture-images-nautilus.png" alt="coverthumbnailer" width="650" /></a></p><p><a href="http://www.geeknoise.com/cdn/wp-content/uploads/2010/08/capture-videos-nautilus.png"><img title="coverthumbnailer" src="http://www.geeknoise.com/cdn/wp-content/uploads/2010/08/capture-videos-nautilus.png" alt="coverthumbnailer" width="650" /></a></p><p><strong>Installation</strong><br /> Ouvrez un terminal, puis exécutez ces lignes une par une</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> add-apt-repository ppa:flozz<span style="color: #000000; font-weight: bold;">/</span>flozz
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> cover-thumbnailer</pre></div></div><p>Pour configurer, allez dans <strong>Système → Préférences → Cover Thumbnailer</strong><br /> Ou reportez-vous à la <a href="http://doc.ubuntu-fr.org/cover-thumbnailer">doc</a>.</p><p>Et voilà, vous avez à présent un joli bureau sous ubuntu <img src='http://www.geeknoise.com/cdn/wp-includes/images/smilies/icon_smile.gif' alt=':smile:' class='wp-smiley' /><br /> Si vous avez une bonne carte graphique, je vous conseil d&#8217;activer Compiz pour les animations !<br /> <small><br /> Sources:</p><ul><li><small><a href="http://www.omgubuntu.co.uk/2010/08/faenza-may-just-be-your-new-fave-gnome.html">Faenza may just be your new fave GNOME icon set</a></small></li><li><small><a href="http://www.omgubuntu.co.uk/2010/02/homosapien-sorbet-themes-make-it-into.html">4 New Themes For Lucid including Homosapien and Sorbet!</a></small></li><li><small><a href="http://blog.sckyzo.com/2010/01/15/cover-thumbnailer-de-meilleures-miniatures-dans-nautilus/">Cover thumbnailer : De meilleures miniatures dans Nautilus</a></small></li></ul><p></small></p><div id="fb-like" style=""><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.geeknoise.com/sublimer-interface-ubuntu/&amp;layout=standard&amp;show_faces=true&amp;width=640&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:640px; height:px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://www.geeknoise.com/sublimer-interface-ubuntu/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Outil &#8211; Trouver des Adresses E-mail en 2 clics !</title><link>http://www.geeknoise.com/outil-trouver-des-adresses-email-en-2-clics/</link> <comments>http://www.geeknoise.com/outil-trouver-des-adresses-email-en-2-clics/#comments</comments> <pubDate>Sat, 14 Aug 2010 15:45:00 +0000</pubDate> <dc:creator>ly3s</dc:creator> <category><![CDATA[Outils]]></category> <category><![CDATA[Google]]></category> <category><![CDATA[mail]]></category> <category><![CDATA[outils]]></category> <category><![CDATA[php]]></category> <category><![CDATA[spam]]></category><guid isPermaLink="false">http://www.geeknoise.com/?p=734</guid> <description><![CDATA[Salut tout le monde, vous voulez faire connaître votre site ? spammer plein de gens avec des pages phishing ? alors ce tutoriel est écrit spécialement pour vous !]]></description> <content:encoded><![CDATA[<p>Salut tout le monde, vous voulez faire connaître votre site ? spammer plein de gens avec des pages phishing ? alors ce tutoriel est écrit spécialement pour vous !</p><p>Donc, ce que nous allons faire, c&#8217;est de nous procurer des fichiers CTT grâce à Google.</p><p>Ces fichiers <abbr title="eXtensible Markup Language">XML</abbr> sont générés par Windows Live Messenger, puis uploadés sur des <abbr title="File Transfer Protocol">FTP</abbr>.</p><p>Bien, maintenant comment nous procurer ces fichiers ?</p><p>Facile macile (comme on dis chez nous) ! Allez sur Google, et tapez cette recherche :</p><pre>filetype:ctt hotmail</pre><p>Vous allez tomber sur plein de fichiers bourrés d&#8217;adresses e-mail, comme vous et moi sommes bourrés de chorba chaque soir <img src='http://www.geeknoise.com/cdn/wp-includes/images/smilies/icon_smile.gif' alt=':smile:' class='wp-smiley' /></p><p>Une fois que vous avez trouvé un fichier, vous allez voir qu&#8217;il contient à peu près ça :</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;messenger<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;service</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;.NET Messenger Service&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;contactlist<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;contact<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>email@hotmail.com<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/contact<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/contactlist<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/service<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> 
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/messenger<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div><p class="question"><br/>Comment je vais coller ces mails sur mon logiciel de mailer moi !?</p><p>J&#8217;attendais bien cette question ! Pour vous faciliter la vie, j&#8217;ai codé un petit outil en <abbr title="Pre-Hypertext Processing">PHP</abbr> qui &laquo;&nbsp;parse&nbsp;&raquo; ces fichiers CTT pour avoir une liste bien propre séparée par un saut de ligne, une virgule, ou encore un point virgule !<br /><center><br /> <a href="http://geeknoise.com/ctt-converter"><img src="http://www.geeknoise.com/cdn/wp-content/uploads/2010/08/ctt-demo.png" alt="image"></img></a></p><h4><a href="http://geeknoise.com/ctt-converter">- Accéder à CTT Converter -</a></h4><p></center></p><p>Une fois sur l&#8217;outil, vous insérez le lien, vous choisissez le type de séparateur, et voilà ! vous obtenez une jolie liste toute rangée <img src='http://www.geeknoise.com/cdn/wp-includes/images/smilies/icon_razz.gif' alt=':razz:' class='wp-smiley' /></p><p>J&#8217;espère que l&#8217;article vous a plut, n&#8217;hésitez pas à laisser votre avis !</p><div id="fb-like" style=""><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.geeknoise.com/outil-trouver-des-adresses-email-en-2-clics/&amp;layout=standard&amp;show_faces=true&amp;width=640&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:640px; height:px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://www.geeknoise.com/outil-trouver-des-adresses-email-en-2-clics/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> <item><title>Afficher les mots de passe enregistrés dans Firefox</title><link>http://www.geeknoise.com/afficher-motsdepass-enregistres-firefox/</link> <comments>http://www.geeknoise.com/afficher-motsdepass-enregistres-firefox/#comments</comments> <pubDate>Fri, 13 Aug 2010 14:48:20 +0000</pubDate> <dc:creator>ly3s</dc:creator> <category><![CDATA[Astuces]]></category> <category><![CDATA[firefox]]></category> <category><![CDATA[Mot de passe]]></category> <category><![CDATA[sécurité]]></category><guid isPermaLink="false">http://www.geeknoise.com/?p=728</guid> <description><![CDATA[Bonjour tout le monde, je reviens pour une nouvelle astuce dans Firefox qui va intéresser plus d'un ! Nous allons afficher tous les mots de passes enregistrés dans Firefox, sans aucun logiciel, et sans rien bruteforcer !]]></description> <content:encoded><![CDATA[<p>Bonjour tout le monde, je reviens pour une nouvelle astuce dans Firefox qui va intéresser plus d&#8217;un !<br /> Nous allons afficher tous les mots de passes enregistrés dans Firefox, sans aucun logiciel, et sans rien bruteforcer !</p><p>Bien, pour faire parler Firefox, suivez ces deux étapes</p><p>Outils → Options (sous Windows)<br /> Édition → Préférences (sous Linux)</p><p>Allez dans l&#8217;onglet Sécurité</p><p><center><img src="http://www.geeknoise.com/cdn/wp-content/uploads/2010/07/etape1.png" alt="etape1"/></center></p><p>Puis cliquez sur Mots de passe enregistrés.<br /> Une fenêtre s&#8217;ouvre, cliquez sur Afficher les mots de passe.</p><p><center><img src="http://www.geeknoise.com/cdn/wp-content/uploads/2010/07/etape2.png" alt="etape2" /></center></p><p> Et hop ! vous avez tous les mots de passe <img src='http://www.geeknoise.com/cdn/wp-includes/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' /></p><div id="fb-like" style=""><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.geeknoise.com/afficher-motsdepass-enregistres-firefox/&amp;layout=standard&amp;show_faces=true&amp;width=640&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:640px; height:px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://www.geeknoise.com/afficher-motsdepass-enregistres-firefox/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Le PHP Orienté Objet pour débutants – Part 2</title><link>http://www.geeknoise.com/715le-php-orient-objet-pour-dbutants-part-2/</link> <comments>http://www.geeknoise.com/715le-php-orient-objet-pour-dbutants-part-2/#comments</comments> <pubDate>Mon, 19 Jul 2010 15:12:13 +0000</pubDate> <dc:creator>ly3s</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[php]]></category> <category><![CDATA[POO]]></category> <category><![CDATA[Programmation]]></category> <category><![CDATA[Programmation Orientée]]></category> <category><![CDATA[Tutoriels]]></category><guid isPermaLink="false">http://www.geeknoise.com/?p=715</guid> <description><![CDATA[La dernière fois, je vous avais présenté la POO en PHP, et nous avons longuement parlé des objets et des classe. Vous savez donc à présent les utiliser, nous pouvons passer aux choses sérieuses !]]></description> <content:encoded><![CDATA[<p>La dernière fois, je vous avais présenté la POO en <abbr title="Pre-Hypertext Processing">PHP</abbr>, et nous avons longuement parlé des objets et des classe. Vous savez donc à présent les utiliser, nous pouvons passer aux choses sérieuses !</p><h3>Les Constructeurs</h3><p>Quand on instancie un objet, il est parfois nécessaire de lui passer des arguments dès le départ. C&#8217;est là que la méthode magique __construct() nous facilite la vie, en exécutant du code dès qu&#8217;un nouvel objet est crée.</p><p>Maintenant, pour bien illustrer la méthode __construct(), nous allons l&#8217;ajouter à la classe Maison.</p><div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">class</span> Maison
<span style="color: #009900;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000088;">$proprio</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Propriétaire inconnu&quot;</span><span style="color: #339933;">;</span>
&nbsp;
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> __construct<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Une nouvelle maison a été bâtie, Félicitation !'</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
&nbsp;
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> getProprio<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span> <span style="color: #339933;">-&gt;</span> <span style="color: #004000;">proprio</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> setProprio<span style="color: #009900;">&#40;</span><span style="color: #000088;">$nouveauProprio</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$this</span> <span style="color: #339933;">-&gt;</span> <span style="color: #004000;">proprio</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$nouveauProprio</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$maisonLyes</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Maison<span style="color: #339933;">;</span></pre></div></div><p>Actualisez votre page et vous verrez :</p><pre>
Une nouvelle maison a été bâtie, Félicitation !
</pre><h3>Les Destructeurs</h3><p>Il ne s&#8217;agit pas d&#8217;arme de destruction massive, mais c&#8217;est encore d&#8217;une méthode magique appelée lors de la destruction d&#8217;un objet; __destruct()</p><div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">class</span> Maison
<span style="color: #009900;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000088;">$proprio</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Propriétaire inconnu&quot;</span><span style="color: #339933;">;</span>
&nbsp;
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> __construct<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Une nouvelle maison a été bâtie, Félicitation !'</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
&nbsp;
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> __destruct<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Au secours, une tempête a détruit la maison de '</span><span style="color: #339933;">.</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">proprio</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'!!!'</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> getProprio<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span> <span style="color: #339933;">-&gt;</span> <span style="color: #004000;">proprio</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> setProprio<span style="color: #009900;">&#40;</span><span style="color: #000088;">$nouveauProprio</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$this</span> <span style="color: #339933;">-&gt;</span> <span style="color: #004000;">proprio</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$nouveauProprio</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div><p><strong><br /> Mais comment détruire un objet ?</strong><br /> Je vous vois déjà intrigués, alors sans plus attendre;<br /> La fonction pour détruire un objet est unset(objet);<br /> <strong><br /> Exemple:</strong></p><div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Création de l'objet</span>
<span style="color: #000088;">$maisonLyes</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Maison<span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// modification du nom du propriétaire</span>
<span style="color: #000088;">$maisonLyes</span> <span style="color: #339933;">-&gt;</span> <span style="color: #004000;">setProprio</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Ly3s'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// Affichage du nom du propriétaire</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$maisonLyes</span> <span style="color: #339933;">-&gt;</span> <span style="color: #004000;">getProprio</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;br/&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// Destruction de ma maison (vous êtes un monstre !!!)</span>
<span style="color: #990000;">unset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$maisonLyes</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p>Qui retourne:</p><pre>
Une nouvelle maison a été bâtie, Félicitaion !
Ly3s
Au secours, une tempête a détruit la maison de Ly3s !!!
</pre><h3>Convertir en chaîne de caractères</h3><p>Maintenant, essayez de faire un &laquo;&nbsp;echo $maisonLyes;&nbsp;&raquo; et vous aurez tout de suite cette erreur :</p><pre>
Catchable fatal error: Object of class Maison could not be converted to string in [fichier]
</pre><p>Encore une fois, une méthode magique nous sauve la vie ! il s&#8217;agit de __toString().</p><div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">class</span> Maison
<span style="color: #009900;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000088;">$proprio</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Propriétaire inconnu&quot;</span><span style="color: #339933;">;</span>
&nbsp;
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> __toString<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Affichage des informations: &lt;br/&gt;'</span><span style="color: #339933;">;</span>
      <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Propriétaire: '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$this</span> <span style="color: #339933;">-&gt;</span> <span style="color: #004000;">getProprio</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;br/&gt;'</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
&nbsp;
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> __construct<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Une nouvelle maison a été bâtie, Félicitation !'</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
&nbsp;
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> __destruct<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Au secours, une tempête a détruit la maison de '</span><span style="color: #339933;">.</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">proprio</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'!!!'</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> getProprio<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span> <span style="color: #339933;">-&gt;</span> <span style="color: #004000;">proprio</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> setProprio<span style="color: #009900;">&#40;</span><span style="color: #000088;">$nouveauProprio</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$this</span> <span style="color: #339933;">-&gt;</span> <span style="color: #004000;">proprio</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$nouveauProprio</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000088;">$maisonLyes</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Maison<span style="color: #339933;">;</span>
<span style="color: #000088;">$maisonLyes</span> <span style="color: #339933;">-&gt;</span> <span style="color: #004000;">setProprio</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Ly3s'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$maisonLyes</span><span style="color: #339933;">;</span></pre></div></div><p>Qui va nous retourner ça :</p><pre>
Affichage des informations:
Propriétaire: Ly3s
</pre><p>C&#8217;est beau la POO <img src='http://www.geeknoise.com/cdn/wp-includes/images/smilies/icon_smile.gif' alt=':smile:' class='wp-smiley' /></p><p>Et restez sur GeekNoise pour la suite du cours !</p><div id="fb-like" style=""><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.geeknoise.com/715le-php-orient-objet-pour-dbutants-part-2/&amp;layout=standard&amp;show_faces=true&amp;width=640&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:640px; height:px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://www.geeknoise.com/715le-php-orient-objet-pour-dbutants-part-2/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Disques durs et températures – Partie 1</title><link>http://www.geeknoise.com/disques-durs-temperatures/</link> <comments>http://www.geeknoise.com/disques-durs-temperatures/#comments</comments> <pubDate>Mon, 19 Jul 2010 13:05:14 +0000</pubDate> <dc:creator>Nicolas</dc:creator> <category><![CDATA[Hardware]]></category> <category><![CDATA[Disque-dur]]></category> <category><![CDATA[Gestion]]></category> <category><![CDATA[HDD]]></category> <category><![CDATA[surveillance]]></category><guid isPermaLink="false">http://www.geeknoise.com/?p=662</guid> <description><![CDATA[Le disque dur est sans doute le matériel le plus précieux de votre ordinateur, il contient toutes vos photos de vacances, vos musiques préférées, des travaux, des dossiers top secret et bien d'autres choses !Il en convient donc qu'il faut lui apporter beaucoup d'attention. Il ne suffit pas d'avoir une copie de vos données, ou un système de refroidissement à azote liquide, tout est complémentaire.]]></description> <content:encoded><![CDATA[<p>Bonjour à tous,</p><p>Je me présente, je m&#8217;appelle Nicolas, je suis blogueur du site <a href="http://www.horyax.fr/">Horyax</a>. Je partage par mon blog, ma passion pour l&#8217;informatique et plus particulièrement l&#8217;hardware. Aujourd&#8217;hui j&#8217;écris mon premier article « invité » qui consiste à publier un billet sur ce blog.</p><p>Allons y !</p><p>Le disque dur est sans doute le matériel le plus précieux de votre ordinateur, il contient toutes vos photos de vacances, vos musiques préférées, des travaux, des dossiers top secret et bien d&#8217;autres choses !</p><p>Il en convient donc qu&#8217;il faut lui apporter beaucoup d&#8217;attention. Il ne suffit pas d&#8217;avoir une copie de vos données, ou un système de refroidissement à azote liquide, tout est complémentaire.</p><p>Cette article traitera de la surveillance et des solutions de sauvegarde tandis que la partie 2 abordera la maintenance physique de vos disques dur.</p><p><center><br /><h3>Les logiciels : Surveillance et backup</h3><p></center></p><h3>Surveillance</h3><p>Il faut impérativement connaître la température de vos disques pour une meilleure gestion de ceux-ci et la mise en place de quelconque système. Suivant votre système d&#8217;exploitation (ici traité Linux et Windows) je vous conseille ces logiciels :</p><ul><li>Linux : 	lm-sensors et hddtemp (ligne de commande) complétés par 	sensors-applet (graphique).</li><li>Windows : 	HWMonitor, un soft signé CPUID très connu dans le monitoring 	matériel. Il est très simple et complet.</li></ul><p><strong>Lm-sensors, hddtemp et sensors-applet :</strong></p><p><em>L&#8217;installation et l&#8217;utilisation sera détaillée pour la distribution Ubuntu.</em></p><p><a href="http://doc.ubuntu-fr.org/tutoriel/comment_installer_un_paquet">Installez le paquet</a> <strong><a href="apt://lm-sensors">lm-sensors</a></strong> (cliquez sur le lien pour l&#8217;installer automatiquement)</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> lm-sensors
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> sensors-detect</pre></td></tr></table></div><p>Répondez Oui à toutes les questions.<br /> Après installez <a href="apt://hddtemp">hddtemp</a> (cliquez pour installer) chargé de relever les températures des disques.</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> hddtemp</pre></div></div><p class="note">Il faut activer le daemon, soit à l&#8217;installation du package, soit en tapant sudo dpkg-reconfigure hddtemp</p><p>À présent, redémarrez l&#8217;ordinateur afin de charger les modules que lm-sensors a rajoutés. Vérifier le bon fonctionnement avec les commandes suivantes :</p><pre>$ sensors
it87-isa-0290
Adapter: ISA adapter
VCore 1: +1.57 V (min = +1.42 V, max = +1.57 V) ALARM
+3.3V: +6.59 V (min = +3.14 V, max = +3.46 V) ALARM
+5V: +5.11 V (min = +4.76 V, max = +5.24 V)
+12V: +11.78 V (min = +11.39 V, max = +12.61 V)
VBat: +3.12 V
fan1: 3668 RPM (min = 0 RPM, div =
fan2: 0 RPM (min = 664 RPM, div =  ALARM
M/B Temp: +39°C (low = +15°C, high = +40°C) sensor = thermistor
CPU Temp: +36°C (low = +15°C, high = +45°C) sensor = thermistor

$ sudo hddtemp /dev/sda
/dev/sdb: ST3160815AS: 33°C
</pre><p>Dernière manipulation pour visioner les informations graphiquement. Pour ce, il existe l&#8217;applet : <strong><a href="apt://sensors-applet">sensors-applet</a></strong><strong> (cliquez pour installer)</strong></p><p>Il suffit ensuite de le rajouter sur le tableau de bord :  Clic droit sur votre Tableau de Bord → Ajouter au tableau de bord → Ajouter Moniteur Matériel.</p><p>Pour plus d&#8217;informations, le Wiki d&#8217;Ubuntu : <a href="http://doc.ubuntu-fr.org/lm-sensors">lm-sensors</a></p><p><strong>HWMonitor :</strong></p><p>Téléchargez <a href="http://www.cpuid.com/downloads/hwmonitor/1.16-setup.exe">HWMonitor</a> et installez le.</p><p>L&#8217;interface est très clair, pas besoin d&#8217;explications. Pour plus d&#8217;infos, le <a href="http://www.cpuid.com/softwares/hwmonitor.html">site de CPUID</a>.</p><h3>Backup :</h3><p>Encore une fois selon votre <abbr title="Operating System">OS</abbr>, les logiciels et méthodes diffèrent. Il faut avant tout définir vos besoins et vos capacités, vous allez comprendre.</p><p>Je ne suis pas un pro de la sauvegarde et non plus le meilleur exemple, cependant après quelques recherches j&#8217;ai trouvé les logiciels les plus répandus dans ce domaine.</p><p><em>Les solutions suivantes demandes un minimum de temps à mettre en place et un peu de documentation. Veuillez ne pas vous précipiter.</em></p><p><strong>Sous Linux (cliquez sur les liens pour arriver sur la doc Ubuntu) :</strong></p><ul><li><a href="http://doc.ubuntu-fr.org/backup-manager">Backup-manager </a>: 	backup-manager fait une sauvegarde des fichier locaux sous forme 	d&#8217;archives (tar/zip) pouvant être exportées sur un serveur (via <abbr title="File Transfer Protocol">FTP</abbr>, <abbr title="Secure Shell">SSH</abbr>, 	RSYNC,…) ou gravées sur <abbr title="Compact Disc">CD</abbr>/<abbr title="Digital Versatile Disc">DVD</abbr>.</li><li><a href="http://doc.ubuntu-fr.org/rdiff-backup">rdiff-backup</a> : 	faire des sauvegardes différentielles journalières de son <code>/home</code> et supprimer les sauvegardes vieilles d&#8217;une semaine par exemple.</li></ul><p>Je ne détail pas plus leur fonctionnements car ceux-ci rempliraient des dizaines d&#8217;articles à eux seuls.</p><p><strong>Sous Windows :</strong></p><p>L&#8217;outil intégré devrait suffire; vous référencez à l&#8217;article, suivant votre configuration.</p><ul><li>Windows 7 : <a href="http://windows.microsoft.com/fr-FR/windows7/products/features/backup-and-restore">Sauvegarde 	et restauration</a></li><li>Windows XP : <a href="http://www.01net.com/telecharger/windows/Utilitaire/sauvegarde/">Backup 	utilitaire</a></li></ul><h3>Conclusion</h3><p>Nous disposons maintenant des informations nécessaires pour connaître l&#8217;état de vos disques, quels précautions vous devez prendre, etc&#8230; Dans la prochaine partie, je parlerai des températures conseillées pour une durée de vie optimale, ainsi que les moyens pour refroidir votre matériel.</p><div id="fb-like" style=""><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.geeknoise.com/disques-durs-temperatures/&amp;layout=standard&amp;show_faces=true&amp;width=640&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:640px; height:px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://www.geeknoise.com/disques-durs-temperatures/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Protéger son site des bots efficacement</title><link>http://www.geeknoise.com/protger-son-site-des-bots-efficacement/</link> <comments>http://www.geeknoise.com/protger-son-site-des-bots-efficacement/#comments</comments> <pubDate>Sat, 17 Jul 2010 13:37:27 +0000</pubDate> <dc:creator>ly3s</dc:creator> <category><![CDATA[Développement Web]]></category> <category><![CDATA[bots]]></category> <category><![CDATA[Développement web]]></category> <category><![CDATA[formulaires]]></category> <category><![CDATA[html]]></category> <category><![CDATA[php]]></category> <category><![CDATA[sécurité]]></category> <category><![CDATA[spam]]></category><guid isPermaLink="false">http://www.geeknoise.com/?p=649</guid> <description><![CDATA[Qui de nous, n'a jamais été spammé, et contraint d'ajouter les Captchas  :mrgreen: ?  Vous savez, ces codes qu'ils faut réécrire péniblement pour télécharger, poster un commentaire ou s'inscrire sur des sites, et qui nous prennent quelques secondes de notre temps, c'est fini tout ça !]]></description> <content:encoded><![CDATA[<p>Qui de nous, n&#8217;a jamais été spammé, et contraint d&#8217;ajouter les Captchas <img src='http://www.geeknoise.com/cdn/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' /> ?  Vous savez, ces codes qu&#8217;ils faut réécrire péniblement pour télécharger, poster un commentaire ou s&#8217;inscrire sur des sites, et qui nous prennent quelques secondes de notre temps, c&#8217;est fini tout ça !</p><p>J&#8217;ai une astuce qui va révolutionner votre application. Le principe est simple;</p><p>On ajoute un champ &laquo;&nbsp;fax&nbsp;&raquo; dans le formulaire, et qu&#8217;on cache ensuite avec du <abbr title="Cascading Style Sheets">CSS</abbr>. Puis qu&#8217;on vérifie s&#8217;il est vide ou remplis. Car en effet, les bots remplissent tous les champs qu&#8217;ils trouvent en passant. Si notre champ &laquo;&nbsp;fax&nbsp;&raquo; est remplis, il s&#8217;agit d&#8217;une requête de robot, et sinon, c&#8217;est bel et bien un humain !</p><p class="idea"> Pourquoi &laquo;&nbsp;Fax&nbsp;&raquo; et pas &laquo;&nbsp;Adresse&nbsp;&raquo; ?</p><p>Vous mettez ce que vous voulez, pour vu que ce soit anodin <img src='http://www.geeknoise.com/cdn/wp-includes/images/smilies/icon_smile.gif' alt=':smile:' class='wp-smiley' /> !</p><h3>Le xHTML</h3><p>Donc, Prenons un formulaire simple :</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">form</span> <span style="color: #000066;">method</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;post&quot;</span> <span style="color: #000066;">action</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;post.php&quot;</span>&gt;</span>
   Pseudo: <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;pseudo&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
   E-Mail: <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;email&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;fax&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;fax&quot;</span><span style="color: #66cc66;">/</span>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- Vérification anti-spam --&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Envoyer&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">form</span>&gt;</span></pre></td></tr></table></div><p>Rien de sorcier, à part le champ Fax qui est toujours visible, mais pas pour bien longtemps <img src='http://www.geeknoise.com/cdn/wp-includes/images/smilies/icon_smile.gif' alt=':smile:' class='wp-smiley' /> !</p><h3>Le <abbr title="Cascading Style Sheets">CSS</abbr></h3><p>Attaquons nous au <abbr title="Cascading Style Sheets">CSS</abbr> pour qu&#8217;on puisse cacher le champ:</p><div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">input<span style="color: #cc00cc;">#fax</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></div></div><p>On l&#8217;a fait en une seule et unique petite ligne <img src='http://www.geeknoise.com/cdn/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p><h3>Le <abbr title="Pre-Hypertext Processing">PHP</abbr></h3><p>Et le plus important, le <abbr title="Pre-Hypertext Processing">PHP</abbr> que l&#8217;on va mettre dans post.php par exemple <img src='http://www.geeknoise.com/cdn/wp-includes/images/smilies/icon_razz.gif' alt=':razz:' class='wp-smiley' /></p><div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
   <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'fax'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'Bot détecté'</span><span style="color: #339933;">;</span>
   <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #666666; font-style: italic;">// Traitement du formulaire comme si de rien n'était...</span>
   <span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div><p>Et votre formulaire est paré à être uploadé, et utilisé ! <img src='http://www.geeknoise.com/cdn/wp-includes/images/smilies/icon_razz.gif' alt=':razz:' class='wp-smiley' /></p><div id="fb-like" style=""><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.geeknoise.com/protger-son-site-des-bots-efficacement/&amp;layout=standard&amp;show_faces=true&amp;width=640&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:640px; height:px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://www.geeknoise.com/protger-son-site-des-bots-efficacement/feed/</wfw:commentRss> <slash:comments>9</slash:comments> </item> <item><title>Le PHP Orienté Objet pour débutants – Part 1</title><link>http://www.geeknoise.com/le-php-orient-objet-pour-dbutants-part-1/</link> <comments>http://www.geeknoise.com/le-php-orient-objet-pour-dbutants-part-1/#comments</comments> <pubDate>Sat, 17 Jul 2010 09:45:18 +0000</pubDate> <dc:creator>ly3s</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[php]]></category> <category><![CDATA[POO]]></category> <category><![CDATA[Programmation]]></category> <category><![CDATA[Programmation Orientée objet]]></category> <category><![CDATA[Tutoriels]]></category><guid isPermaLink="false">http://www.geeknoise.com/?p=643</guid> <description><![CDATA[La Programmation Orientée Objet (ou POO) est un concept qui fait fuir de nombreux programmeurs PHP en herbe. Plein de syntaxes compliquées et autres obstacles. Mais que nenni ! La POO est tout un style de codage dans lequel interviennent des objets et des classes, tout un art que je vais vous expliquer dans cette première partie pour que vous puissiez créer vos applications avec un tout autre style.]]></description> <content:encoded><![CDATA[<p>La Programmation Orientée Objet (ou POO) est un concept qui fait fuir de nombreux programmeurs <abbr title="Pre-Hypertext Processing">PHP</abbr> en herbe. Plein de syntaxes compliquées et autres obstacles. Mais que nenni ! La POO est tout un style de codage dans lequel interviennent des objets et des classes, tout un art que je vais vous expliquer dans cette première partie pour que vous puissiez créer vos applications avec un tout autre style.</p><h3>Mais qu&#8217;est-ce donc ?</h3><p class="idea">La programmation  orientée objet est un style de codage qui permet aux développeurs de  grouper des tâches similaires dans des classes.</pre><p>Cela permet entre-autres de suivre le principe "Ne vous répetez pas" (D'ont repeat Yourself, ou <a href="http://en.wikipedia.org/wiki/Don%27t_repeat_yourself" target="_blank">DRY</a> en Anglais).</p><p>Un des principaux avantages de la programmation DRY est que, si l'on doit modifier une une information dans votre code, un seul changement est nécéssaire.</p><p>Cependant, la POO introduit une nouvelle syntaxe. Et vu à l'œuil rapidement, cela parrait beaucoup plus compliqué que la méthode simple. Mais après petite inspection, c'est bien le contraitre !</p><p>Donc, pour récapituler, ce concept va nous servir à <strong>maintenir</strong>,<strong> tester</strong>,<strong> déboguer</strong> et à <strong>évoluer</strong> le programme plus facilement !</p><h3>Une histoire d'Objets et de classes</h3><p>Avant de commencer à coder, il est nécéssaire de pouvoir faire la différence entre les <strong>objets </strong>et les <strong>classes</strong>.</p><p><img title="poo" src="http://s3.amazonaws.com/nettuts/734_oop/images/blueprint-houses.jpg" alt="" width="600" height="272" /></p><p>Regardez cette image; à gauche nous avons une classe, et à droite, un objet !<br /> C'est un concept un peut difficile à reternir la première fois, certes, alors il faurda vous exercer par la suite, je compte sur vous <img src='http://www.geeknoise.com/cdn/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p><strong>Une classe, c'est comme la plan d'une maison</strong>. Il définit la  forme de la maison sur le papier, les relations entre les différentes  parties de la maison clairement définies, <strong>même si la maison  n'existe pas</strong>.</p><p><strong>Et un objet, est donc la maison<strong> </strong></strong><strong>elle-même.</strong> Les  données stockées dans l'objet, sont le bois, le béton, et les fils. Sans  être assemblés, c'est juste un tas de choses empilées. Mais en suivant  le plant, cela devien une maison parfaitement fonctionnelle.</p><p>Pour faire une relation,<strong> Les classes</strong> <strong>forment la structure des données et d'actions,</strong> et sont utilisées pour <strong>construire les objets</strong>. Et plus d'un   objet peut être construit à partir de la même classe en même temps,   indépendantes les unes des autres.</p><p>Prenons l'exemple d'un lotissement: plusieurs maisons sont construites à partir d'un même plan,  mais toutes ont des décorations et familles différentes !</p><h3>La structure d'un classe</h3><p>Créer une classe est très simple, utilisez le mot clé class, suivi du nom que vous voulez donner à la classe.</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">class</span> Maison <span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// c'est ici que vont les attributs et les méthodes</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div><p>Une fois que votre classe a été créee, nous allons <strong>instancier un objet</strong> comme suit :</p><div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$maisonDeLaMortQuiTue</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> maison<span style="color: #339933;">;</span></pre></div></div><p>Et j'ai maintenant une nouvelle maison !</p><p>Mais comment savoir ce que contient la maison de Lyes ? Nous allons utiliser var_dump() <strong>pour afficher le contenu d'une classe</strong>.</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">var_dump</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$obj</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p>Maintenant, nous allons essayer le code au complet.</p><div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">class</span> Maison
<span style="color: #009900;">&#123;</span>
<span style="color: #666666; font-style: italic;">// c'est ici que vont les attributs et les méthodes</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$maisonDeLaMortQuiTue</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> maison<span style="color: #339933;">;</span>
&nbsp;
<span style="color: #990000;">var_dump</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$maisonDeLaMortQuiTue</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p>Cela va nous afficher ceci :</p><pre>object(MyClass)#1 (0) { }</pre><p>Cher lecteur, vous venez de créer la première classe de votre vie !</p><h3>Définir les attributs de la classe</h3><p>Ma jolie maison toute neuve est un peu vide à mon goût, remplissons la un peu !</p><p>Les attributs fonctionnent exactement comme les variables, mise à part la syntaxe qui est un peu différente.<br /> Revenons à notre maison :</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">class</span> Maison
<span style="color: #009900;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000088;">$proprio</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Lyes&quot;</span><span style="color: #339933;">;</span>
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000088;">$ville</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;New York&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$maisonDeLaMortQuiTue</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> maison<span style="color: #339933;">;</span>
&nbsp;
<span style="color: #990000;">var_dump</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$maisonDeLaMortQuiTue</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p>Le mot clé "public" détermine la visibilité de la variable (ou attribut), je vous explique ça un peu plus loin !</p><p>Maintenant, pour voir le nom de la ville où est située la maison de Lyes, ajoutons ce code:</p><div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">echo</span> <span style="color: #000088;">$maisonDeLaMortQuiTue</span> <span style="color: #339933;">-&gt;</span> <span style="color: #004000;">proprio</span><span style="color: #339933;">.</span><span style="color: #0000ff;">' a une jolie maison !'</span><span style="color: #339933;">;</span></pre></div></div><p>Puisque plusieurs objets peuvent êtres instanciés, nous devons d'abord préciser le nom de l'objet. Sinon, <abbr title="Pre-Hypertext Processing">PHP</abbr> ne saura pas quoi afficher !<br /> Le script va donc afficher: "Lyes a une jolie maison". c'est presque magique <img src='http://www.geeknoise.com/cdn/wp-includes/images/smilies/icon_biggrin.gif' alt=':grin:' class='wp-smiley' /></p><h3>Définir les méthodes de la classe</h3><p> <strong>— C'est lent et moche à écrire ton truc !</strong></p><p>Ne partez pas ! Il y a en effet, une "astuce" qui nous permet d'accéder à l'attribut, et de le modifier.</p><p>Nous allons donc créer une méthode (fonction) pour récupérer la valeur, et une autre pour pouvoir la modifier !</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">class</span> Maison
<span style="color: #009900;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000088;">$proprio</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Lyes&quot;</span><span style="color: #339933;">;</span>
&nbsp;
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> getProprio<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span> <span style="color: #339933;">-&gt;</span> <span style="color: #004000;">proprio</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> setProprio<span style="color: #009900;">&#40;</span><span style="color: #000088;">$nouveauProprio</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$this</span> <span style="color: #339933;">-&gt;</span> <span style="color: #004000;">proprio</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$nouveauProprio</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$maisonDeLaMortQuiTue</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Maison<span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Le propriétaire actuel de la maison de la mort qui tue est: &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$maisonDeLaMortQuiTue</span><span style="color: #339933;">.</span>getProprio<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Helas, Lyes a vendu la maison ! <span style="color: #000099; font-weight: bold;">\n</span>;&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$maisonDeLaMortQuiTue</span><span style="color: #339933;">.</span>setProprio<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Mohammed'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;La maison appartient maintenant à &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$maisonDeLaMortQuiTue</span><span style="color: #339933;">.</span>getProprio<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p>Ce script magique va nous afficher ceci :</p><pre>
Le propriétaire actuel de la maison de la mort qui tue est: Lyes
Helas, Lyes a vendu la maison !
La maison appartient maintenant à Mohammed
</pre><p class="note"> <strong>Note — </strong> En POO, Les objets peuvent se référencer eux-même en utilisant le mot clé <em>$this</em>. Quand vous travaillez dans une méthode, utilisez $this de la même manière que si vous devez utiliser le nom de l'objet en dehors de la classe.</p><p>Bien, maintenant que nous avons crée une maison, pourquoi pas en créer plusieurs ?</p><p class="idea">La puissance de la POO devient évidente lorsque vous utilisez plusieurs instances de la même classe</p><div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">class</span> Maison
<span style="color: #009900;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000088;">$proprio</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Propriétaire inconnu&quot;</span><span style="color: #339933;">;</span>
&nbsp;
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> getProprio<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span> <span style="color: #339933;">-&gt;</span> <span style="color: #004000;">proprio</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> setProprio<span style="color: #009900;">&#40;</span><span style="color: #000088;">$nouveauProprio</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$this</span> <span style="color: #339933;">-&gt;</span> <span style="color: #004000;">proprio</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$nouveauProprio</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Création de la maison de Lyes</span>
<span style="color: #000088;">$maisonLyes</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Maison<span style="color: #339933;">;</span>
<span style="color: #000088;">$maisonLyes</span> <span style="color: #339933;">-&gt;</span> <span style="color: #004000;">setProprio</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Lyes'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Création de la maison de Meziane</span>
<span style="color: #000088;">$maisonMeziane</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Maison<span style="color: #339933;">;</span>
<span style="color: #000088;">$maisonMeziane</span> <span style="color: #339933;">-&gt;</span> <span style="color: #004000;">setProprio</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Meziane'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Affichage des propriétaires des 2 maisons</span>
<span style="color: #000088;">$maisonLyes</span> <span style="color: #339933;">-&gt;</span> <span style="color: #004000;">getProprio</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$maisonMeziane</span> <span style="color: #339933;">-&gt;</span> <span style="color: #004000;">getProprio</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div><p>Chers amis, la première partie du tutoriel est finie ! Voici ce que vous devez retenir pour l'instant:</p><ul><li>Par standard, le nom d'une classe commence toujours par une  majuscule.</li><li>var_dump() Affiche la contenu d'un objet</li><li>Les attributs sont les variables des classes</li><li>Et les méthodes sont les fonctions des classes</li><li>$this référencie l'objet lui-même</li></ul><p>Dans les chapitres suivants, je vais vous faire décourire toute la magie de la POO; Les constructeurs, et les déstructeurs, la gestion des erreurs, l'héritage, les constantes, et j'en passe !</p><p>Restez sur GeekNoise, Je compte sur vous, et j'espère que ce tutoriel vous a plus.<br /> Pour toutes vos questions, les commentaires sont encore et toujours ouverts <img src='http://www.geeknoise.com/cdn/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p><div id="fb-like" style=""><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.geeknoise.com/le-php-orient-objet-pour-dbutants-part-1/&amp;layout=standard&amp;show_faces=true&amp;width=640&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:640px; height:px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://www.geeknoise.com/le-php-orient-objet-pour-dbutants-part-1/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>10 Astuces pour sécuriser au maximum votre blog WordPress</title><link>http://www.geeknoise.com/10-astuces-pour-scuriser-au-maximum-wordpress/</link> <comments>http://www.geeknoise.com/10-astuces-pour-scuriser-au-maximum-wordpress/#comments</comments> <pubDate>Sun, 04 Jul 2010 09:57:05 +0000</pubDate> <dc:creator>ly3s</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[blogging]]></category> <category><![CDATA[sécurité]]></category> <category><![CDATA[WordPress]]></category><guid isPermaLink="false">http://www.geeknoise.com/?p=605</guid> <description><![CDATA[Dans la vrai vie, la sécurité a toujours été prise au sérieux. Les gens achètent des maisons sécurisée et des alarmes de voiture pour assurer leur sécurité. Cependant, dans le monde du WWW, la sécurité est elle aussi un sujet à ne pas négliger. Je vais donc vous montrer 10 Astuces afin de sécuriser au maximum votre blog propulsé par Wordpress.]]></description> <content:encoded><![CDATA[<p>Dans la vrai vie, la sécurité a toujours été prise au sérieux. Les gens achètent des maisons sécurisée et des alarmes de voiture pour assurer leur sécurité. Cependant, dans le monde du <abbr title="World Wide Web">WWW</abbr>, la sécurité est elle aussi un sujet à ne pas négliger. Je vais donc vous montrer 10 Astuces afin de sécuriser au maximum votre blog propulsé par WordPress.</p><h3>1) Masquer les erreurs d&#8217;identification</h3><p><img class="aligncenter" src="http://www.geeknoise.com/cdn/wp-content/uploads/2010/07/login-wp.png" alt="image" /><br /> <strong>Le problème:</strong> Quand vous essayez de vous connecter à l&#8217;admin de votre blog, WordPress  vous informe si le pseudo entré est correcte ou pas. Ceci est bien si vous oubliez votre pseudo, mais oublier le pseudo utilisé pour son site, c&#8217;est comme oublier son propre  prénom ! Et ces informations pourront aussi servir aux pirates, car une fois le nom d&#8217;utilisateur dans la poche, il suffit de bruteforcer le mot de passe, et votre site est à eux !</p><p><strong>La solution:</strong> Pour masquer les erreurs d&#8217;identifications, ouvrez simplement le fichier functions.php qui se situe dans le thème de votre blog, et ajoutez y ce code :</p><div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'login_errors'</span><span style="color: #339933;">,</span><span style="color: #990000;">create_function</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'$a'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;return null;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p><strong>Explication: </strong>Nous avons modifié la fonction pour qu&#8217;elle renvoie null, c&#8217;est à dire une chaine vide. <small>Source: <a href="http://www.wprecipes.com/wordpress-security-hide-login-error-messages">WordPress  Security: Hide Log-In Error Messages</a></small></p><h3>2) Forcer l&#8217;utilisation du <abbr title="Secure Sockets Layer">SSL</abbr></h3><p><img class="aligncenter" src="http://www.geeknoise.com/cdn/wp-content/uploads/2010/07/ssl.jpg" alt="image" /><br /> <strong> </strong> <strong>Le problème:</strong> si vous avez peur que vos données soient interceptées, alors vous pouvez utiliser le <abbr title="Secure Sockets Layer">SSL</abbr>. Le <a href="http://fr.wikipedia.org/wiki/Secure_Sockets_Layer"><abbr title="Secure Sockets Layer">SSL</abbr></a> est un protocole de cryptage de données qui sécurise les communications entre des réseaux comme Internet. La plus part des services d&#8217;hébergement supportent le <abbr title="Secure Sockets Layer">SSL</abbr>.</p><p><strong>La solution:</strong> Une fois que vous êtes sûr que votre hébergeur supporte bel et bien le <abbr title="Secure Sockets Layer">SSL</abbr>, ouvrez le fichier wp-config.php situ à la racine de votre blog WordPress, et ajoutez-y ce code :</p><div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FORCE_SSL_ADMIN'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p>Enregistrez, et un problème de moins ! <strong></strong></p><p><strong>Explication: </strong>rien de très compliqué, nous avons simplement défini la variable FORCE_SSL_ADMIN à true <small>Source: <a href="http://www.wprecipes.com/how-to-force-using-ssl-on-wp-admin-directory">How  To: Force Using <abbr title="Secure Sockets Layer">SSL</abbr> on wp-admin Directory</a></small></p><h3>3) Protéger le fichier wp-config.php avec un .htaccess</h3><p><img class="aligncenter" src="http://www.geeknoise.com/cdn/wp-content/uploads/2010/07/wp-config.png" alt="image" /><br /> <strong>Le problème:</strong> en tant qu&#8217;utilisateur WordPress, vous savez sûrement que le fichier wp-config.php est un fichier très important contenant vos informations pour se connecter à la base de données.Imaginez qu&#8217;un H4ck3r upload un backdoor sur votre serveur, il verra ainsi le contenu de ce fichier ! <strong></strong></p><p><strong>La solution: </strong>ouvrez votre fichier .htaccess (après avoir fait un backup de celui-ci), et ajoutez-y ce code</p><pre>&lt;files wp-config.php&gt;
order allow,deny
deny from all
&lt;/files&gt;</pre><h3>4) Bannir les utilisateurs indésirables et les bots</h3><p><img class="aligncenter" src="http://www.geeknoise.com/cdn/wp-content/uploads/2010/07/robot.png" alt="image" /><br /> <strong>Le problème:</strong> on a tous déjà eu des problèmes avec les commentaires indésirables postés par des bots. La solution à ce problème est très simple. Nous allons carément leur interdire l&#8217;accès à votre site.</p><p><strong>La solution: </strong>Notre super pote Apache va encore nous aider avec son htaccess <img src='http://www.geeknoise.com/cdn/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> Avec ce code, nous allons dire à Apache que tout le monde est autorisé à voir votre blog, mis à part la personne avec l&#8217;<abbr title="Internet Protocol">IP</abbr> 123.45.67.89</p><pre>&lt;Limit GET POST PUT&gt;

order allow,deny

allow from all

deny from 123.45.67.89

&lt;/LIMIT&gt;</pre><p>Biensur, l&#8217;<abbr title="Internet Protocol">IP</abbr> 123.45.67.89 n&#8217;est qu&#8217;à titre d&#8217;exemple. Voici une Graaande liste avec les IPs de nombreux bots (165 pour être précis)</p><pre># 165 BANISHED FOOLS
&lt;Limit GET POST PUT&gt;
 order allow,deny
 allow from all

# RIPE Network
deny from 62.141.39.235
deny from 62.193.205.210
deny from 62.195.238.225
deny from 80.97.12.51
deny from 80.237.144.80
deny from 81.19.151.104
deny from 81.92.159.45
deny from 81.176.228.30
deny from 82.137.216.16
deny from 82.141.145.197
deny from 82.208.60.42
deny from 84.16.224.168
deny from 85.198.208.78
deny from 88.84.128.164
deny from 88.140.83.49
deny from 88.191.20.52
deny from 88.198.131.54
deny from 88.208.228.216
deny from 89.149.164.130
deny from 89.167.152.110
deny from 89.41.67.162
deny from 91.75.70.18
deny from 91.121.4.205
deny from 193.43.36.234
deny from 195.175.37.70
deny from 195.225.169.73
deny from 195.242.192.18
deny from 212.40.5.38
deny from 212.241.168.186
deny from 212.108.128.30
deny from 213.114.118.44
deny from 213.22.94.50
deny from 213.203.204.70
deny from 213.229.137.240
deny from 217.13.86.17
deny from 217.73.200.244
deny from 217.156.87.154
deny from 79.22.176.145
deny from 81.177.22.242
deny from 83.223.98.160
deny from 86.125.108.159
deny from 87.233.135.30
deny from 89.97.248.67
deny from 161.53.149.3
deny from 195.70.36.237
deny from 212.51.122.7
deny from 213.175.37.194
deny from 213.123.128.28
deny from 213.189.10.11

# Asia Pacific Network
deny from 60.190.243.173
deny from 61.47.47.55
deny from 125.15.14.3
deny from 125.246.52.254
deny from 125.246.96.194
deny from 125.246.154.66
deny from 163.17.190.135
deny from 165.228.128.11
deny from 165.228.131.11
deny from 165.228.131.12
deny from 165.228.132.11
deny from 196.12.53.9
deny from 202.53.12.34
deny from 202.70.201.34
deny from 203.111.38.130
deny from 210.114.222.188
deny from 211.76.128.155
deny from 211.115.112.28
deny from 218.8.129.252
deny from 220.227.134.30
deny from 221.238.235.159
deny from 222.124.147.211
deny from 222.174.184.35
deny from 125.164.200.157
deny from 203.162.1.238

# Latin American and Caribbean <abbr title="Internet Protocol">IP</abbr> address Regional Registry
deny from 189.11.126.37
deny from 200.83.4.4
deny from 200.101.66.98
deny from 200.105.231.130
deny from 200.115.166.2
deny from 200.129.43.168
deny from 200.102.51.88
deny from 201.14.185.159
deny from 201.14.190.128
deny from 201.24.66.94

# Google Hackers
deny from 69.89.21.71
deny from 72.232.150.250
deny from 208.110.218.138
deny from 208.110.218.139
deny from 208.110.218.201

# HostDime com Inc
deny from 66.7.197.76
deny from 72.29.65.97
deny from 72.29.66.107
deny from 72.29.74.99

# Layered Technologies
deny from 72.232.26.34
deny from 72.232.83.82
deny from 72.233.5.178

deny from 4.79.181.202    "# Level 3 Comm "
deny from 8.7.22.195      "# Level 3 Comm "

deny from 207.44.234.6    "# Everyones Internet "
deny from 207.44.188.10   "# Everyones Internet "

deny from 74.52.158.98    "# ThePlanet.com Internet Services, Inc. "
deny from 74.53.88.114    "# ThePlanet.com Internet Services, Inc. "
deny from 70.85.208.66    "# ThePlanet.com Internet Services, Inc. "
deny from 67.19.192.212   "# ThePlanet.com Internet Services, Inc. "
deny from 69.93.171.242   "# ThePlanet.com Internet Services, Inc. "
deny from 70.87.63.234    "# ThePlanet.com Internet Services, Inc. "

# BANDWIDTH HOGS
deny from 69.60.125.233   "# infolink "
deny from 87.192.246.117  "# ibis pa net "
deny from 207.210.105.96  "# global net access "
deny from 217.20.115.84   "# netdirect net "
deny from 66.79.165.43    "# Managed Solutions "
deny from 72.215.220.52   "# cox comm "
deny from 207.67.117.178  "# time warner "
deny from 216.91.52.168   "# savvis "
deny from 64.27.10.199    "# hollywood interactive "
deny from 213.22.94.50    "# tvcabo "
deny from 216.240.146.118 "# atmlink "
deny from 64.27.13.218    "# hollywood interactive "
deny from 81.223.153.134  "# technix internet "

# GENERAL IDIOTS
deny from 38.99.201.82    "# Performance Systems International Inc "
deny from 70.249.74.134   "# att internet services "
deny from 72.36.115.56    "# CazoodleBot Crawler "
deny from 63.113.69.15    "# mci comm "
deny from 64.79.200.190   "# name intelligence "
deny from 65.69.224.10    "# att "
deny from 67.159.26.63    "# FDC Servers net LLC "
deny from 69.72.254.194   "# fortress itx "
deny from 208.179.126.38  "# Tierzero "
deny from 69.89.21.79     "# bluehost "
deny from 65.228.131.12   "# UUNET Technologies "
deny from 71.6.196.212    "# California Regional Intranet "
deny from 66.46.177.240   "# Allstream Corp Corporation Allstream "
deny from 72.215.220.52   "# 7 plugin tips cracker at Cox Comm "
deny from 66.135.39.227   "# Server Beach "
deny from 64.26.63.10     "# Hostway Corp "
deny from 66.11.122.72    "# Suavemente "
deny from 69.65.46.207    "# GigeNET "
deny from 67.192.61.246   "# Rackspace "
deny from 69.64.77.25     "# Abacus America "
deny from 207.7.108.203   "# Textdrive "
deny from 209.123.207.130 "# Net Access Corp "
deny from 72.249.45.76    "# Colo4Dallas LP COLO4 BLK2 "
deny from 70.103.251.5    "# Electric Lightwave Inc "
deny from 65.44.66.100    "# XO Communications "
deny from 72.20.4.66      "# Staminus Communications "
deny from 66.235.180.189  "# HopOne Internet Corporation "
deny from 196.40.106.216  "# African Network "
deny from 64.27.143.218   "# Novacon "
deny from 66.158.134.10   "# B2B2C Inc "
deny from 71.13.68.206    "# Charter Communications "
deny from 72.55.156.153   "# Groupe iWeb Technologies inc. "
deny from 72.51.42.202    "# Peer 1 Network Inc. "
deny from 72.55.148.27    "# Groupe iWeb Technologies inc. "
deny from 82.158.142.161  "# dyn.user.ono.com "
deny from 144.226.173.68  "# Sprint "
deny from 199.233.91.129  "# J.E.D.I. Network "
deny from 208.53.147.60   "# FDC Servers.net, LLC "
deny from 208.80.193.39   "# Websense, Inc "
deny from 216.118.97.226  "# Net Access Corporation "
deny from 216.177.128.128 "# Speedfox, Inc "
deny from 216.215.70.242  "# Logix Communications "
deny from 69.12.121.5     "# Netfire.com "
deny from 216.17.101.126  "# Phatservers.net "
&lt;/LIMIT&gt;</pre><p>Adieux les mails sous forme de mail[at]gmail[dot]com !</p><p>Source: <a href="http://perishablepress.com/press/2008/02/24/over-150-of-the-worst-spammers-scrapers-and-crackers-from-2007/">Over  150 of the Worst Spammers, Scrapers and Crackers from 2007</a></p><h3>5) Protéger votre blog des injections de code</h3><p><img class="aligncenter" src="http://www.geeknoise.com/cdn/wp-content/uploads/2010/07/injection-code.png" alt="image" /></p><p><strong>Le problème:</strong> Protéger les sites web dynamique est très important. La plus part des dévelopoppeurs protègent toujours leurs GET et POST. Mais nous devonts aussi protéger les GLOBALS et _REQUEST des modifications.</p><p><strong>La solution: </strong>Nous allons empécher la modification des GLOBALS et _REQUEST. Ouvrez votre fichier .htaccess, et ajoutez y ce code :</p><pre>Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} (\&lt;|%3C).*script.*(\&gt;|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index.php [F,L]</pre><p>Source: <a href="http://blog.galerie-cesar.com/proteger-son-site-avec-fichier-htaccess/">Protéger  Son Site Avec Un Fichier .htaccess</a></p><h3>6) Protéger votre contenu du vol</h3><p><img class="aligncenter" src="http://www.geeknoise.com/cdn/wp-content/uploads/2010/07/vol.png" alt="image" /></p><p><strong>Le problème: </strong>Non, pas voler, comme un oiseau, mais voler, comme euh..voler une banque <img src='http://www.geeknoise.com/cdn/wp-includes/images/smilies/icon_razz.gif' alt=':razz:' class='wp-smiley' /> . Le problème qui se pose donc, est que si votre blog n&#8217;est pas trop connu, quelqu&#8217;un de mal intentionné peut vous voler vos articles, et faire des liens sur vos images sans votre autorisation. Ce qui mène à consommer votre bande passante.</p><p><strong>La solution:</strong> Ouvrez encore, et toujours votre fichier magique .htaccess, et copiez y :</p><pre>RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?geeknoise\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
#Replacez /images/fuckyou.jpg par votre image d'avertissement
RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/fuckyou.jpg [L]</pre><p>Et n&#8217;oubliez pas pas de remplacer &laquo;&nbsp;geeknoise.com&nbsp;&raquo; par votre site, et fuckyou.jpg par votre image d&#8217;avertissement  Explication: Une fois que vous ayez enregistré votre fichier, seulement votre site sera cappable de faire un lien vers vos images, et dans le cas échéant, l&#8217;image fuckyou.jpg sera affichée. <img src='http://www.geeknoise.com/cdn/wp-includes/images/smilies/icon_cry.gif' alt=':cry:' class='wp-smiley' /> <small>Source: <a href="http://www.catswhoblog.com/how-to-protect-your-blog-from-content-thieves">How  to Protect Your Blog from Content Thieves</a></small></p><h3>7) Supprimer les informations de version</h3><p><img class="aligncenter" src="http://www.geeknoise.com/cdn/wp-content/uploads/2010/07/version-wp.png" alt="image" /></p><p><strong>Le problème:</strong> Allez sur votre site, affichez le code source, et vous allez voir une mêta donnée du <abbr title="Content Management System">CMS</abbr> utilisé, ainsi que de sa version. Ainsi, quelqu&#8217;un peut facilement trouver un exploit compatible avec votre version, et vous hacker votre blog ! <strong></strong></p><p><strong>La solution: </strong>Même si vous supprimez la mêta dans votre header.php, elle sera affichée dans d&#8217;autres pages de votre blog ! Donc, la solution, ouvrez votre fichier functions.php, et collez-y ceci:</p><div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">remove_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wp_head'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'wp_generator'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p><strong>Explication:</strong> La fonction wp_generator, génère le numéro de version de WordPress. On a simplement supprimé cette action avec remove_action() <img src='http://www.geeknoise.com/cdn/wp-includes/images/smilies/icon_smile.gif' alt=':smile:' class='wp-smiley' /> . <small>Source: <a href="http://digwp.com/2009/07/remove-wordpress-version-number/">How  to Remove the WordPress Version Number (the Right Way)</a></small></p><h3>8 ) Changer le nom d&#8217;utilisateur par défaut</h3><p><strong>Le problème:</strong> À l&#8217;installation de votre blog WordPress, le nom d&#8217;utilisateur par défaut est &laquo;&nbsp;admin&nbsp;&raquo;. Ce qui pose un problème, c&#8217;est que le hacker &#8211; connaissant le nom d&#8217;utilisateur qui est &laquo;&nbsp;admin&nbsp;&raquo; &#8211; va tenter alors de bruteforcer le mot de passe.<br /> <strong>La solution:</strong> Exécutez cette requête <abbr title="Structured Query Language">SQL</abbr> :</p><div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">UPDATE</span> wp_users <span style="color: #993333; font-weight: bold;">SET</span> user_login <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'Nouveau nom utilisateur'</span> <span style="color: #993333; font-weight: bold;">WHERE</span> user_login <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'Admin'</span>;</pre></div></div><p>Et voilà, vous avez changé de nom ! <img src='http://www.geeknoise.com/cdn/wp-includes/images/smilies/icon_razz.gif' alt=':razz:' class='wp-smiley' /></p><h3>9) Empêcher la navigation dans les répertoires du site</h3><p><img class="aligncenter" src="http://www.geeknoise.com/cdn/wp-content/uploads/2010/07/indexof.png" alt="image" /><br /> <strong><br /> Le problème:</strong> Par défaut, la plus part des hébergeurs autorisent la navigation dans les répertoires du site. Alors vos visiteurs pourront voir tout ce qui se cache sur votre site !</p><p><strong>La solution:</strong> Pour pallier ce problème, ouvrez votre fichier .htaccess de la mort qui tue, et mettez-y cela :</p><pre>Options -Indexes
</pre><h3>10) Un Anti-Brutforce: Login LockDown</h3><p><img class="aligncenter" src="http://www.geeknoise.com/cdn/wp-content/uploads/2010/07/login-wp.png" alt="image" /><br /> On termine avec un joli plugin indispensable à votre blog, pour que mon <a href="http://geeknoise.com/faille-wordpress-2-x-avec-exploit/">tuto</a> ne soit pas réalisable sur votre site ! Ce plugin bloque l&#8217;accès à une adresse <abbr title="Internet Protocol">IP</abbr>, après un certain nombre d&#8217;essais d&#8217;identification foireux.</p><p><a href="http://wordpress.org/extend/plugins/login-lockdown/">- Télécharger Login LockDown -</a></p><div id="fb-like" style=""><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.geeknoise.com/10-astuces-pour-scuriser-au-maximum-wordpress/&amp;layout=standard&amp;show_faces=true&amp;width=640&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:640px; height:px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://www.geeknoise.com/10-astuces-pour-scuriser-au-maximum-wordpress/feed/</wfw:commentRss> <slash:comments>11</slash:comments> </item> <item><title>Devenez auteur, Et contribuez à enrichir GeekNoise</title><link>http://www.geeknoise.com/devenir-auteur/</link> <comments>http://www.geeknoise.com/devenir-auteur/#comments</comments> <pubDate>Tue, 29 Jun 2010 10:53:41 +0000</pubDate> <dc:creator>ly3s</dc:creator> <category><![CDATA[GeekNoise]]></category> <category><![CDATA[vie du blog]]></category><guid isPermaLink="false">http://www.geeknoise.com/?p=594</guid> <description><![CDATA[Bonjour tout le monde,J'ai remarqué que mes fidèles lecteurs demandent encore, et toujours plus de contenu. Et comme ce n'est pas très évidant de vous trouver un super truc de la mort qui tue à vous mettre sous la dent, j'ai décidé d'ouvrir le site pour accueillir d'autres auteurs Geeks !]]></description> <content:encoded><![CDATA[<p>Bonjour tout le monde,</p><p>J&#8217;ai remarqué que mes fidèles lecteurs demandent encore, et toujours plus de contenu. Et comme ce n&#8217;est pas très évidant de vous trouver un super truc de la mort qui tue à vous mettre sous la dent, j&#8217;ai décidé d&#8217;ouvrir le site pour accueillir d&#8217;autres auteurs Geeks !</p><h3>Pourquoi donc ?</h3><p>Eh bien, logiquemen:</p><p>Plus d&#8217;auteurs = Plus de contenu = Plus de lecteurs satisfaits</p><h3>Les règles à respecter</h3><p>Pour devenir auteur, vous devez respectez ces quelques règles :</p><ul><li>Ne pas faire de copier/coller en entier d&#8217;un autre site.</li><li>Avoir des compétences en Sécurité Informatique, le développement web et/ou GNU/Linux et logiciels libres.</li><li>Être cool, toujours cool <img src='http://www.geeknoise.com/cdn/wp-includes/images/smilies/icon_cool.gif' alt=':cool:' class='wp-smiley' /></li><li>Éviter au maximum les fautes d&#8217;orthographes</li><li>Avoir l&#8217;esprit de partage, et accepter que vos articles soient sous licence <a href="http://creativecommons.org/licenses/by-sa/2.5/">Creative Commons </a>.</li></ul><p>Si vous êtes d&#8217;accord avec ces règles, pour êtes prêts à écrire ! Et pour se faire, laissez un commentaire sur ce poste, où contactez moi à cette adresse: <strong>ly3s</strong>[underscore]<strong>bz7</strong>[at]<strong>hotmail</strong>[dot]<strong>com</strong></p><p>Je suis sûr qu&#8217;au fil du temps, ce site sera connu de tous !</p><p>NB: Merci de partager le lien du site à tous vos amis <img src='http://www.geeknoise.com/cdn/wp-includes/images/smilies/icon_evil.gif' alt=':evil:' class='wp-smiley' /></p><div id="fb-like" style=""><iframe src="http://www.facebook.com/plugins/like.php?href=http://www.geeknoise.com/devenir-auteur/&amp;layout=standard&amp;show_faces=true&amp;width=640&amp;action=like&amp;font=&amp;colorscheme=light&amp;locale=en_US" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:640px; height:px"></iframe></div>]]></content:encoded> <wfw:commentRss>http://www.geeknoise.com/devenir-auteur/feed/</wfw:commentRss> <slash:comments>9</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching 8/21 queries in 0.012 seconds using disk
Content Delivery Network via www.geeknoise.com/cdn

Served from: www.geeknoise.com @ 2010-09-08 20:14:20 -->