网站公告

 最新文章

正在载入数据……

 最新评论

正在载入数据……

 最新留言

正在载入数据……

 

站点信息
 
正在载入数据……





如何删除PJblog验证码

2007-11-15 7:59:00

我申请的这个虚拟空间,不能显示出验证码。所以一直想删掉验证码,可惜不会,现在我终于搞定了啊!
具体步骤以下:
1.打开 common/checkUser.asp 去掉以下这两段:
程序代码 第26行
IF validate="" Then
ReInfo(0)="错误信息"
ReInfo(1)="<b>请输入登录验证码</b><br/><a href=""javascript:history.go(-1);"">请返回重新输入</a>"
ReInfo(2)="WarningIcon"
login=ReInfo
logout(false)
exit function
end if

程序代码 第35行(前面修改后)
IF cstr(lcase(Session("GetCode")))<>cstr(lcase(validate)) then
ReInfo(0)="错误信息"
ReInfo(1)="<b>验证码有误,请返回重新输入</b><br/><a href=""javascript:history.go(-1);"">请返回重新输入</a>"
ReInfo(2)="ErrorIcon"
login=ReInfo
logout(false)
exit function
end if

2.打开 login.asp。去掉
程序代码 第49行
< label>验证码:<input name="validate" type="text" size="4" class="userpass" maxlength="4"/> <%=getcode()%></label><br/>


去掉留言本的验证码: (无此插件的朋友跳过)

打开 Plugins/GuestBook/bookaction.asp 去掉
程序代码 程序代码
IF cstr(lcase(Session("GetCode")))<>cstr(lcase(validate)) then
showmsg "留言发表错误信息","<b>验证码有误,请返回重新输入</b><br/><a href="http://home.163er.com/"LoadMod.asp?plugins=GuestBookForPJBlog"">请返回重新输入</a>", "ErrorIcon","plugins"
exit function
end if

打开 Plugins/GuestBook/guestbook.asp 去掉 无此插件的朋友可以跳过
程序代码 程序代码
<tr><td align="right" width="70"><strong>验证码:</strong></td><td align="left" style="padding:3px;"><input name="validate" type="text" size="4" class="userpass" maxlength="4"/> <%=getcode()%></td></tr>


其它地方的验证码也可去掉:

打开 blogcomm.asp 去掉
程序代码 第95行
IF (memName=empty or blog_validate=true) and cstr(lcase(Session("GetCode")))<>cstr(lcase(validate)) then
ReInfo(0)="评论发表错误信息"
ReInfo(1)="<b>验证码有误,请返回重新输入</b><br/><a href=""javascript:history.go(-1);"">请返回重新输入</a>"
ReInfo(2)="ErrorIcon"
postcomm=ReInfo
exit function
end if

3.打开 register.asp 去掉
下面这段程序代码我的源码里没有,也就不用删除了
IF (memName=empty or blog_validate=true) and cstr(lcase(Session("GetCode")))<>cstr(lcase(validate)) then
ReInfo(0)="评论发表错误信息"
ReInfo(1)="<b>验证码有误,请返回重新输入</b><br/><a href=""javascript:history.go(-1);"">请返回重新输入</a>"
ReInfo(2)="ErrorIcon"
postcomm=ReInfo
exit function
end if

程序代码
  <tr><td align="right" width="85"><strong>验证码:</strong></td><td align="left" style="padding:3px;"><input name="validate" type="text" size="4" class="userpass" maxlength="4"/> <%=getcode()%> <font color="#FF0000"> *</font> 请输入验证码</td></tr>


程序代码
IF cstr(lcase(Session("GetCode")))<>cstr(lcase(validate)) then
ReInfo(0)="错误信息"
ReInfo(1)="<b>验证码有误,请返回重新输入</b><br/><a href=""javascript:history.go(-1);"">单击返回</a>"
ReInfo(2)="ErrorIcon"
register=ReInfo
exit function
end if

4.打开 class/cls_article.asp 去掉
程序代码
<%if memName=empty or blog_validate=true then%><tr><td align="right" width="70"><strong>验证码:</strong></td><td align="left" style="padding:3px;"><input name="validate" type="text" size="4" class="userpass" maxlength="4"/> <%=getcode()%></td></tr><%end if%>


打开 common/function.asp 去掉
程序代码
'*************************************
'获得注册码
'*************************************
Function getcode()
getcode= "<img src="http://home.163er.com/"common/getcode.asp"" alt="""" style=""margin-right:40px;""/>"
End Function

5.打开 /BlogLink.asp文件 去掉
程序代码
                 <tr><td align="right" width="70"><strong>验证码:</strong></td><td align="left" style="padding:3px;"><input name="link_validate" type="text" size="4" class="userpass" maxlength="4"/><%=getcode()%></td></tr>


6.最后删除 common/GetCode.asp

阅读全文 | 回复(0) | 编辑
 


  • 标签:删除 验证码 
  • 发表评论:
    正在载入数据……


    Powered by 163er.com