<% Response.Buffer = True %> <% On Error Resume Next %> AFRL Race Lineup Submit Page

<% if request("action")="login" then %> <% '________VERIFY LOGIN___________________________________ if request("txtPwd") = "" then response.redirect "login.asp?action=login_incorrect" end if session("uid") = request("txtUserID") session("pwd") = request("txtPwd") connect_string = "Driver={Mysql}; Server=localhost;Database=crrude_afrl; UID=crrude_afrl; PWD=af0000rl" set dbConn = server.createObject("ADODB.connection") dbConn.open connect_string mySQL="select * from tblTeams where UserID ='" & request("txtUserID") & "'" set rs=dbConn.execute(mySQL) session("team")=rs("Number") session("teamname")=rs("Name") session("owner")=rs("Owner") session("email")=rs("Email") session("password")=rs("Password") session("tlogo")=rs("tlogo") session("AcctLock")=rs("AcctLock") session("Admin")=rs("Admin") session("ChgPwdReq")=rs("ChgPwdReq") session("dvrdiv1")="" session("dvrdiv2")="" session("dvrdiv3")="" session("dvrdiv4")="" session("dvrdiv5")="" session("dvrdiv6")="" session("tradedriver")="" session("dvrdiv")="" session("tradelok")="False" session("qtr")=1 session("authed")=0 %> <% if session("uid") = "" then 'response.redirect "login.asp?action=noid" end if if session("pwd") = session("password") then response.redirect "office.shtml" %>
<% else response.write "Password is not correct" %>
<% session("pwlok")=session("pwlok")+1 response.write "Incorrect Attempts: " & session("pwlok") response.redirect "login.asp?action=login_incorrect" %>
click here to try again<% if session("pwlok") > 2 then response.redirect "login.asp?action=pwlock" end if end if %>

<% else %> <% if request("action")="login_incorrect" then %> <% '___Login_PWD_FAIL___________________________________________________________________________________________________________________________________ %>

You have entered an invalid Username or Password.
Please Login Again.
Username:
Password:

 

<% else %> <% if request("action")="pwlock" then %> <% '___Login_PWD_FAIL___________________________________________________________________________________________________________________________________ %>

You have entered an invalid Username or Password.
Your account has been locked.

<% else %> <% if request("action")="noid" then %> <% '___Login_Bad_UserID__________________________________________________________________________ %>

You have entered an invalid Username
Please Try Again

<% else %> <% '___Login___________________________________________________________________________________________________________________________________ %> <% session("pwlok")=0 %>
More Info Login Sign Up

Please Log In.

Username:
Password:

 

<% end if %><% end if %><% end if %><% end if %> <% '_________ALWAYS DO THIS STUFF________________________________________________________________________ %>

Website concepts and designs by AFRL Commissioner(s) 2009