<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">
<channel>
    <title>MID [Serendipity Weblog] - Serendipity</title>
    <link>http://blog.till-daylight.org/</link>
    <description>MS-Kの適当なダイアリー</description>
    <dc:language>ja</dc:language>
    <generator>Serendipity 1.0 - http://www.s9y.org/</generator>
    <pubDate>Fri, 28 Dec 2007 12:14:18 GMT</pubDate>

    <image>
        <url>/templates/nm/img/feed.png</url>
        <title>RSS: MID [Serendipity Weblog] - Serendipity - MS-Kの適当なダイアリー</title>
        <link>http://blog.till-daylight.org/</link>
        <width>12</width>
        <height>12</height>
    </image>

<item>
    <title>年末年始はコメント遮断します</title>
    <link>http://blog.till-daylight.org/archives/198-unknown.html</link>
            <category>Serendipity</category>
    
    <comments>http://blog.till-daylight.org/archives/198-unknown.html#comments</comments>
    <wfw:comment>http://blog.till-daylight.org/wfwcomment.php?cid=198</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.till-daylight.org/rss.php?version=2.0&amp;type=comments&amp;cid=198</wfw:commentRss>
    

    <author>nospam@example.com (MS-K)</author>
    <content:encoded>
    &lt;p&gt;
年末年始は管理があまりできなくなります。&lt;br /&gt;
でもってこういう時期は決まってspamコメントが多くなりますので、一時的に全てのコメントを遮断させていただきます。&lt;br /&gt;
ご容赦願います。JAH来年まで(^.^)/~~~
&lt;/p&gt;  
    </content:encoded>

    <pubDate>Fri, 28 Dec 2007 21:14:18 +0900</pubDate>
    <guid isPermaLink="false">http://blog.till-daylight.org/archives/198-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.1/jp/</creativeCommons:license>
</item>
<item>
    <title>ドメインの変更を行いました。</title>
    <link>http://blog.till-daylight.org/archives/192-unknown.html</link>
            <category>Serendipity</category>
    
    <comments>http://blog.till-daylight.org/archives/192-unknown.html#comments</comments>
    <wfw:comment>http://blog.till-daylight.org/wfwcomment.php?cid=192</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://blog.till-daylight.org/rss.php?version=2.0&amp;type=comments&amp;cid=192</wfw:commentRss>
    

    <author>nospam@example.com (MS-K)</author>
    <content:encoded>
    &lt;p&gt;
&lt;small&gt;
長らく &lt;em&gt;ms-k.serveblog.net&lt;/em&gt; として公開してきたこのBlogですが、&lt;br /&gt;
&lt;a href=&quot;http://www.no-ip.com/&quot; &gt;no-ip&lt;/a&gt; での定期的なIPアドレス更新作業がうっとうしくなってきたため、新規ドメインでの運用としました。&lt;br /&gt;
ここは固定IPアドレスでの運用なので、no-ip から時々チェック入るんですよ &lt;img src=&quot;http://blog.till-daylight.org/templates/nm/img/emoticons/wink.png&quot; alt=&quot;;-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; 
&lt;/small&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;em&gt;2007-09-20&lt;/em&gt;からは&lt;big&gt;&lt;em&gt;http://blog.till-daylight.org/&lt;/em&gt;&lt;/big&gt;となります。&lt;br /&gt;
よろしくお願いいたします。
&lt;/p&gt;
  
    </content:encoded>

    <pubDate>Thu, 20 Sep 2007 12:54:01 +0900</pubDate>
    <guid isPermaLink="false">http://blog.till-daylight.org/archives/192-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.1/jp/</creativeCommons:license>
</item>
<item>
    <title>SerendipityをSQLiteからMySQLに移行完了</title>
    <link>http://blog.till-daylight.org/archives/142-SerendipitySQLiteMySQL.html</link>
            <category>PHP</category>
            <category>FreeBSD</category>
            <category>Serendipity</category>
    
    <comments>http://blog.till-daylight.org/archives/142-SerendipitySQLiteMySQL.html#comments</comments>
    <wfw:comment>http://blog.till-daylight.org/wfwcomment.php?cid=142</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.till-daylight.org/rss.php?version=2.0&amp;type=comments&amp;cid=142</wfw:commentRss>
    

    <author>nospam@example.com (MS-K)</author>
    <content:encoded>
    &lt;p&gt;
昨年から仕事の合間にやっていたSQLiteからMySQLへの移行を完了しました。
&lt;/p&gt;

&lt;p&gt;&lt;big&gt;&lt;em&gt;が、&lt;/em&gt;&lt;/big&gt;&lt;/p&gt;

&lt;p&gt;
データバックアップのポカで最近の数エントリは消失させてしまいました。&lt;br /&gt;
あと、コメントとトラバとリファラは仕様のため空になりました&lt;(_ _)&gt;&lt;br /&gt;
申し訳ないです。。。
&lt;/p&gt;  
    </content:encoded>

    <pubDate>Thu, 25 Jan 2007 10:00:52 +0900</pubDate>
    <guid isPermaLink="false">http://blog.till-daylight.org/archives/142-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.1/jp/</creativeCommons:license>
