<?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"
	>

<channel>
	<title>CNXCT Team Blog</title>
	<atom:link href="http://www.cnxct.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.cnxct.com</link>
	<description>技术这个东西如同一个圆 ,刚开始的时候我们就如同站在圆心,一旦投入学习下去 ,圆就慢慢变大 ,圆的边缘以外也就会越来越大,接触的多了 知道的多了, 就会发现自己真的很无知!</description>
	<pubDate>Mon, 01 Dec 2008 03:44:47 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
	<language>en</language>
			<item>
		<title>类百度知道多组头衔角色插件</title>
		<link>http://www.cnxct.com/cnxct/229</link>
		<comments>http://www.cnxct.com/cnxct/229#comments</comments>
		<pubDate>Fri, 28 Nov 2008 03:01:13 +0000</pubDate>
		<dc:creator>CFC4N</dc:creator>
		
		<category><![CDATA[所谓技术]]></category>

		<guid isPermaLink="false">http://www.cnxct.com/?p=229</guid>
		<description><![CDATA[类百度知道多组头衔角色插件
一,覆盖所有文件!
二,到控制面板后台 导入discuz_plugin_rankgroup.txt!
三,将cdb_rankgroup.sql导入数据库,其中注意更改表的前缀{$tablepre},我的是默认的&#8221;cdb_&#8221;!
四,到{$tablepre}members 表中,添加一字段,字段名为 rankgroupid
或者直接mysql执行
ALTER TABLE `cdb_members` ADD `rankgroupid` SMALLINT( 6 ) UNSIGNED NOT NULL DEFAULT '0' COMMENT '等级组';
其中注意更改表的前缀{$tablepre}
五,后台&#8211;&#62;用户&#8211;&#62;发帖级别数&#8211;&#62;将&#8221;级别头衔&#8221;改为从&#8221;一级&#8221;到&#8221;十级&#8221;或者更多,&#8221;发贴数高于&#8221;要从0开始增加,其他随便!
六,打开viewthread.php
358行
mf.customstatus, mf.spacename

 后面,添加
, m.rankgroupid

      注意空格以及逗号!
480行
$post['authortitle'] = $rank['ranktitle'];

改为
if($post['rankgroupid'] == 0) {$post['rankgroupid'] = 1;}$post['authortitle'] = $rank['rankgroup'][$post['rankgroupid']]['gname'];
七,打开 space.php
在
require_once&#160;'./include/common.inc.php';

下一行 加入
require_once&#160;DISCUZ_ROOT.'./plugins/rankgroup/rankgroup.func.php';

33行左右
r.stars&#160;AS rankstars

后面加入
, r.rankid

    注意空格 逗号!!
77行
$postperday = $timestamp - $member['regdate'] &#62; 86400 ? round(86400 * $member['posts'] [...]]]></description>
		<wfw:commentRss>http://www.cnxct.com/cnxct/229/feed</wfw:commentRss>
		</item>
		<item>
		<title>其他程序,首页调用Discuz最新帖子,最新回复等</title>
		<link>http://www.cnxct.com/cnxct/220</link>
		<comments>http://www.cnxct.com/cnxct/220#comments</comments>
		<pubDate>Wed, 19 Nov 2008 01:34:03 +0000</pubDate>
		<dc:creator>CFC4N</dc:creator>
		
		<category><![CDATA[所谓技术]]></category>

		<guid isPermaLink="false">http://www.cnxct.com/?p=220</guid>
		<description><![CDATA[发个小程序,证明我还或者,至于他们两个,就不清楚了
前端时间,在xoops上,东至同学发了Xoops整合Ucenter的方法,然后就可以使用Discuz了,只是首页无法调取Discuz的最新帖子,最新回复等! xoops上几个网友问了下,在下就搞个小程序出来了!
以下是代码
C.php
/*
&#160; &#160; Date:2008-11-17
&#160; &#160; $Id: c.php&#160;&#160; cfc4n $
&#160; &#160; $num 变量可以自己赋值,为最新帖子数量
*/
define('CURSCRIPT', 'c');
require_once&#160;'./include/common.inc.php';
require_once&#160;DISCUZ_ROOT.'./include/forum.func.php';
&#160;
$num = 10; 
$thread = array();
&#160;
$sql = &#34;SELECT t.* , f.fid , f.name FROM {$tablepre}threads t , {$tablepre}forums f WHERE f.fid = t.fid ORDER BY `dateline` DESC LIMIT 0,$num&#34;;
$query = $db-&#62;query($sql);
while(&#160;$thread = $db-&#62;fetch_array($query)) {
&#160; &#160; $thread['icon'] = '&#38;nbsp;';
&#160; &#160; $thread['lastposterenc'] = rawurlencode($thread['lastposter']);
&#160; &#160; [...]]]></description>
		<wfw:commentRss>http://www.cnxct.com/cnxct/220/feed</wfw:commentRss>
		</item>
		<item>
		<title>rtorrent 使用</title>
		<link>http://www.cnxct.com/cnxct/219</link>
		<comments>http://www.cnxct.com/cnxct/219#comments</comments>
		<pubDate>Mon, 16 Jun 2008 05:40:20 +0000</pubDate>
		<dc:creator>gleon</dc:creator>
		
		<category><![CDATA[所谓技术]]></category>

		<category><![CDATA[rtorrent]]></category>

		<guid isPermaLink="false">http://www.cnxct.com/?p=219</guid>
		<description><![CDATA[rtorrent 使用
Category: Linux/Unix, Author: soai, Popularity: 28% [?]
※ 以下含有 ^ 字符的代表Ctrl鍵
QUOTE:
常用熱鍵
1. 方向鍵 : ↑,↓,←,→
2. Torrent 開始下載 : Ctrl + S (Screen下用法為: Ctrl+ a + s)
3. Torrent 暫停下載 : Ctrl + D
4. Torrent 停止下載 : Ctrl + K
5. 清除Torrent下載列表 : [法1] 在停止狀態使用Ctrl + D, [法2] 在下載完成連續執行 Ctrl+D 二次
6. 限定最大上傳速度 : [增加]a / s / d [減少] [...]]]></description>
		<wfw:commentRss>http://www.cnxct.com/cnxct/219/feed</wfw:commentRss>
		</item>
		<item>
		<title>关于OpenId-我的理解</title>
		<link>http://www.cnxct.com/cnxct/215</link>
		<comments>http://www.cnxct.com/cnxct/215#comments</comments>
		<pubDate>Tue, 08 Apr 2008 04:19:32 +0000</pubDate>
		<dc:creator>CFC4N</dc:creator>
		
		<category><![CDATA[所谓技术]]></category>

		<category><![CDATA[openid]]></category>

		<guid isPermaLink="false">http://www.cnxct.com/?p=215</guid>
		<description><![CDATA[ 早在08年春节前的时候,初识OpenID这个新词汇,那时,只是囫囵吞枣的看了下定义,在openid.cn上注册了帐号(URI为http://cfc4n.openid.cn/),并没有理解其真正含义,用法,用途等! 昨日,梦中偶然梦到Openid,今天早上,又搜索了相关东西看了下! 在群里又请教了一下,既然Openid是通用的帐号,那都是固定的格式,字段等,如何进行用户信息拓展呢?????我是公司,我的用户信息如何保密???怎么来控制权限?如果这台Openid 服务器出问题了,岂不是所有的以Openid登录的站都登录不上去了???等等,我带着很多的疑问,去搜索..但仍有个别疑问,得不到满意的解释!]]></description>
		<wfw:commentRss>http://www.cnxct.com/cnxct/215/feed</wfw:commentRss>
		</item>
		<item>
		<title>好东西共享出来 JGsoft RegexBuddy v3.1.0 零售版 (破解版)</title>
		<link>http://www.cnxct.com/cnxct/207</link>
		<comments>http://www.cnxct.com/cnxct/207#comments</comments>
		<pubDate>Sat, 05 Apr 2008 05:35:48 +0000</pubDate>
		<dc:creator>gleon</dc:creator>
		
		<category><![CDATA[所谓技术]]></category>

		<guid isPermaLink="false">http://www.cnxct.com/?p=207</guid>
		<description><![CDATA[RegexBuddy 使用 RegexBuddy 可以创建规范的正规表达式。该软件可以编译由其它软件编写的复杂的正规表达式。使用纯英文模块代替标准的　Regex　语法。在样本行和文件上测试任何规范的表达式，防止在实际数据上发生错误。通过分步完成真实的匹配过程来进行调试而不是单凭猜测。可以在你的自动地调整为 C#, VB.NET, Java, C, C++, Delphi, Perl, PHP, Python, JavaScript 和 Ruby 特殊细节的带有代码摘录的源代码当中使用 RegexBuddy]]></description>
		<wfw:commentRss>http://www.cnxct.com/cnxct/207/feed</wfw:commentRss>
		</item>
		<item>
		<title>浅谈javascript函数劫持</title>
		<link>http://www.cnxct.com/cnxct/206</link>
		<comments>http://www.cnxct.com/cnxct/206#comments</comments>
		<pubDate>Thu, 03 Apr 2008 05:42:57 +0000</pubDate>
		<dc:creator>gleon</dc:creator>
		
		<category><![CDATA[所谓技术]]></category>

		<guid isPermaLink="false">http://www.cnxct.com/cnxct/206</guid>
		<description><![CDATA[javascript函数劫持，也就是老外提到的javascript hijacking技术。最早还是和剑心同学讨论问题时偶然看到的一段代码，大概这样写的：

window.alert = function(s) {};

觉得这种用法很巧妙新颖，和API Hook异曲同工，索性称之为javascript function hook，也就是函数劫持。通过替换js函数的实现来达到劫持这个函数调用的目的，一个完整的hook alert函数例子如下：

<!--1.htm-->
<script type="text/javascript">
<!--
var _alert = alert;
window.alert = function(s) {
    if (confirm("是否要弹框框，内容是\"" + s + "\"？")) {
        _alert(s);
    }
}
//-->
</script>
<html>
<body>
<input type="button" onclick="javascript: alert('Hello World!')" value="test" />
</body>
</html>
]]></description>
		<wfw:commentRss>http://www.cnxct.com/cnxct/206/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
