%
'===================
'make sure the data all matches up
dim emailexist, error, error_msg
set tigRS = Server.CreateObject("ADODB.Recordset")
query = "SELECT id, user_name, email, unlock_key " & _
"FROM forum_user " & _
"WHERE " & _
"email = '" & SQLsafe(Request.QueryString("e")) & "'" & _
"and " & _
"unlock_key = '" & SQLsafe(Request.QueryString("n")) & "'"
'Response.Write("Query = [" & query & "]
")
tigRS.Open query,DSN,1
if not tigRS.EOF then
emailexist = true
Response.Cookies("lvl")("forumid") = tigRS("id")
Response.Cookies("lvl")("forumuser_name") = tigRS("user_name")
Response.Cookies("lvl").expires = dateadd("yyyy",1,now())
else
'they ain't in the DB :[
error = true
error_msg = error_msg & "
|
<% if error then Response.Write("There was an error processing your request.
Welcome to the ..::LvL forum - you have successfully unlocked your account. You can now add topics to the forums Enjoy... <% end if %> |
|