</item>
<item>
    <title>SerendipityをSQLiteからMySQLに移行(3)</title>
    <link>http://blog.till-daylight.org/archives/141-SerendipitySQLiteMySQL3.html</link>
            <category>PHP</category>
            <category>FreeBSD</category>
            <category>Serendipity</category>
    
    <comments>http://blog.till-daylight.org/archives/141-SerendipitySQLiteMySQL3.html#comments</comments>
    <wfw:comment>http://blog.till-daylight.org/wfwcomment.php?cid=141</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.till-daylight.org/rss.php?version=2.0&amp;type=comments&amp;cid=141</wfw:commentRss>
    

    <author>nospam@example.com (MS-K)</author>
    <content:encoded>
    &lt;p&gt;

データベースディレクトリを変更するので&lt;br /&gt;

＃vi /etc/rc.conf

&lt;/p&gt;



&lt;pre&gt;&lt;code&gt;mysql_enable=&quot;YES&quot;
mysql_dbdir=&quot;/usr/local/db/mysql&quot;
&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;

コンフィグファイルを /etcにコピー。&lt;br /&gt;

＃cp /usr/local/share/mysql/my-medium.cnf /etc/my.cnf&lt;br /&gt;

＃chmod 644 /etc/my.cnf&lt;br /&gt;

＃vi /etc/my.cnf

&lt;/p&gt;



&lt;pre&gt;&lt;code&gt;[mysqld]
default-character-set=utf8
skip-character-set-client-handshake
&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;

管理者パスワードを設定。&lt;br /&gt;

＃mysqladmin -u root -p password &#039;ms-k12345&#039;&lt;br /&gt;

Enter Password: [Enter]

&lt;/p&gt;



&lt;p&gt;

不要ユーザーを削除。&lt;br /&gt;

&lt;a href=&quot;http://www.bugbearr.jp/?cmd=read&amp;page=FreeBSD%2FMySQL&quot; &gt;FreeBSD/MySQL&lt;/a&gt;さんや&lt;a href=&quot;http://uls.fam.cx/freebsd/archives/000692.html&quot; &gt;FreeBSDな生活&lt;/a&gt;さんがわかりやすいです。&lt;br /&gt;

私は以下と同様にHostがlocalhost以外のものを削除しました。 

&lt;/p&gt;



&lt;blockquote cite=&quot;http://www.bugbearr.jp/?cmd=read&amp;page=FreeBSD%252FMySQL&quot; title=&quot;不要なユーザーを削除する：FreeBSD/MySQL&quot;&gt;

FreeBSD の ports でインストールすると、以下のユーザーがいるはず。(your.host.name は、マシンのホスト名)

&lt;ul&gt;

&lt;li&gt;root@localhost&lt;/li&gt;

&lt;li&gt;root@your.host.name&lt;/li&gt;

&lt;li&gt;@localhost&lt;/li&gt;

&lt;li&gt;@your.host.name&lt;/li&gt;

&lt;/ul&gt;



これを、以下のみとする。

&lt;ul&gt;

&lt;li&gt;root@localhost&lt;/li&gt;

&lt;li&gt;@localhost&lt;/li&gt;

&lt;/ul&gt;



