<?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>Tomgo的生活博客 &#187; Discuz6.0正式版</title>
	<atom:link href="http://www.54tomgo.com/archives/tag/discuz6-0%e6%ad%a3%e5%bc%8f%e7%89%88/feed" rel="self" type="application/rss+xml" />
	<link>http://www.54tomgo.com</link>
	<description>生活&#124;电影&#124;新闻&#124;IT话题</description>
	<lastBuildDate>Wed, 29 Jun 2011 06:41:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		
<!-- Start Of Script Generated By WP-PostViews Plus 1.1.18 -->
<script type='text/javascript' src='http://www.54tomgo.com/wp-includes/js/jquery/jquery.js?ver=1.3.2'></script>
<script type="text/javascript">
/* <![CDATA[ */
jQuery.ajax({type:'GET',url:'http://www.54tomgo.com/wp-content/plugins/wp-postviews-plus/postviews_plus.php',data:'todowppvp=&type=tag&id=206_1',cache:false,dataType:'script'});/* ]]> */
</script>
<!-- End Of Script Generated By WP-PostViews Plus 1.1.18 -->
	<item>
		<title>Discuz6.0正式版禁止中文名注册</title>
		<link>http://www.54tomgo.com/archives/719.html</link>
		<comments>http://www.54tomgo.com/archives/719.html#comments</comments>
		<pubDate>Wed, 27 Jan 2010 11:06:51 +0000</pubDate>
		<dc:creator>tomgo</dc:creator>
				<category><![CDATA[心得技巧]]></category>
		<category><![CDATA[Discuz6.0正式版]]></category>

		<guid isPermaLink="false">http://www.54tomgo.com/?p=719</guid>
		<description><![CDATA[


discuz6


为了防止中文的垃圾广告用户注册，我在google找到一个代码，修改了discuz6.0正式版的注册方式。代码如下：
register.php 修改後 或 修改且上傳後 緊記更新緩存
找
複製內容到剪貼板代碼:
if(strlen($username) &#38;gt; 15) {
showmessage('profile_username_toolong');
}
引用:
下面選擇其一即可
禁止使用半形大小寫英文的加入﹕
複製內容到剪貼板代碼:
if(eregi(&#34;[:alpha:]&#34;, $username)) {
showmessage('本壇禁止使用半形英文註冊，請使用中文或符號註冊。');
}
禁止使用半形小寫英文的加入﹕
複製內容到剪貼板代碼:
if(eregi(&#34;[:lower:]&#34;, $username)) {
showmessage('本壇禁止使用半形小寫英文註冊，請使用大寫英文、中文或符號註冊。');
}
禁止使用半形大寫英文的加入﹕
複製內容到剪貼板代碼:
if(eregi(&#34;[:upper:]&#34;, $username)) {
showmessage('本壇禁止使用半形大寫英文註冊，請使用小寫英文、中文或符號註冊。');
}
禁止使用中文及全形字的加入﹕
複製內容到剪貼板代碼:
if(!eregi(&#34;[:alpha:]&#34;, $username)) {
showmessage('本壇禁止使用中文及全形英文註冊，請使用英文或符號註冊。');
}
禁止使用全形空格的加入﹕
複製內容到剪貼板代碼:
if(ereg(&#34;　&#34;, $username)){
showmessage('本壇禁止使用全形空格註冊，請使用其它字符串。');
}
]]></description>
			<content:encoded><![CDATA[<div class="mceTemp mceIEcenter" style="text-align: center;">
<dl id="attachment_722" class="wp-caption aligncenter" style="width: 460px; text-align: center;">
<dt class="wp-caption-dt"><img class="size-full wp-image-722" title="discuz6" src="http://www.54tomgo.com/wp-content/uploads/2010/01/discuz.jpg" alt="discuz6" width="450" height="90" /></dt>
<dd class="wp-caption-dd">discuz6</dd>
</dl>
</div>
<p>为了防止中文的垃圾广告用户注册，我在google找到一个代码，修改了discuz6.0正式版的注册方式。代码如下：<span id="more-719"></span></p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">register.php 修改後 或 修改且上傳後 緊記更新緩存</li>
<li>找</li>
<li>複製內容到剪貼板代碼:</li>
<li>if(strlen($username) &amp;gt; 15) {</li>
<li>showmessage('profile_username_toolong');</li>
<li>}</li>
<li>引用:</li>
<li>下面選擇其一即可</li>
<li>禁止使用半形大小寫英文的加入﹕</li>
<li>複製內容到剪貼板代碼:</li>
<li>if(eregi(&quot;[:alpha:]&quot;, $username)) {</li>
<li>showmessage('本壇禁止使用半形英文註冊，請使用中文或符號註冊。');</li>
<li>}</li>
<li>禁止使用半形小寫英文的加入﹕</li>
<li>複製內容到剪貼板代碼:</li>
<li>if(eregi(&quot;[:lower:]&quot;, $username)) {</li>
<li>showmessage('本壇禁止使用半形小寫英文註冊，請使用大寫英文、中文或符號註冊。');</li>
<li>}</li>
<li>禁止使用半形大寫英文的加入﹕</li>
<li>複製內容到剪貼板代碼:</li>
<li>if(eregi(&quot;[:upper:]&quot;, $username)) {</li>
<li>showmessage('本壇禁止使用半形大寫英文註冊，請使用小寫英文、中文或符號註冊。');</li>
<li>}</li>
<li>禁止使用中文及全形字的加入﹕</li>
<li>複製內容到剪貼板代碼:</li>
<li>if(!eregi(&quot;[:alpha:]&quot;, $username)) {</li>
<li>showmessage('本壇禁止使用中文及全形英文註冊，請使用英文或符號註冊。');</li>
<li>}</li>
<li>禁止使用全形空格的加入﹕</li>
<li>複製內容到剪貼板代碼:</li>
<li>if(ereg(&quot;　&quot;, $username)){</li>
<li>showmessage('本壇禁止使用全形空格註冊，請使用其它字符串。');</li>
<li>}</li></ol></div>
]]></content:encoded>
			<wfw:commentRss>http://www.54tomgo.com/archives/719.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

