<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[静怡家园]]></title> 
<link>http://www.zhanghaijun.com/index.php</link> 
<description><![CDATA[书山有路勤为径，学海无涯苦作舟！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[静怡家园]]></copyright>
<item>
<link>http://www.zhanghaijun.com/post//</link>
<title><![CDATA[如何给你的PJ博客加评论的回复功能]]></title> 
<author>碟舞飞扬 &lt;webmaster@zhanghaijun.com&gt;</author>
<category><![CDATA[Web开发]]></category>
<pubDate>Wed, 13 Feb 2008 04:45:45 +0000</pubDate> 
<guid>http://www.zhanghaijun.com/post//</guid> 
<description>
<![CDATA[ 
	一.打开class&#92;cls_article.asp<br/>1.找到<div class="quote"><div class="quote-title">引用</div><div class="quote-content">Sub ShowComm(LogID,comDesc,DisComment)</div></div><br/>在下面插入:<div class="quote"><div class="quote-title">引用</div><div class="quote-content">dim action,commID,CommReplyContent</div></div><br/>2.搜索<div class="quote"><div class="quote-title">引用</div><div class="quote-content">SQL=&quot;Select comm_ID,comm_Content,comm_Author,comm_PostTime,comm_DisSM,comm_DisUBB,comm_DisIMG,comm_AutoURL,comm_PostIP,comm_AutoKEY FROM blog_Comment Where blog_ID=&quot;&amp;LogID&amp;&quot; UNION ALL Select 0,tb_Intro,tb_Title,tb_PostTime,tb_URL,tb_Site,tb_ID,0,&#039;127.0.0.1&#039;,0 FROM blog_Trackback Where blog_ID=&quot;&amp;LogID&amp;&quot; orDER BY comm_PostTime &quot;&amp;comDesc</div></div><br/>替换为<div class="quote"><div class="quote-title">引用</div><div class="quote-content">if action=&quot;Reply&quot; then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;commID=request(&quot;commID&quot;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SQL=&quot;Select comm_ID,comm_Content,comm_Author,comm_PostTime,comm_DisSM,comm_DisUBB,comm_DisIMG,comm_AutoURL,comm_PostIP,comm_AutoKEY,comm_Reply,comm_Replytime FROM blog_Comment Where comm_ID=&quot;&amp;commID&amp;&quot; UNION ALL Select 0,tb_Intro,tb_Title,tb_PostTime,tb_URL,tb_Site,tb_ID,0,&#039;127.0.0.1&#039;,0,0,0 FROM blog_Trackback Where blog_ID=&quot;&amp;LogID&amp;&quot; orDER BY comm_PostTime &quot;&amp;comDesc<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SQL=&quot;Select comm_ID,comm_Content,comm_Author,comm_PostTime,comm_DisSM,comm_DisUBB,comm_DisIMG,comm_AutoURL,comm_PostIP,comm_AutoKEY,comm_Reply,comm_Replytime FROM blog_Comment Where blog_ID=&quot;&amp;LogID&amp;&quot; UNION ALL Select 0,tb_Intro,tb_Title,tb_PostTime,tb_URL,tb_Site,tb_ID,0,&#039;127.0.0.1&#039;,0,0,0 FROM blog_Trackback Where blog_ID=&quot;&amp;LogID&amp;&quot; orDER BY comm_PostTime &quot;&amp;comDesc<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if</div></div><br/>3.找到<div class="quote"><div class="quote-title">引用</div><div class="quote-content">&lt;a href=&quot;&quot;blogcomm.asp?action=del&amp;commID=&quot;&amp;blog_CommID&amp;&quot;&quot;&quot; onclick=&quot;&quot;if (!window.confirm(&#039;是否删除该评论?&#039;)) &#123;return false&#125;&quot;&quot;&gt;</div></div><br/>在它之前插入<div class="quote"><div class="quote-title">引用</div><div class="quote-content">&lt;a href=&quot;&quot;article.asp?action=Reply&amp;commID=&quot;&amp;blog_CommID&amp;&quot;&amp;ID=&quot;&amp;LogID&amp;&quot;#comm_&quot;&amp;blog_CommID&amp;&quot;&quot;&quot;&gt;&lt;img src=&quot;&quot;Plugins/guestbook/reply.gif&quot;&quot; alt=&quot;&quot;回复&quot;&quot; border=&quot;&quot;0&quot;&quot; style=&quot;&quot;margin-bottom:-3px&quot;&quot;/&gt;&lt;/a&gt;</div></div><br/>4.找到<div class="quote"><div class="quote-title">引用</div><div class="quote-content">&lt;div id=&quot;MsgHead&quot;&gt;发表评论&lt;/div&gt;</div></div><br/>将 发表评论 替换为<div class="quote"><div class="quote-title">引用</div><div class="quote-content">&lt;%<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if action=&quot;Reply&quot; then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.write &quot;回复评论&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.write &quot;发表评论&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end if<br/>%&gt;</div></div><br/>5.找到<div class="quote"><div class="quote-title">引用</div><div class="quote-content">&lt;input name=&quot;action&quot; type=&quot;hidden&quot; value=&quot;post&quot;/&gt;</div></div><br/>替换为<div class="quote"><div class="quote-title">引用</div><div class="quote-content">&lt;%<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if action=&quot;Reply&quot; then<br/>%&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input name=&quot;action&quot; type=&quot;hidden&quot; value=&quot;Reply&quot;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input name=&quot;commID&quot; type=&quot;hidden&quot; value=&quot;&lt;%=blog_CommID%&gt;&quot;/&gt;<br/>&lt;%<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br/>%&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input name=&quot;action&quot; type=&quot;hidden&quot; value=&quot;post&quot;/&gt;<br/>&lt;%<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end if<br/>%&gt;</div></div><br/>6.找到<div class="quote"><div class="quote-title">引用</div><div class="quote-content">&lt;div class=&quot;commentcontent&quot; id=&quot;commcontent_&lt;%=blog_CommID%&gt;&quot;&gt;&lt;%=UBBCode(HtmlEncode(blog_CommContent),commArr(4,Pcount),blog_commUBB,blog_commIMG,commArr(7,Pcount),commArr(9,Pcount))%&gt;&lt;/div&gt;</div></div><br/>在下面插入<div class="quote"><div class="quote-title">引用</div><div class="quote-content">&lt;%if len(commArr(10,Pcount))&gt;0 then %&gt;<br/>&lt;div class=&quot;commenttop&quot;&gt;&lt;img src=&quot;images/reply.gif&quot; alt=&quot;&quot; border=&quot;0&quot; style=&quot;margin:0px 3px -3px 0px&quot;/&gt;&lt;b&gt;&lt;%=blog_master%&gt;回复&lt;/b&gt;&nbsp;&nbsp;&lt;span class=&quot;commentinfo&quot;&gt;[&lt;%=DateToStr(commArr(11,Pcount),&quot;Y-m-d H:I A&quot;)%&gt;]&lt;/span&gt;&lt;/div&gt;<br/>&lt;div class=&quot;commentcontent&quot;&gt;&lt;%=UBBCode(HtmlEncode(commArr(10,Pcount)),0,0,0,1,1)%&gt;&lt;/div&gt;<br/>&lt;%end if%&gt;</div></div><br/>7.找到<div class="quote"><div class="quote-title">引用</div><div class="quote-content">blog_CommContent=commArr(1,Pcount)</div></div><br/>在下面插入(注意:如果出错了请将里面的10修改为12)<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">dim CommReplyConten<br/>CommReplyContent=commArr(10,Pcount)</div></div><br/>8.找到<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">UBB_Tools_Items=UBB_Tools_Items&amp;&quot;&#124;&#124;image,link,mail,quote,smiley&quot;</div></div><br/>在下面插入<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">if action=&quot;Reply&quot; then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UBB_Msg_Value=UBBFilter(UnCheckStr(CommReplyContent))<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if</div></div><br/>二.打开blogcomm.asp<br/>1.在最下面的一个<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">%&gt;</div></div><br/>之前插入如下代码<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">function replyMsg<br/>&nbsp;&nbsp;dim post_Message,MsgID,ReInfo,post_logID<br/>&nbsp;&nbsp;ReInfo=Array(&quot;错误信息&quot;,&quot;&quot;,&quot;MessageIcon&quot;)<br/>&nbsp;&nbsp;MsgID = CheckStr(Request.form(&quot;commID&quot;))<br/>&nbsp;&nbsp;post_Message=CheckStr(request.form(&quot;Message&quot;))<br/>&nbsp;&nbsp;post_logID=CheckStr(request.form(&quot;logID&quot;))<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if not (memName&lt;&gt;empty and stat_Admin) then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReInfo(0)=&quot;评论回复错误信息&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReInfo(1)=&quot;你没有权限回复留言&lt;a href=&quot;&quot;javascript:history.go(-1)&quot;&quot;&gt;单击返回&lt;/a&gt;&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReInfo(2)=&quot;ErrorIcon&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If MsgID=Empty then <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReInfo(0)=&quot;评论回复错误信息&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReInfo(1)=&quot;非法操作&lt;a href=&quot;&quot;javascript:history.go(-1)&quot;&quot;&gt;单击返回&lt;/a&gt;&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReInfo(2)=&quot;ErrorIcon&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If IsInteger(MsgID)=0 then <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReInfo(0)=&quot;评论回复错误信息&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReInfo(1)=&quot;非法操作&lt;a href=&quot;&quot;javascript:history.go(-1)&quot;&quot;&gt;单击返回&lt;/a&gt;&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReInfo(2)=&quot;ErrorIcon&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Conn.ExeCute(&quot;update blog_Comment set Comm_reply=&#039;&quot;&amp;post_Message&amp;&quot;&#039;,Comm_replytime=&#039;&quot;&amp;now&amp;&quot;&#039; where comm_ID=&quot; &amp; MsgID)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReInfo(0)=&quot;评论回复成功&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReInfo(1)=&quot;&lt;b&gt;你成功地对该评论进行了回复&lt;/b&gt;&lt;br/&gt;&lt;a href=&quot;&quot;article.asp?id=&quot;&amp;post_logID&amp;&quot;&quot;&quot;&gt;单击返回该日志&lt;/a&gt;&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReInfo(2)=&quot;MessageIcon&quot;<br/>replyMsg=ReInfo<br/>end function</div></div><br/>2.找到<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">&lt;%<br/>else<br/>response.write (&quot;非法操作!!&quot;)</div></div><br/>在上面插入如下代码<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">&lt;%<br/>elseif Request(&quot;action&quot;)=&quot;Reply&quot; then<br/>PostBComm=replyMsg<br/>%&gt;<br/>&nbsp;&nbsp; &lt;div style=&quot;text-align:center;&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id=&quot;MsgContent&quot; style=&quot;width:300px&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id=&quot;MsgHead&quot;&gt;&lt;%=PostBComm(0)%&gt;&lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id=&quot;MsgBody&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div class=&quot;&lt;%=PostBComm(2)%&gt;&quot;&gt;&lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div class=&quot;MessageText&quot;&gt;&lt;%=PostBComm(1)%&gt;&lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br/>&nbsp;&nbsp;&lt;/div&gt;</div></div><br/>三.打开ConContent.asp<br/>1.找到<div class="quote"><div class="quote-title">引用</div><div class="quote-content">conn.execute(&quot;Update blog_Comment SET comm_Content=&#039;&quot;&amp;checkStr(Request.form(&quot;message_&quot;&amp;doCommID(i)))&amp;&quot;&#039; Where comm_ID=&quot;&amp;doCommID(i))</div></div><br/>替换为<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">conn.execute(&quot;Update blog_Comment SET comm_Content=&#039;&quot;&amp;checkStr(Request.form(&quot;message_&quot;&amp;doCommID(i)))&amp;&quot;&#039;,comm_Reply=&#039;&quot;&amp;checkStr(Request.form(&quot;reply_&quot;&amp;doCommID(i)))&amp;&quot;&#039;,Comm_replytime=&#039;&quot;&amp;now&amp;&quot;&#039; Where comm_ID=&quot;&amp;doCommID(i))</div></div><br/>2.找到第二处的（有两处）<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">&lt;div class=&quot;content&quot;&gt;&lt;textarea name=&quot;message_&lt;%=commArr(0,Pcount)%&gt;&quot; onFocus=&quot;focusMe(this)&quot; onBlur=&quot;blurMe(this)&quot; onMouseOver=&quot;overMe(this)&quot; onMouseOut=&quot;outMe(this)&quot;&gt;&lt;%=UnCheckStr(commArr(1,Pcount))%&gt;&lt;/textarea&gt;&lt;/div&gt;</div></div><br/>在下面插入<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">&lt;div class=&quot;reply&quot;&gt;&lt;h5&gt;回复内容:&lt;%if len(trim(commArr(7,Pcount)))&lt;1 or IsNull(commArr(7,Pcount)) then response.write &quot;&lt;span class=&quot;&quot;tip&quot;&quot;&gt;(无回复留言)&lt;/span&gt;&quot;%&gt;&lt;/h5&gt;&lt;textarea name=&quot;reply_&lt;%=commArr(0,Pcount)%&gt;&quot; onFocus=&quot;focusMe(this)&quot; onBlur=&quot;blurMe(this)&quot; onMouseOver=&quot;overMe(this)&quot; onMouseOut=&quot;outMe(this)&quot; onChange=&quot;checkMe(this)&quot;&gt;&lt;%=UnCheckStr(commArr(7,Pcount))%&gt;&lt;/textarea&gt;&lt;/div&gt;</div></div><br/>3.找到<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">SQL=&quot;Select comm_ID,comm_Content,comm_Author,comm_PostTime,comm_PostIP,blog_ID,T.log_Title from blog_Comment C,blog_Content T Where C.blog_ID=T.log_ID orDER BY C.comm_PostTime desc&quot;</div></div><br/>修改为:<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">SQL=&quot;Select comm_ID,comm_Content,comm_Author,comm_PostTime,comm_PostIP,blog_ID,T.log_Title,comm_Reply from blog_Comment C,blog_Content T Where C.blog_ID=T.log_ID orDER BY C.comm_PostTime desc&quot;</div></div><br/><br/>四.下载附件，上传Update.ASP到博客目录执行升级数据库.然后到后台重建数据缓存.你就可以实现这个效果了!<br/>文件内容如下：<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">&lt;!--#include file=&quot;const.asp&quot; --&gt;<br/>&lt;!--#include file=&quot;conn.asp&quot; --&gt;<br/>&lt;!--#include file=&quot;common/function.asp&quot; --&gt;<br/>&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /&gt;<br/>&lt;style&gt;<br/>body&#123;<br/> font-size:12px;<br/> font-family:verdana;<br/>&#125;<br/>&lt;/style&gt;<br/>&lt;h3&gt;PJBlog 公告等升级程序&lt;/h3&gt;&lt;br/&gt;<br/>&lt;b&gt;开始执行升级 SQL 语句&lt;/b&gt;&lt;br/&gt;<br/> - 说明: &lt;span style=&quot;color:#004000&quot;&gt;&lt;b&gt;绿色文字&lt;/b&gt;&lt;/span&gt; 代表已经升级过的字段，&lt;span style=&quot;color:#0000a0&quot;&gt;&lt;b&gt;蓝色字代&lt;/b&gt;&lt;/span&gt; 表正在执行的语句<br/>&lt;br/&gt;<br/>&lt;br/&gt;<br/>&lt;div style=&quot;border:1px solid #4b372e;background:#fefded;padding:6px;line-height:160%;&quot;&gt;<br/>&lt;%<br/>&nbsp;&nbsp; SQL=&quot;Alter TABLE `blog_Comment` ADD `Comm_reply` memo&quot;<br/>&nbsp;&nbsp; UpdateSQL SQL<br/>&nbsp;&nbsp; SQL=&quot;Alter TABLE `blog_Comment` ADD `Comm_replytime` date&quot;<br/>&nbsp;&nbsp; UpdateSQL SQL<br/>&nbsp;&nbsp; Conn.ExeCute(&quot;update blog_Comment set Comm_replytime=&#039;&quot;&amp;now&amp;&quot;&#039;&quot;)<br/>&nbsp;&nbsp;%&gt;<br/>&nbsp;&nbsp;&lt;/div&gt;<br/>&nbsp;&nbsp;&lt;% <br/>Conn.Close<br/>Set Conn=Nothing<br/><br/>function UpdateSQL(SQLString)<br/> On Error Resume Next<br/>&nbsp;&nbsp;Conn.execute SQLString<br/> if err then <br/>&nbsp;&nbsp; response.write &quot;&lt;span style=&quot;&quot;color:#004000&quot;&quot;&gt;&lt;b&gt;&lt;/b&gt; &quot;&amp;err.description&amp;&quot;&lt;/span&gt;&lt;br/&gt;&quot;<br/>&nbsp;&nbsp;else<br/>&nbsp;&nbsp; response.write &quot;&lt;span style=&quot;&quot;color:#0000a0&quot;&quot;&gt;&lt;b&gt;执行:&lt;/b&gt; &quot;&amp;SQLString&amp;&quot;&lt;/span&gt;&lt;br/&gt;&quot;<br/> end if<br/>end function<br/>%&gt;<br/>&lt;div style=&quot;border:1px solid #4b372e;background:#fefded;padding:6px;line-height:160%;margin-top:2px&quot;&gt;<br/> 升级完成为了保证你的系统安全，请删除升级文件。&lt;br/&gt;升级后到后台 &lt;b&gt;&quot;站点基本设置-初试化数据&quot;&lt;/b&gt; 执行 &lt;b&gt;&quot;重建数据缓存&quot;&lt;/b&gt; <br/>&lt;/div&gt;</div></div>
]]>
</description>
</item><item>
<link>http://www.zhanghaijun.com/post//#blogcomment</link>
<title><![CDATA[[评论] 如何给你的PJ博客加评论的回复功能]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.zhanghaijun.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>