(&#039;&#039;@localhost も制限した方がいいかも?)

&lt;/blockquote&gt;



&lt;p&gt;

PHPのMysqlモジュールは組込み済みなので、後はやっとSerendipityの再設定です。

&lt;/p&gt;  
    </content:encoded>

    <pubDate>Sat, 02 Dec 2006 10:07:52 +0900</pubDate>
    <guid isPermaLink="false">http://blog.till-daylight.org/archives/141-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.1/jp/</creativeCommons:license>
</item>
<item>
    <title>SerendipityをSQLiteからMySQLに移行(2)</title>
    <link>http://blog.till-daylight.org/archives/140-SerendipitySQLiteMySQL2.html</link>
            <category>PHP</category>
            <category>FreeBSD</category>
            <category>Serendipity</category>
    
    <comments>http://blog.till-daylight.org/archives/140-SerendipitySQLiteMySQL2.html#comments</comments>
    <wfw:comment>http://blog.till-daylight.org/wfwcomment.php?cid=140</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.till-daylight.org/rss.php?version=2.0&amp;type=comments&amp;cid=140</wfw:commentRss>
    

    <author>nospam@example.com (MS-K)</author>
    <content:encoded>
    &lt;p&gt;

linuxthreads のインストールが無事完了したので、改めてMySQLを。&lt;br /&gt;

あ、これまだテスト用ローカルサーバでの話です。

&lt;/p&gt;



&lt;p&gt;

＃cd /usr/ports/databases/mysql50-server&lt;br /&gt;

＃make deinstall&lt;br /&gt;

＃vi Makefile

&lt;/p&gt;



&lt;pre&gt;&lt;code&gt;＃CONFIGURE_ARGS= --localstatedir=/var/db/mysql 

CONFIGURE_ARGS= --localstatedir=/usr/local/db/mysql 

&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;

＃make WITH_LINUXTHREADS=yes&lt;br /&gt;

＃make install clean

&lt;/p&gt;



&lt;p&gt;

昨日の作業なのであまり正確ではありませんが(^^ゞ&lt;br /&gt;

っつーか忙しくてこれっぽっちのペースでしか進んでいないあたり、逆に効率悪いです。&lt;br /&gt;

この手の作業は集中して一気にやらないと。&lt;br /&gt;

っつーか、こんなに分割したらリソースとして使いづらい &lt;img src=&quot;http://blog.till-daylight.org/templates/nm/img/emoticons/sad.png&quot; alt=&quot;:-(&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; 

&lt;/p&gt;  
    </content:encoded>

    <pubDate>Thu, 30 Nov 2006 21:09:04 +0900</pubDate>
    <guid isPermaLink="false">http://blog.till-daylight.org/archives/140-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.1/jp/</creativeCommons:license>
</item>
<item>
    <title>SerendipityをSQLiteからMySQLに移行(1)</title>
    <link>http://blog.till-daylight.org/archives/138-SerendipitySQLiteMySQL1.html</link>
            <category>PHP</category>
            <category>FreeBSD</category>
            <category>Serendipity</category>
    
    <comments>http://blog.till-daylight.org/archives/138-SerendipitySQLiteMySQL1.html#comments</comments>
    <wfw:comment>http://blog.till-daylight.org/wfwcomment.php?cid=138</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.till-daylight.org/rss.php?version=2.0&amp;type=comments&amp;cid=138</wfw:commentRss>
    

    <author>nospam@example.com (MS-K)</author>
    <content:encoded>
    &lt;p&gt;

訳あってこのBlogをSQLiteからMySQLに移行することにしたのでメモ。&lt;br /&gt;

ちなみにこれまた訳あってFreeBSD4です。

&lt;/p&gt;



&lt;p&gt;

＃cd /usr/ports/databases/mysql51-server&lt;br /&gt;

＃vi Makefile&lt;br /&gt;

容量などの問題で/var以下にデータベースディレクトリができるのは嫌なので、

&lt;/p&gt;



&lt;pre&gt;&lt;code&gt;＃CONFIGURE_ARGS= --localstatedir=/var/db/mysql 

CONFIGURE_ARGS= --localstatedir=/usr/local/db/mysql 

&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;

＃make

&lt;/p&gt;



&lt;p&gt;

&lt;big&gt;エラーでmake失敗&lt;/big&gt;（笑）、&lt;a href=&quot;http://www.mysql.gr.jp/frame/modules/news/article.php?storyid=87&quot;  title=&quot;MyNAのニュース&quot;&gt;これでしょうか&lt;/a&gt;。

&lt;/p&gt;



&lt;blockquote cite=&quot;http://www.mysql.gr.jp/frame/modules/news/article.php?storyid=87&quot; title=&quot;MySQL5.1.12-beta には NDB と パーティショニングが含まれていません&quot;&gt;

先日 バージョン5.1シリーズとしては久々に バージョン5.1.12 がリリースされましたが、

この 5.1.12 には コンパイル時の不手際により NDB クラスタもパーティショニング機能も含まれていなかったようです。&lt;br /&gt;

バージョン 5.1.13 が公開され次第アップグレードすることが勧められています。&lt;br /&gt;

なお、5.1.13 は現時点ではまだミラーへの配布すら行われていないようですので、公開までもう数日から１週間以上かかるものと見込まれます。

5.1.12 で新機能を検証しようとしている方はご注意を。

&lt;/blockquote&gt;



&lt;p&gt;

気を取り直して&lt;br /&gt;

＃cd /usr/ports/databases/mysql50-server&lt;br /&gt;

＃vi Makefileで、上記と同様にデータベースディレクトリを変更します。&lt;br /&gt;

これで無事にmakeまで完了なのですが、いかんせん&lt;em&gt;WITH_LINUXTHREADS=yes&lt;/em&gt;していないあたりが不安を誘います。 &lt;img src=&quot;http://blog.till-daylight.org/templates/nm/img/emoticons/sad.png&quot; alt=&quot;:-(&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; &lt;br /&gt;

ということで、ここでいったんやめておいて、ローカルマシンでLINUXTHREADSのインストールテストをしてみます。

&lt;/p&gt; &lt;p&gt;

LINUXTHREADSをインストールするにはFreeBSDのソースが必要なのですが、ああ、ｓｙｓ以外入れてないんだった… ということで、

&lt;/p&gt;



&lt;p&gt;

＃cp /usr/share/examples/cvsup/standard-supfile /etc/src-supfile&lt;br /&gt;

＃chmod 644 /etc/src-supfile&lt;br /&gt;

＃vi /etc/src-supfile&lt;br /&gt;

これだけのためにソースを全部入れても仕方ないので、

&lt;/p&gt;



&lt;pre&gt;&lt;code&gt;＃src-all ←コメントアウト
src-base
src-contlib
src-gnu
src-lib
src-release
src-usrbin
&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;

ヤマカンおよびエラーメッセージから上記をインストールしておきます。&lt;br /&gt;

＃cvsup -g -L 2 /etc/src-supfile

&lt;/p&gt;



&lt;p&gt;

＃cd /usr/ports/devel/linuxthreads&lt;br /&gt;

＃make install clean&lt;br /&gt;

ここまで無事完了。&lt;br /&gt;

疲れたのでまた明日。

&lt;/p&gt; 
    </content:encoded>

    <pubDate>Mon, 27 Nov 2006 11:35:38 +0900</pubDate>
    <guid isPermaLink="false">http://blog.till-daylight.org/archives/138-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.1/jp/</creativeCommons:license>
</item>
<item>
    <title>serendipity_plugin_audioscrobbler が修正された</title>
    <link>http://blog.till-daylight.org/archives/128-serendipity_plugin_audioscrobbler.html</link>
            <category>Serendipity</category>
    
    <comments>http://blog.till-daylight.org/archives/128-serendipity_plugin_audioscrobbler.html#comments</comments>
    <wfw:comment>http://blog.till-daylight.org/wfwcomment.php?cid=128</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://blog.till-daylight.org/rss.php?version=2.0&amp;type=comments&amp;cid=128</wfw:commentRss>
    

    <author>nospam@example.com (MS-K)</author>
    <content:encoded>
    &lt;p&gt;

先日&lt;a href=&quot;http://ms-k.serveblog.net/archives/125-serendipity_plugin_audioscrobbler.html&quot;&gt;serendipity_plugin_audioscrobbler がダメっぽい&lt;/a&gt;とのことで、自分でいろいろ試した結果、全然負け組みだったので、&lt;a href=&quot;http://www.s9y.org/forums/viewtopic.php?t=7174&quot;  title=&quot;s9yフォーラム&quot;&gt;s9yのフォーラム&lt;/a&gt;を見たところ同様の現象の人がいるようで、私も投稿してみました。&lt;br /&gt;

が、デベロッパー自身はこのプラグインを使っていないようで「よくわからんから作者に連絡してみて」と言われ、さっそくつたない英語でヘルプミーのメールを出しました。

&lt;/p&gt;



&lt;p&gt;

作者から直接のメールは来ませんでしたが、フォーラムにレスポンスあり。&lt;br /&gt;

「今週末に見てみる」とのことで、っつーかそのレスのあった今日が今週末なんですけどと思いながら読んでいたら、いきなり&lt;a href=&quot;http://php-blog.cvs.sourceforge.net/php-blog/additional_plugins/serendipity_plugin_audioscrobbler/&quot; &gt;CVSに反映&lt;/a&gt;したようで、解決です。

&lt;/p&gt;



&lt;p&gt;

オープンソースの素晴らしい一面を見せていただきました&lt;(_ _)&gt;&lt;br /&gt;

Thanks a lot!

&lt;/p&gt;  
    </content:encoded>

    <pubDate>Fri, 06 Oct 2006 21:14:37 +0900</pubDate>
    <guid isPermaLink="false">http://blog.till-daylight.org/archives/128-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.1/jp/</creativeCommons:license>
</item>
<item>
    <title>serendipity_plugin_audioscrobbler がダメっぽい</title>
    <link>http://blog.till-daylight.org/archives/125-serendipity_plugin_audioscrobbler.html</link>
            <category>Serendipity</category>
    
    <comments>http://blog.till-daylight.org/archives/125-serendipity_plugin_audioscrobbler.html#comments</comments>
    <wfw:comment>http://blog.till-daylight.org/wfwcomment.php?cid=125</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.till-daylight.org/rss.php?version=2.0&amp;type=comments&amp;cid=125</wfw:commentRss>
    

    <author>nospam@example.com (MS-K)</author>
    <content:encoded>
    &lt;p&gt;

&lt;a href=&quot;http://www.last.fm/user/ms-k/&quot; &gt;last.fm&lt;/a&gt;の&lt;a href=&quot;http://ws.audioscrobbler.com/1.0/user/ms-k/recenttracks.rss&quot; &gt;RSSのURIが変わった&lt;/a&gt;こともあって、このページ最下部の「最新BGM」が表示されなくなってしまいました。

&lt;/p&gt;



&lt;p&gt;

serendipity_plugin_audioscrobbler.phpのソースで指定してあるRSS部分を修正したのですが、ダメでした。&lt;br /&gt;

パースの問題かもしれませんが、私にはわかりません…&lt;br /&gt;

ということで、しばらくはこのまま &lt;img src=&quot;http://blog.till-daylight.org/templates/nm/img/emoticons/cry.png&quot; alt=&quot;:&#039;(&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; 

&lt;/p&gt;  
    </content:encoded>

    <pubDate>Wed, 04 Oct 2006 20:42:45 +0900</pubDate>
    <guid isPermaLink="false">http://blog.till-daylight.org/archives/125-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.1/jp/</creativeCommons:license>
</item>
<item>
    <title>serendipity 静的ページの検索表示修正</title>
    <link>http://blog.till-daylight.org/archives/110-serendipity.html</link>
            <category>Serendipity</category>
    
    <comments>http://blog.till-daylight.org/archives/110-serendipity.html#comments</comments>
    <wfw:comment>http://blog.till-daylight.org/wfwcomment.php?cid=110</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.till-daylight.org/rss.php?version=2.0&amp;type=comments&amp;cid=110</wfw:commentRss>
    

    <author>nospam@example.com (MS-K)</author>
    <content:encoded>
    Staticpage（静的ページ）でプロフィールを明記するのにtableを使ったところ、クイックサーチの結果表示がえらいことになってしまいました。



&lt;pre&gt;&lt;code&gt;＜ul class=&quot;staticpage_result&quot;＞

＜li＞＜strong＞＜a href=&quot;http://blog.till-daylight.org/pages/profile.html&quot; title=&quot;profile&quot;＞プロフィール＜/a＞＜/strong＞ (MS-K)＜br /＞



＜table summary=&quot;プロフィール一覧&quot; rules=&quot;all&quot; border=&quot;1&quot; id=&quot;prof_t&quot;＞

＜tr＞

＜th＞Blogオーナー＜/th＞＜td＞MS-K＜/td＞

＜/tr＞



＜tr＞ ... ＜/li＞

＜/ul＞

&lt;/code&gt;&lt;/pre&gt;



上記のようにtableが閉じないので、ここ以下の表示がわやです。&lt;br /&gt;

ということで、/plugins/serendipity_event_staticpage/plugin_staticpage_searchresults.tplを修正です。

&lt;pre&gt;&lt;code&gt;--- plugin_staticpage_searchresults.tpl.BAK	Tue Aug 01 22:32:02 2006

+++ plugin_staticpage_searchresults.tpl	Tue Aug 01 22:32:41 2006

@@ -3,8 +3,7 @@

 

     ＜ul class=&quot;staticpage_result&quot;＞

     {foreach from=$staticpage_results item=&quot;result&quot;}

-        ＜li＞＜strong＞＜a href=&quot;{$result.permalink|@escape}&quot; title=&quot;{$result.pagetitle|@escape}&quot;＞{$result.headline}＜/a＞＜/strong＞ ({$result.realname})＜br /＞

-        {$result.content|@truncate:200:&quot; ... &quot;}＜/li＞

+        ＜li＞＜strong＞＜a href=&quot;{$result.permalink|@escape}&quot; title=&quot;{$result.pagetitle|@escape}&quot;＞{$result.headline}＜/a＞＜/strong＞ ({$result.realname})＜/li＞

     {/foreach}

     ＜/ul＞

 ＜/div＞

&lt;/code&gt;&lt;/pre&gt;



結果



&lt;pre&gt;&lt;code&gt;＜ul class=&quot;staticpage_result&quot;＞

＜li＞＜strong＞＜a href=&quot;http://blog.till-daylight.org/pages/profile.html&quot; title=&quot;profile&quot;＞プロフィール＜/a＞＜/strong＞ (MS-K)＜/li＞

＜/ul＞

&lt;/code&gt;&lt;/pre&gt;



OK。  
    </content:encoded>

    <pubDate>Tue, 01 Aug 2006 22:34:23 +0900</pubDate>
    <guid isPermaLink="false">http://blog.till-daylight.org/archives/110-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.1/jp/</creativeCommons:license>
</item>
<item>
    <title>アンテナ文字化け？</title>
    <link>http://blog.till-daylight.org/archives/109-unknown.html</link>
            <category>Serendipity</category>
    
    <comments>http://blog.till-daylight.org/archives/109-unknown.html#comments</comments>
    <wfw:comment>http://blog.till-daylight.org/wfwcomment.php?cid=109</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.till-daylight.org/rss.php?version=2.0&amp;type=comments&amp;cid=109</wfw:commentRss>
    

    <author>nospam@example.com (MS-K)</author>
    <content:encoded>
    &lt;p&gt;

あ、今気づいたのですが、&lt;br /&gt;

このページの下の方の「MS-K&#039;s アンテナ」、曜日が変ですねぇ。。。。&lt;br /&gt;

五とか六になってます(^_^X)&lt;br /&gt;

クリティカルではないので近いうちに調べます。

&lt;/p&gt;  
    </content:encoded>

    <pubDate>Sun, 30 Jul 2006 21:32:48 +0900</pubDate>
    <guid isPermaLink="false">http://blog.till-daylight.org/archives/109-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.1/jp/</creativeCommons:license>
</item>
<item>
    <title>Serendipity1.0 リリース！</title>
    <link>http://blog.till-daylight.org/archives/98-Serendipity1.0.html</link>
            <category>Serendipity</category>
    
    <comments>http://blog.till-daylight.org/archives/98-Serendipity1.0.html#comments</comments>
    <wfw:comment>http://blog.till-daylight.org/wfwcomment.php?cid=98</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.till-daylight.org/rss.php?version=2.0&amp;type=comments&amp;cid=98</wfw:commentRss>
    

    <author>nospam@example.com (MS-K)</author>
    <content:encoded>
    &lt;blockquote cite=&quot;http://blog.s9y.org/&quot;&gt;

&lt;a href=&quot;http://blog.s9y.org/&quot;  title=&quot;S9Y&quot;&gt;Serendipity 1.0 released!&lt;/a&gt;&lt;br /&gt;

・Fixed all known bugs, making the 1.0 release of Serendipity the most stable version ever

&lt;/blockquote&gt;



&lt;p&gt;

とうとう出ました1.0です。&lt;br /&gt;

現在ローカルマシンに上書きインストールして検証中です。

&lt;/p&gt;



&lt;p&gt;

上書きによるバージョンアップはえらい簡単ですが、自分で書き換えているソースも数箇所あるので、それらを比較および再修正するかどうかがキモとなりそうです。

&lt;/p&gt;



&lt;p&gt;

あ、それと大垣さんのBlogで指摘されていた

「&lt;a href=&quot;http://blog.ohgaki.net/index.php/yohgaki/2006/05/09/a_ei_if_e_e_a_pa_e_oa_a_sa_da_ca_sa_bc&quot;&gt;以下のコードはセキュリティ上大きな問題となる脆弱な処理が含まれています。&lt;/a&gt;」

の件については修正は行われていないです &lt;img src=&quot;http://blog.till-daylight.org/templates/nm/img/emoticons/sad.png&quot; alt=&quot;:-(&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; 

&lt;/p&gt;

  
    </content:encoded>

    <pubDate>Fri, 16 Jun 2006 15:19:50 +0900</pubDate>
    <guid isPermaLink="false">http://blog.till-daylight.org/archives/98-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.1/jp/</creativeCommons:license>
</item>
<item>
    <title>Serendipityのセキュリティホール</title>
    <link>http://blog.till-daylight.org/archives/89-Serendipity.html</link>
            <category>PHP</category>
            <category>Serendipity</category>
    
    <comments>http://blog.till-daylight.org/archives/89-Serendipity.html#comments</comments>
    <wfw:comment>http://blog.till-daylight.org/wfwcomment.php?cid=89</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.till-daylight.org/rss.php?version=2.0&amp;type=comments&amp;cid=89</wfw:commentRss>
    

    <author>nospam@example.com (MS-K)</author>
    <content:encoded>
    先日&lt;a href=&quot;http://blog.ohgaki.net/index.php/yohgaki/2006/05/12/&quot;&gt;yohgaki&#039;s blogさんで取り上げてくれていた「解答：まちがった自動ログイン処理」&lt;/a&gt;



&lt;blockquote cite=&quot;http://blog.ohgaki.net/index.php/yohgaki/2006/05/12/&quot;&gt;

- クッキーにランダム文字列以外の値を設定している&lt;br /&gt;

- クッキーにユーザ名が保存されている&lt;br /&gt;

- クッキーにパスワードが保存されている&lt;br /&gt;

- ユーザ名・パスワードが保存されているクッキーは暗号化されていないBASE64エンコードされたキストである&lt;br /&gt;

- 自動ログイン用にが保存されたクッキー（ユーザ名・パスワード）がアプリケーション全体で有効になっている

&lt;/blockquote&gt;



&lt;p&gt;

これはどう考えても自分では修正不可能なので、（はなから使ってはいませんが）自動ログインを使わないという解決策で甘んじるとして、

&lt;/p&gt;



&lt;a href=&quot;https://www.netsecurity.ne.jp/6_6621.html&quot; &gt;NetSecurityで一部公開されている&lt;/a&gt;件については具体的なことが不明なのでどうしましょう？といった感じです。



&lt;blockquote&gt;

&lt;p&gt;

Serendipityは、config.phpスクリプトが原因でセキュリティホールが存在する。この問題が悪用されると、リモートの攻撃者にシステム上で任意のコードを実行される可能性がある。&lt;br /&gt;

2006/05/08 登録

&lt;/p&gt;



&lt;p&gt;

危険度：中&lt;br /&gt;

影響を受けるバージョン：1.0 beta2&lt;br /&gt;

影響を受ける環境：UNIX、Linux、Windows&lt;br /&gt;

回避策：公表されていません

&lt;/p&gt;&lt;/blockquote&gt;



&lt;p&gt;

詳しい情報は&lt;big&gt;有料&lt;/big&gt;なんですよね～(-_-;)&lt;br /&gt;

ところでconfig.phpっつーのは存在しないんですが、、、、、&lt;br /&gt;

serendipity_config.inc.phpのことかなあ

&lt;/p&gt;



あ、あと管理画面がgoogleに引っかかるのは、どうせBlogから管理画面へのリンクが表示されているにしても気持ち悪いのでserendipity_admin.php 44行目に以下追記。



&lt;pre&gt;&lt;code&gt;＜meta name=&quot;robots&quot; content=&quot;noindex,nofollow&quot; /＞&lt;/code&gt;&lt;/pre&gt;



それとserendipityとPHPのバージョンが表示されるのはどうかと思うので369行目を変更



&lt;pre&gt;&lt;code&gt;＜div id=&quot;serendipityAdminFooter&quot;＞

Powered by Serendipity

＜/div＞&lt;/code&gt;&lt;/pre&gt;  
    </content:encoded>

    <pubDate>Wed, 24 May 2006 20:44:12 +0900</pubDate>
    <guid isPermaLink="false">http://blog.till-daylight.org/archives/89-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.1/jp/</creativeCommons:license>
</item>
<item>
    <title>Serendipity エントリリンクPlugin</title>
    <link>http://blog.till-daylight.org/archives/87-Serendipity-Plugin.html</link>
            <category>PHP</category>
            <category>Serendipity</category>
    
    <comments>http://blog.till-daylight.org/archives/87-Serendipity-Plugin.html#comments</comments>
    <wfw:comment>http://blog.till-daylight.org/wfwcomment.php?cid=87</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.till-daylight.org/rss.php?version=2.0&amp;type=comments&amp;cid=87</wfw:commentRss>
    

    <author>nospam@example.com (MS-K)</author>
    <content:encoded>
    &lt;p&gt;

serendipity_plugin_entrylinks.phpは

&lt;a href=&quot;http://jp2.php.net/manual/ja/function.wordwrap.php&quot;  title=&quot;PHPマニュアル：wordwrap&quot;&gt;wordwrap()&lt;/a&gt;で指定文字での折り返しをするようになっていますが、&lt;a href=&quot;http://jp2.php.net/manual/ja/function.wordwrap.php&quot;  title=&quot;PHPマニュアル：wordwrap&quot;&gt;wordwrap()&lt;/a&gt;には&lt;a href=&quot;http://www.secureinfo.jp/archives/2006/04/php_wordwrap_1.html&quot;  title=&quot;Secureinfo.jp&quot;&gt;最近バグが発見されたばかり&lt;/a&gt;ですし、まあそれは&lt;a href=&quot;http://news.hotphpper.net/archives/371-PHP5.1.3.html&quot;  title=&quot;HotPHPPER News&quot;&gt;修正されました&lt;/a&gt;が、PHPのアップデートもここのところリスキーだし、根本的に日本語ではまともに処理できないので、変更しました。

&lt;/p&gt;



自分の設定に関わる部分だけですが



&lt;pre&gt;&lt;code&gt;--- serendipity_plugin_entrylinks.php.ORG	Fri May 12 12:58:21 2006

+++ serendipity_plugin_entrylinks.php	Fri May 12 13:16:46 2006

@@ -143,7 +143,7 @@

 

         $references = serendipity_db_query(&quot;SELECT link, max(name) as name FROM {$serendipity[&#039;dbPrefix&#039;]}references WHERE entry_id = &quot; . $id . &quot; GROUP BY link&quot;);

         if (is_array($references)) {

-            $links = &#039;＜ul style=&quot;margin: 5px; padding: 10px; text-align: left&quot;＞&#039;;

+            $links = &#039;＜ul style=&quot;margin: 5px; padding-left: 10px; text-align: left&quot;＞&#039;;

             foreach($references AS $key =＞ $row) {

                 if (empty($row[&#039;name&#039;]) || empty($row[&#039;link&#039;])) {

                     continue;

@@ -152,8 +152,9 @@

                 if (isset($counter[$row[&#039;link&#039;]])) {

                     $count = &#039;＜br /＞＜div style=&quot;text-align: right; margin: 0px&quot;＞[&#039; . $counter[$row[&#039;link&#039;]] . &#039;]＜/div＞&#039;;

                 }

+                // Commented by MS-K

                 // $link_name = $wordwrap ＜ 1? $row[&#039;name&#039;]: wordwrap($row[&#039;name&#039;], $wordwrap, &quot;＜br /＞&quot;, 1);

-                $link_name = $wordwrap ＜ 1? $row[&#039;name&#039;]: substr($row[&#039;name&#039;], 0, $wordwrap).&quot;...&quot;;

+                $link_name = mb_strlen($row[&#039;name&#039;]) ＞ $wordwrap ? $link_name = mb_substr($row[&#039;name&#039;], 0, $wordwrap).&#039;..&#039; : $row[&#039;name&#039;];

                 $links .= &#039;＜li＞＜a href=&quot;&#039; . $row[&#039;link&#039;] . &#039;&quot; &#039; . $target . &#039;＞&#039; . $link_name . &quot;＜/a＞$count＜/li＞&quot;;

             }

             $links .= &#039;＜/ul＞&#039;;

&lt;/code&gt;&lt;/pre&gt;



珍しく元ファイルをバックアップしてからやったのでdiff -uできました（笑）  
    </content:encoded>

    <pubDate>Fri, 12 May 2006 15:44:18 +0900</pubDate>
    <guid isPermaLink="false">http://blog.till-daylight.org/archives/87-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.1/jp/</creativeCommons:license>
</item>
<item>
    <title>serendipityの自動ログイン検証</title>
    <link>http://blog.till-daylight.org/archives/86-serendipity.html</link>
            <category>PHP</category>
            <category>Serendipity</category>
    
    <comments>http://blog.till-daylight.org/archives/86-serendipity.html#comments</comments>
    <wfw:comment>http://blog.till-daylight.org/wfwcomment.php?cid=86</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://blog.till-daylight.org/rss.php?version=2.0&amp;type=comments&amp;cid=86</wfw:commentRss>
    

    <author>nospam@example.com (MS-K)</author>
    <content:encoded>
    &lt;a href=&quot;http://kurt0027.arrow.jp/weblife/log/eid33.html&quot;&gt;なーんしかまたーりゆたーり日記中&lt;/a&gt;さんでどういうことなのか書いてあったのであっさり納得してしまいました。

&lt;blockquote cite=&quot;http://kurt0027.arrow.jp/weblife/log/eid33.html&quot;&gt;
危険なログイン認証です。PHPは長らく触ってないけどまずbase64_decodeでbase64エンコードされた文字列を復元。&lt;br /&gt;
次にserializeはdeserialize（こんな関数でしたっけ？）で配列に復元。&lt;br /&gt;
後は配列のusername,passwordの中身が丸わかりー。
&lt;/blockquote&gt;

ということで試してみました。&lt;br /&gt;
こればかりは試さなくて結果は見えていますが、自身のためですので練習代わりに。&lt;br /&gt;
ちなみに自分自身では自動ログイン（ログイン状態を保存）は全く使ってません &lt;img src=&quot;http://blog.till-daylight.org/templates/nm/img/emoticons/cool.png&quot; alt=&quot;8-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; 

&lt;pre&gt;&lt;code&gt;＜?php
// serendipityの自動ログインの暗号化状況を再現
$package = serialize(
            array(
                &quot;username&quot; =＞ &quot;testuser&quot;,
                &quot;password&quot; =＞ &quot;test1234&quot;
            ));

$test_cookie = base64_encode($package);

echo &lt;&lt;&lt; EOD
＜p＞
ちなみにこれがセットされるcookieです。＜br /＞
$test_cookie
＜/p＞

EOD;

// cookieが盗まれたとしてここから復元
$org_cookie = base64_decode($test_cookie);
$author_information = unserialize($org_cookie);

echo &lt;&lt;&lt; EOD
＜p＞
これが配列の中身です。
＜/p＞
＜pre＞

EOD;

var_dump($author_information);
echo &quot;＜/pre＞&quot;;
?＞&lt;/code&gt;
&lt;/pre&gt;

&lt;p&gt;
結果、こんな感じです。
&lt;/p&gt;

&lt;p&gt;
ちなみにこれがセットされるcookieです（改行加えてます）。&lt;br /&gt;
YToyOntzOjg6InVzZXJuYW1lIjtzOjg6InRlc3R1c&lt;br /&gt;
　2VyIjtzOjg6InBhc3N3b3JkIjtzOjg6InRlc3QxMjM0Ijt9
&lt;/p&gt;

&lt;p&gt;
これが配列の中身です。
&lt;/p&gt;

&lt;p&gt;
array(2) {&lt;br /&gt;
　　[&quot;username&quot;]=&gt;&lt;br /&gt;
　　string(8) &quot;testuser&quot;&lt;br /&gt;
　　[&quot;password&quot;]=&gt;&lt;br /&gt;
　　string(8) &quot;test1234&quot;&lt;br /&gt;
}
&lt;/p&gt;  
    </content:encoded>

    <pubDate>Wed, 10 May 2006 20:39:04 +0900</pubDate>
    <guid isPermaLink="false">http://blog.till-daylight.org/archives/86-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.1/jp/</creativeCommons:license>
</item>
<item>
    <title>serendipityの自動ログインが危険！</title>
    <link>http://blog.till-daylight.org/archives/85-serendipity.html</link>
            <category>Serendipity</category>
    
    <comments>http://blog.till-daylight.org/archives/85-serendipity.html#comments</comments>
    <wfw:comment>http://blog.till-daylight.org/wfwcomment.php?cid=85</wfw:comment>

    <slash:comments>4294967295</slash:comments>
    <wfw:commentRss>http://blog.till-daylight.org/rss.php?version=2.0&amp;type=comments&amp;cid=85</wfw:commentRss>
    

    <author>nospam@example.com (MS-K)</author>
    <content:encoded>
    &lt;a href=&quot;http://blog.ohgaki.net/&quot;&gt;yohgaki&#039;s blog&lt;/a&gt;さんで&lt;a href=&quot;http://blog.ohgaki.net/index.php/yohgaki/2006/05/09/a_ei_if_e_e_a_pa_e_oa_a_sa_da_ca_sa_bc&quot; &gt;取り上げられていました&lt;/a&gt;ので、さっそく自分のところも修正しなければ。&lt;br /&gt;

って、自分で調べてわかるだろうか、心配です。&lt;br /&gt;

っつーかどのファイルだこれ？&lt;br /&gt;

&lt;span style=&quot;text-decoration:line-through&quot;&gt;それを探すのが先決でした(^^ゞ&lt;/span&gt;

grepしたら出てきました。&lt;br /&gt;

&lt;em&gt;/include/functions_config.inc.php&lt;/em&gt;ですね。



&lt;blockquote cite=&quot;http://blog.ohgaki.net/index.php/yohgaki/2006/05/09/a_ei_if_e_e_a_pa_e_oa_a_sa_da_ca_sa_bc&quot;&gt;

問題：以下のコードはセキュリティ上大きな問題となる脆弱な処理が含まれています。セキュリティ上のベストプラクティス、他の自動ログインの実装方法と比較し、以下のコードの脆弱性を詳しく述べよ。

&lt;/blockquote&gt;



どうもCookieの取扱いがまずいらしいですが、解答は次のエントリらしいので、

期待とお願いの意味でもTBしとかなければ &lt;img src=&quot;http://blog.till-daylight.org/templates/nm/img/emoticons/tongue.png&quot; alt=&quot;:-P&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;   
    </content:encoded>

    <pubDate>Wed, 10 May 2006 15:36:00 +0900</pubDate>
    <guid isPermaLink="false">http://blog.till-daylight.org/archives/85-guid.html</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by-sa/2.1/jp/</creativeCommons:license>
</item>

</channel>
</rss>