HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/web/itpartnership/RandomQ/Admin/index.asp
<!--#include file="../config.asp"-->

  <%Dim MODE, MESSAGE, LOGOUT

  LOGOUT = Request.QueryString("logout")
  MODE   = Request.Form("mode")

  IF LOGOUT = "True" Then

    Session.Contents.RemoveAll() ' Remove this line if it's giving you any trouble
    Session.Abandon

  End If

  IF MODE = "in" THEN
    IN_USER = Request.Form("username")
    IN_PASS = Request.Form("password")
    IF (IN_USER = USERNAME) AND (IN_PASS = PASSWORD) THEN

            Session.Timeout = 20
            Session("RQ_LOGIN") = "True"
      Response.Redirect "index_q.asp"
      Response.End

        ELSE

          MESSAGE = "Incorrect username or password."

        END IF
  END IF
  %>

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html><head>
      <title>Administration Login</title>
    <link rel="STYLESHEET" type="text/css" href="styles.css">
      <script language="JavaScript">
      <!-- Begin
          function validate(){
          if (document.frm.username.value=="") {
            alert("Please enter your username.")
            document.frm.username.focus()
          return false }
          if (document.frm.password.value=="") {
            alert("Please enter City.")
            document.frm.password.focus()
          return false }
      }
      // End -->
      </script>
    </head><body bgcolor="#ffffff">

  <table width="100%" height="100%" align="center" border="0"><tr>
    <td align="center" valign="middle">
    <form action="index.asp" method="post" name="frm" onSubmit="return validate()">
      <table width="390" height="180" align="center" cellpadding="0" cellspacing="0" border="1" bordercolor="#C1C5CC" style="border-collapse: collapse;"><tr>
        <td colspan="2" style="color: Gray">&nbsp;Random Quote</td>
      </tr><tr>
        <td rowspan="2" width="170" valign="top">
          <table width="95%" height="100%" align="center" cellpadding="2" cellspacing="0" border="0"><tr>
            <td valign="top"><br />&nbsp;<%=MESSAGE%></td>
          </tr></table>
        </td>
        <td bgcolor="#EFEFEF">
          <table cellpadding="2" cellspacing="0" border="0" align="center"><tr>
            <td>Username:</td>
            <td><input style="width: 140px;"  class="textbox" type="Text" name="username" value="" size="27" maxlength="25" /></td>
            </tr><tr><script>document.frm.username.focus();</script>
            <td>Password:</td>
            <td><input style="width: 140px;"  class="textbox" type="Password" name="password" value="" size="27" maxlength="25" /></td>
          </tr><tr>
            <td>&nbsp;</td>
            <td><input style="width: 140px;" type="Submit" value="Login Now" /></td>
          </tr></table>
        </td>
      </tr><tr>
        <td height="40">

        </td>
      </tr></table>
      <input type="Hidden" name="mode" value="in" />
    </form>
    </td>
  </tr></table>

    </body></html>