KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/thomasjolly1/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/thomasjolly1/admin/index.asp
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="../Connections/dsPets.asp" -->
<%
set rsUsers = Server.CreateObject("ADODB.Recordset")
rsUsers.ActiveConnection = MM_dsPets_STRING
rsUsers.Source = "SELECT * FROM tblUsers"
rsUsers.CursorType = 0
rsUsers.CursorLocation = 2
rsUsers.LockType = 3
rsUsers.Open()
rsUsers_numRows = 0
%>
<%
' *** Validate request to log in to this site.
MM_LoginAction = Request.ServerVariables("URL")
If Request.QueryString<>"" Then MM_LoginAction = MM_LoginAction + "?" + Request.QueryString
MM_valUsername=CStr(Request.Form("textfield"))
If MM_valUsername <> "" Then
  MM_fldUserAuthorization=""
  MM_redirectLoginSuccess="admin.asp"
  MM_redirectLoginFailed="index.asp"
  MM_flag="ADODB.Recordset"
  set MM_rsUser = Server.CreateObject(MM_flag)
  MM_rsUser.ActiveConnection = MM_dsPets_STRING
  MM_rsUser.Source = "SELECT User_Name, Password"
  If MM_fldUserAuthorization <> "" Then MM_rsUser.Source = MM_rsUser.Source & "," & MM_fldUserAuthorization
  MM_rsUser.Source = MM_rsUser.Source & " FROM tblUsers WHERE User_Name='" & MM_valUsername &"' AND Password='" & CStr(Request.Form("textfield2")) & "'"
  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 false 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
%>
<html>
<head>
<title>Jolly Antiques</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../css/style.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td bgcolor="#A3B2C7"><img src="../images/jolly_logo.gif" width="401" height="87">      <div align="right"> </div></td>
  </tr>
  <tr>
    <td bgcolor="#666633"><img src="images/spacer.gif" width="1" height="7"></td>
  </tr>
  <tr>
    <td bgcolor="#999966"><img src="images/spacer.gif" width="1" height="1"></td>
  </tr>
  <tr>
    <td bgcolor="#666633"><img src="images/spacer.gif" width="1" height="3"></td>
  </tr>
  <tr>
    <td bgcolor="#cccc99"><img src="images/spacer.gif" width="1" height="22"></td>
  </tr>
</table>
<br>
<table width="770" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td> 
      <table width="500" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr> 
          <td> 
            <form name="login" method="post" action="<%=MM_LoginAction%>">
              <table width="300" border="0" cellspacing="0" cellpadding="0" align="center">
                <tr> 
                  <td> 
                    <div align="right">User ID:</div>
                  </td>
                  <td> 
                    <input type="text" name="textfield" maxlength="30" size="30">
                  </td>
                </tr>
                <tr> 
                  <td> 
                    <div align="right">Password:</div>
                  </td>
                  <td> 
                    <input type="password" name="textfield2" maxlength="30" size="30">
                  </td>
                </tr>
                <tr> 
                  <td>&nbsp;</td>
                  <td> 
                    <input type="submit" name="Submit" value="Submit">
                  </td>
                </tr>
              </table>
            </form>
          </td>
        </tr>
        <tr> 
          <td>
            <div align="center">Please login.</div>
          </td>
        </tr>
        <tr> 
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td>&nbsp;</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>
<%
rsUsers.Close()
%>

Anon7 - 2021