<?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>小货的天堂Null</title>
	<atom:link href="http://www.imxh.com.ru/archives/tag/null/feed" rel="self" type="application/rss+xml" />
	<link>http://www.imxh.com.ru</link>
	<description>经历过，拥有过，还剩下什么？</description>
	<lastBuildDate>Sun, 05 Sep 2010 12:58:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>转移爱吧的数据到了新空间，弄了一下wordpress评论功能</title>
		<link>http://www.imxh.com.ru/archives/423</link>
		<comments>http://www.imxh.com.ru/archives/423#comments</comments>
		<pubDate>Fri, 26 Feb 2010 06:09:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Lt 50]]></category>
		<category><![CDATA[Null]]></category>
		<category><![CDATA[Url]]></category>

		<guid isPermaLink="false">http://www.imxh.com.ru/?p=423</guid>
		<description><![CDATA[发现很多机器人发的评论
懒得在后台一个一个的审核了
直接把发表评论的功能修改了一下~
在后台把那个反垃圾评论的的插件关掉
然后修改wp-comments-post.php里面~
先把$comment_author_url?? = null;这样评论的人就没法加连接在头像名称那里了
然后正则替换评论内容
//给我替换，嘿嘿
$comment_content=preg_replace(&#8220;&#124;\[url(.*)\[/url\]&#124;&#8221;,&#8221;",$comment_content) ;
$comment_content=preg_replace(&#8220;&#124;\[img\](.*)\[/img\]&#124;&#8221;,&#8221;",$comment_content) ;
$comment_content=preg_replace(&#8220;&#124;\[([^\]]*)\]&#124;&#8221;,&#8221;",$comment_content) ;
$comment_content=preg_replace(&#8220;&#124;&#60;([^&#62;]*)&#62;&#124;&#8221;,&#8221;",$comment_content) ;
$comment_content=preg_replace(&#8220;&#124;http://(.*)html&#124;&#8221;,&#8221;",$comment_content) ;
$comment_content=preg_replace(&#8220;&#124;http://(.*)php&#124;&#8221;,&#8221;",$comment_content) ;
$comment_content=preg_replace(&#8220;&#124;http://(.*)asp&#124;&#8221;,&#8221;",$comment_content) ;
$comment_content=preg_replace(&#8220;&#124;http://(.*)com&#124;&#8221;,&#8221;",$comment_content) ;
$comment_content=preg_replace(&#8220;&#124;http://(.*)net&#124;&#8221;,&#8221;",$comment_content) ;
$comment_content=preg_replace(&#8220;&#124;http://(.*)org&#124;&#8221;,&#8221;",$comment_content) ;
$comment_content=preg_replace(&#8220;&#124;http://(.*)cc&#124;&#8221;,&#8221;",$comment_content) ;
$comment_content=preg_replace(&#8220;&#124;http://(.*)info&#124;&#8221;,&#8221;",$comment_content) ;
把BB代码和HTML全过滤掉
然后统计内容长度
if(strlen($comment_content)&#60;50){
$comment_content=null;
}
太短的直接设置为空
哈哈哈~~~~~~~~
就发不出评论了
]]></description>
			<content:encoded><![CDATA[<p>发现很多机器人发的评论</p>
<p>懒得在后台一个一个的审核了</p>
<p>直接把发表评论的功能修改了一下~</p>
<p>在后台把那个反垃圾评论的的插件关掉</p>
<p>然后修改wp-comments-post.php里面~</p>
<p>先把$comment_author_url?? = null;这样评论的人就没法加连接在头像名称那里了</p>
<p>然后正则替换评论内容</p>
<p>//给我替换，嘿嘿<br />
$comment_content=preg_replace(&#8220;|\[url(.*)\[/url\]|&#8221;,&#8221;",$comment_content) ;<br />
$comment_content=preg_replace(&#8220;|\[img\](.*)\[/img\]|&#8221;,&#8221;",$comment_content) ;<br />
$comment_content=preg_replace(&#8220;|\[([^\]]*)\]|&#8221;,&#8221;",$comment_content) ;<br />
$comment_content=preg_replace(&#8220;|&lt;([^&gt;]*)&gt;|&#8221;,&#8221;",$comment_content) ;<br />
$comment_content=preg_replace(&#8220;|http://(.*)html|&#8221;,&#8221;",$comment_content) ;<br />
$comment_content=preg_replace(&#8220;|http://(.*)php|&#8221;,&#8221;",$comment_content) ;<br />
$comment_content=preg_replace(&#8220;|http://(.*)asp|&#8221;,&#8221;",$comment_content) ;<br />
$comment_content=preg_replace(&#8220;|http://(.*)com|&#8221;,&#8221;",$comment_content) ;<br />
$comment_content=preg_replace(&#8220;|http://(.*)net|&#8221;,&#8221;",$comment_content) ;<br />
$comment_content=preg_replace(&#8220;|http://(.*)org|&#8221;,&#8221;",$comment_content) ;<br />
$comment_content=preg_replace(&#8220;|http://(.*)cc|&#8221;,&#8221;",$comment_content) ;<br />
$comment_content=preg_replace(&#8220;|http://(.*)info|&#8221;,&#8221;",$comment_content) ;</p>
<p>把BB代码和HTML全过滤掉</p>
<p>然后统计内容长度</p>
<p>if(strlen($comment_content)&lt;50){<br />
$comment_content=null;<br />
}</p>
<p>太短的直接设置为空</p>
<p>哈哈哈~~~~~~~~</p>
<p>就发不出评论了</p>
]]></content:encoded>
			<wfw:commentRss>http://www.imxh.com.ru/archives/423/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
