WordPress Plugin :: Anti Spam Image

Posted on 17th January 2006 by Nio in BLOG, 程序人生

之所以开始将 BLOG 从 pMachine 换成 WordPress,主要是觉得后台管理功能比较方便、实用,另外还支持多类别及子类。当然没有任何软件是百分百完美的,WordPress 也不例外,比如评论,默认没有验证码图片,容易被 SPAM 注射垃圾留言。关于验证图片的插件网上也有不少,比如:SecurityImage,但觉得这个过于复杂,最后还是自己写了一个插件 Anti Spam Image,安装方式很简单,将 ZIP 包解开之后,把文件 anti_spam_image.php 复制到 wp-content/plugins/ 目录下,通过后台的 Plugins 管理页面将其激活即可使用,无需任何设置。

Description:
This plugin inserts a security image for the WP comment page, requiring the poster to enter the right characters in the image.

Download:

Change Log:

  • 2006-07-01 Fixed bug: Trackback and pingback can't work fine (thanks to Patrick & John).
  • 2006-04-10 Fixed bug: In WordPress 1.5, update comment count will cause a database error, because the field 'comment_count' doesn't exist.
  • 2006-04-03 Fixed bug: When zlib.output_compression is 'On', it will cause ob_start() warning. I have removed 'ob_clean()' to avoid this warning.
  • 2006-03-15
    • Fixed bug: Some PHP server don't support PNG format, and I add more format(such as PNG, GIF & JPEG) supported.
    • Fixed bug: When security code is wrong, comment count of the post isn't rollback.
  • 2006-01-17 The first version.

Additional Requirements:
PHP GD/GD2 extension.

Installation:
Unzip the zip file, and copy anti_spam_image.php to wp-content/plugins/. Then goto "Plugins" admin page, and activate this plugin. That's all. Enjoy it!

Some Tips:

  1. If security code image doesn't display correctly, you can browse url
    http://your-wp-root/index.php?image=1 to confirm if image can display.
  2. If there isn't security code input field in comment page, you can open the file
    wp-content/your-theme/comments.php, and find the line:

    
    <?php do_action('comment_form'$post->ID); ?>
    
    

    If it can't found, please add it in comment form.

Warning:
This plugin was found to conflict with SK2 plugin. When SK2 plugin is activated, Anti Spam Image does't work fine.

PHP 5.1.2 Released!

Posted on 13th January 2006 by Nio in 程序人生

[12-Jan-2006] The PHP development team is proud to announce the release of PHP 5.1.2. This release combines small feature enhancements with a fair number of bug fixes and addresses three security issues. All PHP 5 users are encouraged to upgrade to this release. Some of the key changes of PHP 5.1.2 include:

* HTTP Response Splitting has been addressed in ext/session and in the header() function.
* Fixed format string vulnerability in ext/mysqli.
* Fixed possible cross-site scripting problems in certain error conditions.
* Hash & XMLWriter extensions added and enabled by default.
* Upgraded OCI8 extension.
* Over 85 various bug fixes.

Further details about this release can be found in the release announcement and the full list of changes is available in the PHP 5 ChangeLog.

百度 MP3 批量下载程序 v2.1.0 发布

Posted on 12th January 2006 by Nio in BaiduMp3, 程序人生

ChangeLog:

*) 增加“更新搜索引擎参数”功能,当发现无法获取排行榜数据时,可以尝试此功能在线更新各项参数。
*) “选项”中增加“歌曲文件名格式”设置,可设置为歌手在前或歌曲名在前。
*) 修复各个排行榜。

请到此处下载 BaiduMp3_v2.1.0.exe

Update@2006-2-2 3:20 pm
不好意思,因为假期时间,无法“更新搜索引擎参数”,暂时只能让大家自行进行修改了,修改文件 BaiduMp3/Engine.ini 文件,将第 15 行改成:

regexp=title="[^"]*\s+(http://[^"]+[a-z0-9])\s+[^>]*>(.*)</a>.*<td[^>]*>([0-9\.]+ [A-Z]|未知)</td>\s*<td[^>]*>([^<>]+)</td>\s+<td[^>]*><img src="http://img.baidu.com/img/mp3/d([0-9]+)\.gif"></td>

Update@2006-2-4 10:16 pm
现在大家可以通过“工具”->“更新搜索引擎参数”,以获取最新的 Engine.ini 文件,实现百度的正常下载!

Qtutu

Posted on 6th January 2006 by Nio in 日常生活

image

Qtutu 是一个创造、收集和分享可爱图片的开放平台。由 Easy、vicki 等等同学创建/维护。里头有很多不错的可爱Q图 :) 比如这个:
可爱Q图

点名游戏 :: 理想伴侣的八个条件

Posted on 6th January 2006 by Nio in 日常生活

RainX 点名了,虽然之前也因为某个此类游戏被 Asiapan 点过名,但由于一向不怎么玩这类游戏,所以也就没有参与。这回在 RainX 的督促下也无聊一回吧 ;)

游戏规则:
被点名的朋友需要在自己的blog里公开理想伴侣的8个条件,同时加上说明.
A.理想伴侣是男或女?
B.必须点名8个人,用尽所有办法通知各人被点名参与这个游戏.
C.被点名的人不可重复被点,每个人只可玩一次.

唉~像我这样都有娃的人了还玩这个,有老黄瓜刷绿漆的嫌疑。理想的伴侣当然是女性了。

8 个条件太多了,随便写几个吧:
善解人意、温柔贤淑、持家有道、积极向上……

点名了,被点到的不要骂我,哈:
小丢
Asiapan :-D
vicki
Snow & KnightE 这算两个吧,哈哈
别点太多了,否则人品会下降~~,也没仔细看被我点名的是否玩过这个游戏,不管了!