<?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>张振峰 &#187; cms</title>
	<atom:link href="http://www.zhangzhenfeng.com/tags/cms/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zhangzhenfeng.com</link>
	<description>阵风：天生我材必有用</description>
	<lastBuildDate>Wed, 14 Sep 2011 09:51:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>去掉顶部频道显示处的网站首页及频道地址的扩展名</title>
		<link>http://www.zhangzhenfeng.com/showchannel-getchannellist/</link>
		<comments>http://www.zhangzhenfeng.com/showchannel-getchannellist/#comments</comments>
		<pubDate>Fri, 11 Jan 2008 14:24:51 +0000</pubDate>
		<dc:creator>阵风</dc:creator>
				<category><![CDATA[动易]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[getchannellist]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[pagerank]]></category>
		<category><![CDATA[showchannel]]></category>
		<category><![CDATA[目录]]></category>

		<guid isPermaLink="false">http://www.zhangzhenfeng.com/?p=32</guid>
		<description><![CDATA[大部分情况下，http://www.zhangzhenfeng.com/ 与 http://www.zhangzhenfeng.com/index.asp 的 Google PageRank 是不同的。据说，在google 看来，目录的权重比文件大。默认情况下，动易的标签 {$ShowChannel} 输出时，网站首页、频道首页的地址都是{$InstallDir}index.htm、{$InstallDir}Article/index.asp 的形式，如何才能修改为 {$InstallDir}、{$InstallDir}Article/ 的形式呢？]]></description>
			<content:encoded><![CDATA[<p>大部分情况下，http://www.zhangzhenfeng.com/ 与 http://www.zhangzhenfeng.com/index.asp 的 Google PageRank 是不同的。据说，在google 看来，目录的权重比文件大。默认情况下，动易的标签 {$ShowChannel} 输出时，网站首页、频道首页的地址都是{$InstallDir}index.htm、{$InstallDir}Article/index.asp 的形式，如何才能修改为 {$InstallDir}、{$InstallDir}Article/ 的形式呢？<span id="more-32"></span></p>
<p>只需修改 Include/PowerEasy.Common.Front.asp 中的Function GetChannelList(NumNewLine)，进而改变标签 {$ShowChannel} 的输出即可。下面以动易开源版SiteWeaver™ CMS 6.5为例进行说明。</p>
<p><strong>第一步，将网站首页地址由 {$InstallDir}index.htm 的形式修改为 {$InstallDir} 的形式。</strong>在 Include/PowerEasy.Common.Front.asp 中找到如下代码：</p>
<blockquote><p>If ChannelID = 0 Then<br />
strChannel = ChannelLink &amp; “&lt;a class=”Channel2” href=”” &amp; strInstallDir &amp; FileName_SiteIndex &amp; “”&gt;” &amp; XmlText(“BaseText”, “FirstPage”, “网站首页”) &amp; “&lt;/a&gt;” &amp; ChannelLink<br />
Else<br />
strChannel = ChannelLink &amp; “&lt;a class=”Channel” href=”” &amp; strInstallDir &amp; FileName_SiteIndex &amp; “”&gt;” &amp; XmlText(“BaseText”, “FirstPage”, “网站首页”) &amp; “&lt;/a&gt;” &amp; ChannelLink<br />
End If</p></blockquote>
<p>将其修改为</p>
<blockquote><p>If ChannelID = 0 Then<br />
strChannel = ChannelLink &amp; “&lt;a class=”Channel2” href=”” &amp; strInstallDir  &amp; “”&gt;” &amp; XmlText(“BaseText”, “FirstPage”, “网站首页”) &amp; “&lt;/a&gt;” &amp; ChannelLink<br />
Else<br />
strChannel = ChannelLink &amp; “&lt;a class=”Channel” href=”” &amp; strInstallDir &amp; “”&gt;” &amp; XmlText(“BaseText”, “FirstPage”, “网站首页”) &amp; “&lt;/a&gt;” &amp; ChannelLink<br />
End If</p></blockquote>
<p><strong>第二步，将频道首页地址由 {$InstallDir}Article/index.htm 的形式修改为 {$InstallDir}Article/ 的形式。</strong>在 Include/PowerEasy.Common.Front.asp 中找到如下代码：</p>
<blockquote><p>If rsChannel(“UseCreateHTML”) &gt; 0 Then<br />
strChannel = strChannel &amp; ” href=”” &amp; ChannelUrl &amp; “/Index” &amp; arrFileExt(rsChannel(“FileExt_Index”)) &amp; “””<br />
Else<br />
strChannel = strChannel &amp; ” href=”” &amp; ChannelUrl &amp; “/Index.asp””<br />
End If</p></blockquote>
<p>将其修改为</p>
<blockquote><p>strChannel = strChannel &amp; ” href=”” &amp; ChannelUrl &amp; “/””</p></blockquote>
<p>修改完成后，保存文件，更新缓存，如果网站首页或某频道首页需要生成html，进行生成后刷新页面即可。另外，<strong>注意一下默认文档顺序</strong>（例如：网站首页生成html后缀为“.htm”，但默认文档中index.asp i优先于 index.htm，则访问网站目录 {$InstallDir} 时，系统会调用index.asp而非index.htm，然后跳转到index.htm，这种情况下地址栏显示的地址不是目录形式，多了个index.htm）</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zhangzhenfeng.com/showchannel-getchannellist/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>禁止待审批会员、未验证会员在留言板留言</title>
		<link>http://www.zhangzhenfeng.com/guestbook-write-limits/</link>
		<comments>http://www.zhangzhenfeng.com/guestbook-write-limits/#comments</comments>
		<pubDate>Fri, 11 Jan 2008 13:35:31 +0000</pubDate>
		<dc:creator>阵风</dc:creator>
				<category><![CDATA[动易]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[会员]]></category>
		<category><![CDATA[开源]]></category>
		<category><![CDATA[待审批]]></category>
		<category><![CDATA[未验证]]></category>
		<category><![CDATA[留言]]></category>

		<guid isPermaLink="false">http://www.zhangzhenfeng.com/?p=27</guid>
		<description><![CDATA[要想禁止待审批会员、未验证会员在留言板留言，对于动易的开源版SiteWeaver™ CMS，修改GuestBook/Guest_Write.asp，找到顶部的如下代码

    If GuestBook_EnableVisitor = False And UserLogined = False Then
    FoundErr = True
    ErrMsg = ErrMsg &#038; "<li>" &#038; XmlText("Guest", "ShowWrite/Notpermission", "您尚未登录，请登录后再进行您的操作！") &#038; "</li>"
    End If
    If FoundErr = True Then
    Call WriteErrMsg(ErrMsg, ComeUrl)
    Response.End
    End If]]></description>
			<content:encoded><![CDATA[<p>要想禁止待审批会员、未验证会员在留言板留言，对于动易的开源版SiteWeaver™ CMS，修改GuestBook/Guest_Write.asp，找到顶部的如下代码</p>
<blockquote><p>If GuestBook_EnableVisitor = False And UserLogined = False Then<br />
FoundErr = True<br />
ErrMsg = ErrMsg &amp; “&lt;li&gt;” &amp; XmlText(“Guest”, “ShowWrite/Notpermission”, “您尚未登录，请登录后再进行您的操作！”) &amp; “&lt;/li&gt;”<br />
End If<br />
If FoundErr = True Then<br />
Call WriteErrMsg(ErrMsg, ComeUrl)<br />
Response.End<br />
End If</p></blockquote>
<p><span id="more-27"></span><br />
增加以下代码</p>
<blockquote><p>If  UserLogined = True And GroupID&gt;6 Then<br />
Response.Write(“您所在的会员组不能留言”)<br />
Response.End<br />
End If</p></blockquote>
<p>GroupID为会员组id，后台会员组管理中可以看到。默认情况下，未验证会员、待审批会员的GroupID分别为7、8。 条件GroupID&gt;6可以根据自己需要修改，上面if、end间的代码自己也可自行修改。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zhangzhenfeng.com/guestbook-write-limits/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>admin与admin888的md5密文</title>
		<link>http://www.zhangzhenfeng.com/md5-admin-admin888/</link>
		<comments>http://www.zhangzhenfeng.com/md5-admin-admin888/#comments</comments>
		<pubDate>Wed, 26 Dec 2007 12:05:31 +0000</pubDate>
		<dc:creator>阵风</dc:creator>
				<category><![CDATA[网站]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[admin888]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[md5]]></category>
		<category><![CDATA[内容管理系统]]></category>
		<category><![CDATA[网站管理系统]]></category>

		<guid isPermaLink="false">http://www.zhangzhenfeng.com/?p=18</guid>
		<description><![CDATA[很多网站内容管理系统的默认用户名是admin，默认密码是admin888，而且密码在数据库存储时采用md5加密。如果一时大意，忘记了CMS的后台密码，只好修改数据库了。修改数据库密码字段时自然不能再填明文，而应该填写对应的md5加密后的密文。]]></description>
			<content:encoded><![CDATA[<p>很多网站内容管理系统的默认用户名是admin，默认密码是admin888，而且密码在数据库存储时采用md5加密。如果一时大意，忘记了CMS的后台密码，只好修改数据库了。修改数据库密码字段时自然不能再填明文，而应该填写对应的md5加密后的密文。<span id="more-18"></span></p>
<p>  admin经过md5加密后的密文如下：<br />
16位加密：7a57a5a743894a0e<br />
32位加密：21232f297a57a5a743894a0e4a801fc3</p>
<p>admin888经过md5加密后的密文如下：<br />
16位加密：469e80d32c0559f8<br />
32位加密：7fef6171469e80d32c0559f88b377245</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zhangzhenfeng.com/md5-admin-admin888/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

