%@ Language=JavaScript%> <% /* Connection Pooler */ var ConnectionCache = new ConnectionCache() /* server-side recordset */ var passwordRS = new Recordset("passwordRS", "GHammond", "", "", "Select * From PasswordTbl", "", true, 2, 3, 3, ""); passwordRS.Open(); passwordRS.ProcessAction(); passwordRS.SetMessages("",""); passwordRS_Server(); %> <% function passwordRS_Server() { if ("Password"=="" || "PasswordName"=="") dbiMissingParameters("Verify username from passuse and password from passuse","passwordRS") if (String(Request("FormButton1"))!="undefined") { var strSuccessPage = URLEscapeSpaces("news.asp") var strFailPage = URLEscapeSpaces("news.asp") var strFilter = "Password" + "= '" + String(Request("passuse")) + "' AND " + "PasswordName" + " = '" + String(Request("passuse")) + "'"; var bEmpty = false if ("0"=="1" && String(Session("PreviousPage"))!="undefined") { strSuccessPage = dbiGetCurrentPage(1,1,1) } passwordRS.Filter(strFilter) if (passwordRS.IsBOF() && passwordRS.IsEOF()) { bEmpty = true } if (bEmpty==false) { Session("SessionPassword")=String(passwordRS.GetColumnValue("PasswordAccesLevel")) } if ("0"=="1" && bEmpty==false) { Session("")=String(passwordRS.GetColumnValue("")) } if ("0"=="1" && bEmpty==false) { Session("")=String(passwordRS.GetColumnValue("")) } if ("0"=="1") { if (bEmpty==false) { Response.Redirect(strSuccessPage) } } else if ("1"=="1") { if (bEmpty==false) { Response.Redirect(strSuccessPage) } else { Response.Redirect(strFailPage) } } } } %>