%
'use this to clear the seesion
'session("attemps") = 0
if Request.QueryString("check") = "yes" then
if session("attemps") = "" then
'only give them a few attemps to get things right
session("attemps") = 0
end if
dim loged_in, not_active
set tigCON = Server.CreateObject("ADODB.Connection")
tigCON.Open(DSN)
query = "select id, active " & _
"from mods_login where " & _
"(login = '" & SQLSafe(Request.Form("login")) & "') and " & _
"(pass = '" & SQLSafe(Request.Form("password")) & "') "
'query = query & "(pass = '" & SQLSafe(Request.Form("password")) & "') and "
'query = query & "(active = 1)"
'Response.Write("Query = [" & query & "]
")
set tigRS = tigCON.Execute(query)
if (tigRS.EOF) then
session("attemps") = session("attemps") + 1
else
'they must have got it right :], but we need to check to see if their
'account is active or not
'Response.Write("active?=[" & tigRS("active") & "]
")
if tigRS("active") then
Response.Cookies("lvlmods")("id") = tigRS("id")
Response.Cookies("lvlmods").Expires = DateAdd("yyyy",1,now())
'Response.Cookies("lvlbeta").Expires = DateAdd("n",5,now())
loged_in = true
else
'there account is correct, but it aint active yet :[
not_active = true
'Response.Write("not active?=[" & not_active & "]
")
end if
end if
end if
%>
|
so you got a new mod? Use this option to add it use this to edit or update all your currently listed mods find out what to call you screen shots and where to send them change your details like email address |
<% end if if (session("attemps") < 4) and (not_active = false) then 'don't want to give them more than 3 attemps %> mod login
|
The login/password combination you entered is not correct, want to try again? |
|
Nope, you got it wrong again :[ - want to try again? |
|
Just ain't you day is it? - This is your last chance, don't get it wrong again! |
|
You got it wrong again You could have your login detials emailed to you if you thinking you know some part of your loging, just fill in the blanks right here. If you still have problems how about you email tigger@ebom.org and let him know whats going on. He will be able to check your password (once you give some proof of who you are) and send you out your login info. |
| password - | |