% If Session("adminLoggedIn") <> True Then Response.Redirect("admin.asp?redir=setup.asp&mode=" & pageMode & "&searchQ=" & searchQ) ElseIf Request.QueryString("step") = "2" Then authName = Request.Form("loginName") authPass = Request.Form("pw1") pw2 = Request.Form("pw2") fullName = Request.Form("fullName") adminEmail = Request.Form("adminEmail") emailType = Request.Form("emailType") emailHost = Request.Form("emailHost") allowEmailFriend = Request.Form("allowEmailFriend") allowRateArticle = Request.Form("allowRateArticle") headerLogo = Request.Form("headerLogo") pageTitle = Request.Form("pageTitle") homePage = Request.Form("homePage") bgColor = Request.Form("bgColor") fontColor = Request.Form("fontColor") fontSize = Request.Form("fontSize") fontFamily = Request.Form("fontFamily") aLinkColor = Request.Form("aLinkColor") aLinkWeight = Request.Form("aLinkWeight") aLinkStyle = Request.Form("aLinkStyle") aHoverColor = Request.Form("aHoverColor") aHoverStyle = Request.Form("aHoverStyle") tblOddBgColor = Request.Form("tblOddBgColor") tblOddColor = Request.Form("tblOddColor") tblEvenBgColor = Request.Form("tblEvenBgColor") tblEvenColor = Request.Form("tblEvenColor") tblLinkColor = Request.Form("tblLinkColor") tblHoverColor = Request.Form("tblHoverColor") If authName = "" OR authPass = "" OR fullName = "" OR adminEmail = "" OR authPass <> pw2 OR headerLogo = "" OR pageTitle = "" OR homePage = "" OR bgColor = "" OR fontColor = "" OR aLinkColor = "" OR aHoverColor = "" OR tblOddBgColor = "" OR tblOddColor = "" OR tblEvenBgColor = "" OR tblEvenColor = "" OR tblLinkColor = "" OR tblHoverColor = "" Then emptyData = True Else emptyData = False Set rsKbSearch = Server.CreateObject("ADODB.RecordSet") adoCon.Open cString StrSql="UPDATE tbl_Admin SET authName='" & authName & "', authPass='" & authPass & "', fullName='" & fullName & "', adminEmail='" & adminEmail & "', emailType='" & emailType & "', emailHost='" & emailHost & "', allowEmailFriend='" & allowEmailFriend & "', allowRateArticle='" & allowRateArticle & "'," & _ "pageTitle='" & pageTitle & "', homePage='" & homePage & "', headerLogo='" & headerLogo & "', bgColor='" & bgColor & "', fontColor='" & fontColor & "', fontFamily='" & fontFamily & "', fontSize='" & fontSize & "', aLinkColor='" & aLinkColor & "', aLinkWeight='" & aLinkWeight & "'," & _ "aLinkStyle='" & aLinkStyle & "', aHoverColor='" & aHoverColor & "', aHoverStyle='" & aHoverStyle & "', tblEvenBgColor='" & tblEvenBgColor & "', tblEvenColor='" & tblEvenColor & "', tblOddBgColor='" & tblOddBgColor & "', tblOddColor='" & tblOddColor & "'," & _ "tblLinkColor='" & tblLinkColor & "', tblHoverColor='" & tblHoverColor & "'" adoCon.Execute(StrSql) adoCon.Close 'Set rsKbSearch = Nothing Session("adminName") = authName Response.Redirect("search.asp?mode=" & pageMode & "&searchQ=" & searchQ) End If End If Set rsAdmin = Server.CreateObject("ADODB.RecordSet") AdminSql="SELECT * FROM tbl_Admin" rsAdmin.Open AdminSql,cString %>
Several of the required fields were left empty, and are marked in red. Please make the necessary changes.
<% End If %> <% If authPass <> pw2 Then %>The Password and Confirmation Password must be the same.
<% End If %> <% Server.Execute("inc_footer.asp") %> <% rsAdmin.Close Set rsAdmin = Nothing %>