引用:
原帖由 jayyes 于 2008-4-8 22:04 发表 
改了第二步红色部分提交的时候就显示服务器内部错误
如果是非管理员应该就不能提交回复了,你没有添加下面的代码吗?
不允许提交越权回复修改方法有两个
第一个就是老戒帖子里改的,找到
复制内容到剪贴板
代码:
if not stat_CommentAdd then
response.write ("你没有权限发表评论!")
response.write ("</div></div>")
exit sub
end if在下面添加
引用:
if action="Reply" and not stat_Admin then
response.write ("你没有权限回复评论!")
response.write ("</div></div>")
exit sub
end if
第二个最干脆,找到
复制内容到剪贴板
代码:
CommReplyContent=commArr(12,Pcount)在下面添加
复制内容到剪贴板
代码:
if action="Reply" then
if not(stat_Admin or blog_CommAuthor=memName and memName<>empty) then
showmsg "错误信息","你没有权限进行此项操作!
<a href=""javascript:history.go(-1)"">单击返回</a>","WarningIcon",""
end if
if commID=Empty or IsInteger(commID)=False then
showmsg "错误信息","非法操作
<a href=""javascript:history.go(-1)"">单击返回</a>","WarningIcon",""
end if
end if