<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%> <% Dim varStatus varStatus=Request.Querystring("status") %> <% ' *** Validate request to log in to this site. MM_LoginAction = Request.ServerVariables("URL") If Request.QueryString<>"" Then MM_LoginAction = MM_LoginAction + "?" + Server.HTMLEncode(Request.QueryString) MM_valUsername=CStr(Request.Form("name")) If MM_valUsername <> "" Then MM_fldUserAuthorization="" MM_redirectLoginSuccess="/statescholars/stateDirPage.asp?name=" & Replace(MM_valUsername,"'","''") &"" MM_redirectLoginFailed="stateDir_login.asp?status=fail" MM_flag="ADODB.Recordset" set MM_rsUser = Server.CreateObject(MM_flag) MM_rsUser.ActiveConnection = MM_webdata_STRING MM_rsUser.Source = "SELECT username, pw" If MM_fldUserAuthorization <> "" Then MM_rsUser.Source = MM_rsUser.Source & "," & MM_fldUserAuthorization MM_rsUser.Source = MM_rsUser.Source & " FROM dbo.SSI_stateDir WHERE username='" & Replace(MM_valUsername,"'","''") &"' AND pw='" & Replace(Request.Form("pword"),"'","''") & "'" MM_rsUser.CursorType = 0 MM_rsUser.CursorLocation = 2 MM_rsUser.LockType = 3 MM_rsUser.Open If Not MM_rsUser.EOF Or Not MM_rsUser.BOF Then ' username and password match - this is a valid user Session("MM_Username") = MM_valUsername If (MM_fldUserAuthorization <> "") Then Session("MM_UserAuthorization") = CStr(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value) Else Session("MM_UserAuthorization") = "" End If if CStr(Request.QueryString("accessdenied")) <> "" And true Then MM_redirectLoginSuccess = Request.QueryString("accessdenied") End If MM_rsUser.Close Response.Redirect(MM_redirectLoginSuccess) End If MM_rsUser.Close Response.Redirect(MM_redirectLoginFailed) End If %> State Scholars Initiative: State Directors Login

State Scholars Initiative

"A scholar today ... A success tomorrow!"

    Log in

<% If varStatus<>"" Then%>

<% If varStatus="fail" Then%> UNSUCCESSFUL LOGIN ATTEMPT. Please try again.

If you have forgotten your password, please email Deborah. <% Else %> You have attempted to reach a page that is password-protected. Please log in below. <% End If %>

<% End If %>

Username  

Password   

For further information, contact website@wiche.edu.