最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp做邮箱激活登陆代码
时间:2022-07-02 22:46:05 编辑:袖梨 来源:一聚教程网
很多网站都用会员注册功能,注册成功后需要邮箱激活效果,今天我们就来做这种效果吧.
<%
Dim username,password
Dim repassword,answer
Dim Rs, SQL
If Trim(Request("username")) = "" Or Trim(Request("pass")) = "" Or Trim(Request("repass")) = "" Or Trim(Request("answer")) = "" Then
Response.Write ""
Else
username = Newasp.CheckBadstr(Request("username"))
password = Newasp.CheckBadstr(Request("pass"))
repassword = MD5(Newasp.Checkstr(Request("repass")))
answer = MD5(Request("answer"))
SQL = "SELECT password,UserGrade FROM [NC_User] WHERE username='" & username & "' And password='" & password & "' And answer='" & answer & "'"
Set Rs = Server.CreateObject("adodb.recordset")
Rs.open SQL, Conn, 1, 3
If Rs.EOF And Rs.bof Then
Response.Write ""
Else
If Rs("UserGrade") = 999 Then
Response.Write ""
Else
Rs("password") = repassword
Rs.Update
'-----------------------------------------------------------------
'系统整合
'-----------------------------------------------------------------
Dim API_Newasp,API_SaveCookie,SysKey
If API_Enable Then
Set API_Newasp = New API_Conformity
API_Newasp.NodeValue "action","reguser",0,False
API_Newasp.NodeValue "username",UserName,1,False
Md5OLD = 1
SysKey = Md5(API_Newasp.XmlNode("username") & API_ConformKey)
Md5OLD = 0
API_Newasp.NodeValue "syskey",SysKey,0,False
API_Newasp.NodeValue "password",Request("repass"),0,False
API_Newasp.SendHttpData
Set API_Newasp = Nothing
End If
'-----------------------------------------------------------------
Response.Write ""
End If
End If
Rs.Close
Set Rs = Nothing
End If
CloseConn
%>
相关文章
- 《艾塔纪元》武器升级怎么样 06-16
- DYθR 创始人深度剖析:解密代币价格涨跌背后的群体行为密码 06-16
- 最新正规全球交易所2025数字资产交易榜单-最安全虚拟币交易app币安推荐 06-16
- 《空之要塞:启航》完美链接第四十一关怎么通关最快 06-16
- 《世界之外》柏源循此极乐侧影有哪些 06-16
- 2025最热门币圈十大现货交易平台TOP10-低手续费币圈交易所币安推荐 06-16