<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>请输入一个名称！ &#187; 最近发表回复</title>
		<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</link>
		<description>请输入一个名称！ &raquo; 最近发表回复</description>
		<language>zh-CN</language>
		<pubDate>Mon, 06 Feb 2012 00:40:18 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[搜索]]></title>
			<description><![CDATA[在这些版面中搜索全部帖子。]]></description>
			<name>q</name>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/search.php</link>
		</textInput>
		<atom:link href="http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/rss/" rel="self" type="application/rss+xml" />

		<item>
						<title>WordPress 收费服务</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/31#post-328</link>
			<pubDate>日, 18 Jul 2010 07:15:49 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">328@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>哈哈，看到了，谢谢支持啊！</description>
		</item>
		<item>
						<title>WordPress 收费服务</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/31#post-327</link>
			<pubDate>日, 18 Jul 2010 04:21:12 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">327@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>交了300块啦</description>
		</item>
		<item>
						<title>来请教一下</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/211#post-326</link>
			<pubDate>六, 03 Jul 2010 14:25:31 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">326@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>实在抱歉，之前那个是学习用的站点，现在删除了。多谢了！</description>
		</item>
		<item>
						<title>来请教一下</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/211#post-325</link>
			<pubDate>四, 01 Jul 2010 16:17:01 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">325@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>没有这个错误啊</description>
		</item>
		<item>
						<title>问站长两个问题 关于WordPress主题</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/186#post-323</link>
			<pubDate>三, 30 Jun 2010 07:11:03 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">323@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>一、看看使用的代码是否正确。有的高亮用&#60;code&#62;有的用&#60;pre&#62;，有的需要设置lang=&#34;language&#34;。
二、用4L教程设置原生嵌套，然后css用 原class .children或者原class .depth-2区分</description>
		</item>
		<item>
						<title>来请教一下</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/211#post-322</link>
			<pubDate>三, 30 Jun 2010 01:24:08 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">322@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>多谢</description>
		</item>
		<item>
						<title>来请教一下</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/211#post-321</link>
			<pubDate>三, 30 Jun 2010 01:23:47 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">321@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;a href=&#34;http://www.newone.org/&#34; rel=&#34;nofollow&#34;&#62;http://www.newone.org/&#60;/a&#62;
IE8下面打开。左下角总是提示网页上有错误。


消息: 'document.getElementById(...)' 为空或不是对象
行: 20
字符: 279
代码: 0
URI: &#60;a href=&#34;http://www.newone.org/wp-content/themes/newon/js/easytabs.js&#34; rel=&#34;nofollow&#34;&#62;http://www.newone.org/wp-content/themes/newon/js/easytabs.js&#60;/a&#62;</description>
		</item>
		<item>
						<title>在 RSS 中添加缩略图</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/210#post-320</link>
			<pubDate>四, 24 Jun 2010 04:16:10 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">320@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>function diw_post_thumbnail_feeds($content) {
	global $post;
	if(has_post_thumbnail($post-&#62;ID)) {
		$content = '&#60;div&#62;' . get_the_post_thumbnail($post-&#62;ID) . '&#60;/div&#62;' . $content;
	}
	return $content;
}
add_filter('the_excerpt_rss', 'diw_post_thumbnail_feeds');
add_filter('the_content_feed', 'diw_post_thumbnail_feeds');</description>
		</item>
		<item>
						<title>如何在发布日志的时候自动添加自定义字段</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/209#post-319</link>
			<pubDate>四, 24 Jun 2010 04:14:07 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">319@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>add_action('publish_page', 'add_custom_field_automatically');
add_action('publish_post', 'add_custom_field_automatically');
function add_custom_field_automatically($post_ID) {
	global $wpdb;
	if(!wp_is_post_revision($post_ID)) {
		add_post_meta($post_ID, 'field-name', 'custom value', true);
	}
}

注意 wp_is_post_revision 函数</description>
		</item>
		<item>
						<title>移除 dashboard 的 widget</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/208#post-318</link>
			<pubDate>四, 24 Jun 2010 04:05:29 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">318@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>function remove_dashboard_widgets() {
	global $wp_meta_boxes;

	unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);
	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);
	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);
	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);
	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_drafts']);
	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']);
	unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);
	unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);

}

