<%@LANGUAGE="JAVASCRIPT"%> <% var StudioSet = Server.CreateObject("ADODB.Recordset"); StudioSet.ActiveConnection = MM_HUBARData_STRING; StudioSet.Source = "SELECT * FROM HUBAR.StudioLogIn ORDER BY UserName ASC"; StudioSet.CursorType = 0; StudioSet.CursorLocation = 2; StudioSet.LockType = 3; StudioSet.Open(); var StudioSet_numRows = 0; %> <% // *** Validate request to log in to this site. var MM_LoginAction = Request.ServerVariables("URL"); if (Request.QueryString!="") MM_LoginAction += "?" + Request.QueryString; var MM_valUsername=String(Request.Form("StudioLogIn")); if (MM_valUsername != "undefined") { var MM_fldUserAuthorization=""; var MM_redirectLoginSuccess="StudPub1.html"; var MM_redirectLoginFailed="LogInFail.html"; var MM_flag="ADODB.Recordset"; var MM_rsUser = Server.CreateObject(MM_flag); MM_rsUser.ActiveConnection = MM_HUBARData_STRING; MM_rsUser.Source = "SELECT UserName, Password"; if (MM_fldUserAuthorization != "") MM_rsUser.Source += "," + MM_fldUserAuthorization; MM_rsUser.Source += " FROM HUBAR.StudioLogIn WHERE UserName='" + MM_valUsername + "' AND Password='" + String(Request.Form("Password")) + "'"; MM_rsUser.CursorType = 0; MM_rsUser.CursorLocation = 2; MM_rsUser.LockType = 3; MM_rsUser.Open(); if (!MM_rsUser.EOF || !MM_rsUser.BOF) { // username and password match - this is a valid user Session("MM_Username") = MM_valUsername; if (MM_fldUserAuthorization != "") { Session("MM_UserAuthorization") = String(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value); } else { Session("MM_UserAuthorization") = ""; } if (String(Request.QueryString("accessdenied")) != "undefined" && false) { MM_redirectLoginSuccess = Request.QueryString("accessdenied"); } MM_rsUser.Close(); Response.Redirect(MM_redirectLoginSuccess); } MM_rsUser.Close(); Response.Redirect(MM_redirectLoginFailed); } %> Studio In A School Log-In Page

 

Linking Visual Arts & Literacy

Project Archive

 

ENTER


If possible, please view this archive at a screen resolution of 800 x 600 or best at 1024 x 768.

Make sure you monitor is set for 16bit color or higher.

<% StudioSet.Close(); %>