if (!current_user_can('manage_options')) {
	add_action('wp_dashboard_setup', 'remove_dashboard_widgets' );
}



这里会移除所有，如果有保存那个就注释掉</description>
		</item>
		<item>
						<title>问站长两个问题 关于WordPress主题</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/186#post-317</link>
			<pubDate>六, 12 Jun 2010 05:04:57 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">317@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>你这个问题有点严重啊</description>
		</item>
		<item>
						<title>Wordpress 3.0  缩略图的问题：post_type名不能太长？</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/206#post-316</link>
			<pubDate>六, 12 Jun 2010 05:02:04 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">316@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>囧，这个都有问题啊</description>
		</item>
		<item>
						<title>让Contributor也可以上传图片</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/207#post-315</link>
			<pubDate>一, 07 Jun 2010 06:46:42 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">315@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>function add_role_caps() {
    global $wp_roles;
    $role = get_role('contributor');
    $role-&#62;add_cap('upload_files');
};
add_action ('admin_head','add_role_caps');</description>
		</item>
		<item>
						<title>Wordpress 3.0  缩略图的问题：post_type名不能太长？</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/206#post-314</link>
			<pubDate>五, 04 Jun 2010 14:53:46 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">314@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>add_theme_support( 'post-thumbnails', array( post_type ) );
如果post_type的名字太长(只是估计，我也不确定),
例如你自定义了一个post_type为&#34;enterprise-qualification&#34;
你想给这个post_type加上缩略功能：add_theme_support( 'post-thumbnails', array( 'enterprise-qualification' ) );
那么在上传图片后会没有“Use as featured image”按钮</description>
		</item>
		<item>
						<title>关于Flutter 插件应用在WP的问题</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/204#post-313</link>
			<pubDate>五, 04 Jun 2010 14:48:14 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">313@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>你上传的文件名是中文吗？如果是，传一个英文的试试。
可能是中文文件名的问题，也可能是生成缩略的时候出错了。</description>
		</item>
		<item>
						<title>关于Flutter 插件应用在WP的问题</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/204#post-312</link>
			<pubDate>四, 03 Jun 2010 10:08:18 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">312@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;我上传的时候，显示Successful upload!但是保存或者发布的时候，预览图片却是个叉叉,点击crop，其实是能看到图片的。&#60;/p&#62;
&#60;p&#62;另，当我写中文的时候，都是???,是要我把flutter里所有文件都改成utf-8吗。google介绍flutter的文章太少了，我这样的新手用起来真是有些吃力。希望能得到大大的帮助。&#60;/p&#62;
&#60;p&#62;再次感谢
&#60;/p&#62;</description>
		</item>
		<item>
						<title>Wordpress 3.0 多站点 WP Super Cache nginx规则</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/205#post-311</link>
			<pubDate>三, 02 Jun 2010 15:28:21 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">311@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;&#60;code&#62;&#60;/p&#62;
&#60;p&#62;if (-f $request_filename) {&#60;br /&#62;
break;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;rewrite ^.*/files/(.*) /wp-includes/ms-files.php?file=$1;&#60;/p&#62;
&#60;p&#62;set $supercache_file '';&#60;br /&#62;
set $supercache_uri $request_uri;&#60;/p&#62;
&#60;p&#62;if ($request_method = POST) {&#60;br /&#62;
set $supercache_uri '';&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;# Using pretty permalinks, so bypass the cache for any query string&#60;br /&#62;
if ($query_string) {&#60;br /&#62;
set $supercache_uri '';&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;if ($http_cookie ~* &#34;comment_author_&#124;wordpress&#124;wp-postpass_&#34; ) {&#60;br /&#62;
set $supercache_uri '';&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;# if we haven't bypassed the cache, specify our supercache file&#60;br /&#62;
if ($supercache_uri ~ ^(.+)$) {&#60;br /&#62;
set $supercache_file /wp-content/cache/supercache/$http_host/$1index.html;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;# only rewrite to the supercache file if it actually exists&#60;br /&#62;
if (-f $document_root$supercache_file) {&#60;br /&#62;
rewrite ^(.*)$ $supercache_file break;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;# all other requests go to Wordpress&#60;br /&#62;
if (!-e $request_filename) {&#60;br /&#62;
rewrite . /index.php last;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;这个规则适合单站点、多站点、装不装WP Super Cache 都支持&#60;/p&#62;
&#60;p&#62;不过要注意这一句“set $supercache_file /wp-content/cache/supercache/$http_host/$1index.html;”&#60;br /&#62;
某些主机配置，这一句可能会不同，要实践一下才知道。
&#60;/p&#62;</description>
		</item>
		<item>
						<title>关于Flutter 插件应用在WP的问题</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/204#post-310</link>
			<pubDate>三, 02 Jun 2010 15:25:35 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">310@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;你只说一句“图片无法上传”的话我们很难确定问题的原因，你上传的时候显示什么错误？有些JS错误不会在页面上显示，所以最好用抓包软件抓包，才能更容易发现问题。
&#60;/p&#62;</description>
		</item>
		<item>
						<title>关于Flutter 插件应用在WP的问题</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/204#post-309</link>
			<pubDate>二, 01 Jun 2010 14:31:06 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">309@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;鱼鱼，你好。&#60;br /&#62;
我看到你一篇文章，WordPress 在企业网站中的应用 — 阳诺太阳能（http://fairyfish.net/2009/03/24/wordpress-as-cms-ynsolar0769/）&#60;br /&#62;
感觉非常好，我就下载试了一下，结果发现图片无法上传。不知道是怎么回事，我对php懂得很少，希望能帮帮我。谢谢。&#60;br /&#62;
我的wp是2.92版，flutter是1.1版
&#60;/p&#62;</description>
		</item>
		<item>
						<title>请Denis帮查看一个问题</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/203#post-308</link>
			<pubDate>一, 31 May 2010 17:26:38 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">308@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;the_content 这个函数自己会输出标签，并不是多出来的。
&#60;/p&#62;</description>
		</item>
		<item>
						<title>请Denis帮查看一个问题</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/203#post-307</link>
			<pubDate>五, 28 May 2010 23:51:01 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">307@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;Denis，你好，我在学作主题时，碰到这样一个问题：在制作single.php文件时，我把index.php中的内容复制过来后，用上&#38;lt;p&#38;gt;&#38;lt;?php the_content(); ?&#38;gt;&#38;lt;/p&#38;gt;这一句时，打开网页，却发现变成了&#38;lt;p&#38;gt;&#38;lt;div&#38;gt;&#38;lt;?php the_content(); ?&#38;gt;&#38;lt;/div&#38;gt;&#38;lt;/p&#38;gt;，怎么会多出一对&#38;lt;div&#38;gt;&#38;lt;/div&#38;gt;，不知道是什么原因，还请Denis解决一下。谢谢！
&#60;/p&#62;</description>
		</item>
		<item>
						<title>在留言的 class 中删除 admin 的名字</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/202#post-306</link>
			<pubDate>二, 25 May 2010 03:08:05 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">306@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;pre&#62;&#60;code&#62;function remove_comment_author_class( $classes ) {
	foreach( $classes as $key =&#38;gt; $class ) {
		if(strstr($class, &#38;quot;comment-author-&#38;quot;)) {
			unset( $classes[$key] );
		}
	}
	return $classes;
}
add_filter( &#38;#39;comment_class&#38;#39; , &#38;#39;remove_comment_author_class&#38;#39; );&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
						<title>如何自动清空 WordPress 的垃圾箱</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/201#post-305</link>
			<pubDate>二, 25 May 2010 03:05:34 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">305@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;在 wp-config.php 中添加入如下代码：&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;define(&#38;#39;EMPTY_TRASH_DAYS&#38;#39;, 10 );&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;第二个参数是时间，单位是天！
&#60;/p&#62;</description>
		</item>
		<item>
						<title>使用程序插入留言</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/200#post-304</link>
			<pubDate>二, 25 May 2010 03:03:55 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">304@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;pre&#62;&#60;code&#62;$data = array(
	&#38;#39;comment_post_ID&#38;#39; =&#38;gt; 1,
	&#38;#39;comment_author&#38;#39; =&#38;gt; &#38;#39;admin&#38;#39;,
	&#38;#39;comment_author_email&#38;#39; =&#38;gt; &#38;#39;admin@admin.com&#38;#39;,
	&#38;#39;comment_author_url&#38;#39; =&#38;gt; &#38;#39;http://www.catswhocode.com&#38;#39;,
	&#38;#39;comment_content&#38;#39; =&#38;gt; &#38;#39;Lorem ipsum dolor sit amet...&#38;#39;,
	&#38;#39;comment_author_IP&#38;#39; =&#38;gt; &#38;#39;127.0.0.1&#38;#39;,
	&#38;#39;comment_agent&#38;#39; =&#38;gt; &#38;#39;Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; fr; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3&#38;#39;,
	&#38;#39;comment_date&#38;#39; =&#38;gt; date(&#38;#39;Y-m-d H:i:s&#38;#39;),
	&#38;#39;comment_date_gmt&#38;#39; =&#38;gt; date(&#38;#39;Y-m-d H:i:s&#38;#39;),
	&#38;#39;comment_approved&#38;#39; =&#38;gt; 1,
);

$comment_id = wp_insert_comment($data);&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
						<title>jsPlumb：jQuery 管道链接插件</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/196#post-302</link>
			<pubDate>六, 22 May 2010 05:26:42 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">302@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;很简洁的论坛……
&#60;/p&#62;</description>
		</item>
		<item>
						<title>安全相关：字符串加密</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/199#post-301</link>
			<pubDate>一, 17 May 2010 05:07:49 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">301@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;最近在做一个简单的购物插件，力求简单，所以连产品数据库也省掉了&#60;br /&#62;
用户下订单的时候直接Post产品名称、价格&#60;br /&#62;
为了防止用户伪造产品名称、价格，所以用以下这个函数来加密就解决了&#60;br /&#62;
这是一个使用最广泛的加密解密函数，UCenter API也是使用这个&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;br /&#38;gt;
//加密&#38;lt;br /&#38;gt;
/**&#38;lt;br /&#38;gt;
* @param string $string 原文或者密文&#38;lt;br /&#38;gt;
* @param string $operation 操 作(ENCODE &#124; DECODE), 默认为 DECODE&#38;lt;br /&#38;gt;
* @param string $key 密 钥&#38;lt;br /&#38;gt;
* @param int $expiry 密文有效期, 加密时候有效， 单 位 秒，0 为永久有效&#38;lt;br /&#38;gt;
* @return string 处理后的 原文或者 经 过 base64_encode 处理后的密文&#38;lt;br /&#38;gt;
*&#38;lt;br /&#38;gt;
* @example&#38;lt;br /&#38;gt;
*&#38;lt;br /&#38;gt;
* $a = authcode(&#38;#39;abc&#38;#39;, &#38;#39;ENCODE&#38;#39;, &#38;#39;key&#38;#39;);&#38;lt;br /&#38;gt;
* $b = authcode($a, &#38;#39;DECODE&#38;#39;, &#38;#39;key&#38;#39;); // $b(abc)&#38;lt;br /&#38;gt;
*&#38;lt;br /&#38;gt;
* $a = authcode(&#38;#39;abc&#38;#39;, &#38;#39;ENCODE&#38;#39;, &#38;#39;key&#38;#39;, 3600);&#38;lt;br /&#38;gt;
* $b = authcode(&#38;#39;abc&#38;#39;, &#38;#39;DECODE&#38;#39;, &#38;#39;key&#38;#39;); // 在一个小时 内，$b(abc)，否则 $b 为空&#38;lt;br /&#38;gt;
*/&#38;lt;/p&#38;gt;
&#38;lt;p&#38;gt;function authcode( $string, $operation = &#38;#39;DECODE&#38;#39;, $key = &#38;#39;&#38;#39;, $expiry = 0 ) {&#38;lt;br /&#38;gt;
	$ckey_length = 4;&#38;lt;br /&#38;gt;
	$key = md5( $key ? $key : UC_KEY );&#38;lt;br /&#38;gt;
	$keya = md5( substr( $key, 0, 16 ) );&#38;lt;br /&#38;gt;
	$keyb = md5( substr( $key, 16, 16 ) );&#38;lt;br /&#38;gt;
	$keyc = $ckey_length ? ( $operation == &#38;#39;DECODE&#38;#39; ? substr( $string, 0, $ckey_length ): substr( md5( microtime() ), -$ckey_length ) ) : &#38;#39;&#38;#39;;&#38;lt;/p&#38;gt;
&#38;lt;p&#38;gt;	$cryptkey = $keya.md5( $keya.$keyc );&#38;lt;br /&#38;gt;
	$key_length = strlen( $cryptkey );&#38;lt;/p&#38;gt;
&#38;lt;p&#38;gt;	$string = $operation == &#38;#39;DECODE&#38;#39; ? base64_decode( substr( $string, $ckey_length  )) : sprintf( &#38;#39;%010d&#38;#39;, $expiry ? $expiry + time() : 0 ).substr( md5( $string.$keyb ), 0, 16 ).$string;&#38;lt;br /&#38;gt;
	$string_length = strlen( $string );&#38;lt;/p&#38;gt;
&#38;lt;p&#38;gt;	$result = &#38;#39;&#38;#39;;&#38;lt;br /&#38;gt;
	$box = range( 0, 255 );&#38;lt;/p&#38;gt;
&#38;lt;p&#38;gt;	$rndkey = array();&#38;lt;br /&#38;gt;
	for ( $i = 0; $i &#38;lt;= 255; $i++ ) {&#38;lt;br /&#38;gt;
		$rndkey[$i] = ord( $cryptkey[$i % $key_length] );&#38;lt;br /&#38;gt;
	}&#38;lt;/p&#38;gt;
&#38;lt;p&#38;gt;	for ( $j = $i = 0; $i &#38;lt; 256; $i++ ) {&#38;lt;br /&#38;gt;
		$j = ($j + $box[$i] + $rndkey[$i]) % 256;&#38;lt;br /&#38;gt;
		$tmp = $box[$i];&#38;lt;br /&#38;gt;
		$box[$i] = $box[$j];&#38;lt;br /&#38;gt;
		$box[$j] = $tmp;&#38;lt;br /&#38;gt;
	}&#38;lt;/p&#38;gt;
&#38;lt;p&#38;gt;	for ( $a = $j = $i = 0; $i &#38;lt; $string_length; $i++ ) {&#38;lt;br /&#38;gt;
		$a = ($a + 1) % 256;&#38;lt;br /&#38;gt;
		$j = ($j + $box[$a]) % 256;&#38;lt;br /&#38;gt;
		$tmp = $box[$a];&#38;lt;br /&#38;gt;
		$box[$a] = $box[$j];&#38;lt;br /&#38;gt;
		$box[$j] = $tmp;&#38;lt;br /&#38;gt;
		$result .= chr( ord( $string[$i] ) ^ ( $box[($box[$a] + $box[$j] ) % 256] ) );&#38;lt;br /&#38;gt;
	}&#38;lt;/p&#38;gt;
&#38;lt;p&#38;gt;	if ( $operation == &#38;#39;DECODE&#38;#39; ) {&#38;lt;br /&#38;gt;
		if ( ( substr( $result, 0, 10 ) == 0 &#124;&#124; substr( $result, 0, 10 ) - time() &#38;gt; 0 ) &#38;amp;&#38;amp; substr( $result, 10, 16 ) == substr( md5( substr( $result, 26 ).$keyb ), 0, 16 ) ) {&#38;lt;br /&#38;gt;
			return substr( $result, 26 );&#38;lt;br /&#38;gt;
		} else {&#38;lt;br /&#38;gt;
			return &#38;#39;&#38;#39;;&#38;lt;br /&#38;gt;
		}&#38;lt;br /&#38;gt;
	} else {&#38;lt;br /&#38;gt;
		return $keyc.str_replace( &#38;#39;=&#38;#39;, &#38;#39;&#38;#39;, base64_encode( $result ) );&#38;lt;br /&#38;gt;
	}&#38;lt;br /&#38;gt;
}&#38;lt;/p&#38;gt;
&#38;lt;p&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
						<title>安全相关：高级PHP应用程序漏洞审核技术</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/193#post-299</link>
			<pubDate>一, 17 May 2010 02:55:52 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">299@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;不错不错
&#60;/p&#62;</description>
		</item>
		<item>
						<title>CSSGallerySubmission</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/197#post-298</link>
			<pubDate>一, 17 May 2010 02:54:39 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">298@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;&#60;a href=&#34;http://www.cssgallerysubmission.com/&#34; rel=&#34;nofollow&#34;&#62;http://www.cssgallerysubmission.com/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;把你的网站提交到所有 CSS Gallery 网站！
&#60;/p&#62;</description>
		</item>
		<item>
						<title>jsPlumb：jQuery 管道链接插件</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/196#post-297</link>
			<pubDate>一, 17 May 2010 02:50:52 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">297@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;The jsPlumb jQuery plugin provides a way to &#34;plumb&#34; elements of a UI together. This page contains a little bit of everything to whet your appetite.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://morrisonpitt.com/jsPlumb/html/demo.html&#34; rel=&#34;nofollow&#34;&#62;http://morrisonpitt.com/jsPlumb/html/demo.html&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://morrisonpitt.com/jsPlumb/html/demo2.html&#34; rel=&#34;nofollow&#34;&#62;http://morrisonpitt.com/jsPlumb/html/demo2.html&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
						<title>网页同色调颜色选择器</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/195#post-296</link>
			<pubDate>一, 17 May 2010 02:47:11 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">296@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;0to255  is a simple tool that helps web designers find lighter and darker colors based on any color. 0to255 cures your color manipulation woes. It’s fun, simple, and a huge time-saver.&#60;/p&#62;
&#60;p&#62;Simply pick the color that you want to start with and 0to255 gives you a range of colors from black to white using an interval optimized for web design. Then, just click the variation you want to use and the hex code is automatically copied to your clipboard.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://0to255.com/&#34; rel=&#34;nofollow&#34;&#62;http://0to255.com/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
						<title>安全相关：什么时候过滤？</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/194#post-295</link>
			<pubDate>日, 16 May 2010 06:29:55 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">295@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;一直在考虑这样一个问题：把字符串保存到数据库里，然后显示出来，那么，应该是在保存之前就过滤呢，还是在显示的时候才过滤？&#60;br /&#62;
1、保存之前就过滤。好处是输出显示的时候占用资源小，坏处是，万一输入的内容是极其重要的，被过滤了，无法还原，无法尼补&#60;br /&#62;
2、输出的时候才过滤。好处是保持内容的完整性，随时可以更改过滤规，缺点是显示的时候占用资源大。&#60;/p&#62;
&#60;p&#62;我个人更喜欢第二个方法，对于第二个方法，在WP里可以用esc_html()函数
&#60;/p&#62;</description>
		</item>
		<item>
						<title>安全相关：高级PHP应用程序漏洞审核技术</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/193#post-294</link>
			<pubDate>日, 16 May 2010 06:26:25 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">294@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;纯属转转帖，但是很有用，大家看看吧&#60;br /&#62;
&#60;a href=&#34;http://code.google.com/p/pasc2at/wiki/SimplifiedChinese&#34; rel=&#34;nofollow&#34;&#62;http://code.google.com/p/pasc2at/wiki/SimplifiedChinese&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
						<title>WordPress 收费服务</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/31#post-293</link>
			<pubDate>五, 14 May 2010 08:16:37 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">293@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;哈哈，没时间，哈哈，只能梦想而已！
&#60;/p&#62;</description>
		</item>
		<item>
						<title>问站长两个问题 关于WordPress主题</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/186#post-292</link>
			<pubDate>五, 14 May 2010 06:14:18 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">292@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;&#60;a href=&#34;http://fairyfish.net/2008/11/03/wordpress-27-separate-comment-style-comment/&#34; rel=&#34;nofollow&#34;&#62;http://fairyfish.net/2008/11/03/wordpress-27-separate-comment-style-comment/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
						<title>wordpress上传图片的描述怎么才能显示呢？</title>
			<link>http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/topic/190#post-291</link>
			<pubDate>五, 14 May 2010 06:04:46 +0000</pubDate>
			<dc:creator>匿名</dc:creator>
			<guid isPermaLink="false">291@http://home.wpjam.com/wp-content/plugins/buddypress/bp-forums/bbpress/</guid>
			<description>&#60;p&#62;显示在图片模板页面，检查下你的主题有没有 image.php
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>

