Modificare il file:
\Admin\login.asp
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <!--#include file="Connections/ecommerce.asp" --> <% ' *** Validate request to log in to this site. MM_LoginAction = Request.ServerVariables("URL") If Request.QueryString<>"" Then MM_LoginAction = MM_LoginAction + "?" + Server.HTMLEncode(Request.QueryString) MM_valUsername=CStr(Request.Form("username")) If MM_valUsername <> "" Then MM_fldUserAuthorization="" MM_redirectLoginSuccess="default.asp" ' *** MM_redirectLoginSuccess="proList.asp?campo=ID&cosa=0" MM_redirectLoginFailed="login.asp" MM_flag="ADODB.Recordset" set MM_rsUser = Server.CreateObject(MM_flag) MM_rsUser.ActiveConnection = MM_ecommerce_STRING MM_rsUser.Source = "SELECT Username, Password" If MM_fldUserAuthorization <> "" Then MM_rsUser.Source = MM_rsUser.Source & "," & MM_fldUserAuthorization MM_rsUser.Source = MM_rsUser.Source & " FROM Admins WHERE Username='" & Replace(MM_valUsername,"'","''") &"' AND Password='" & Replace(Request.Form("password"),"'","''") & "'" 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_UsernameDaMaSOFTLista") = 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 %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Liste di Nascite - Amministrazione</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="../CSS/style.css" rel="stylesheet" type="text/css"> <style type="text/css"> body { background-color: #0CF; } </style> </head> <body> <div align="center" class="Stile1"> <p> </p> <p class="Stilex1"> </p> <table width="25%" border="0" align="center" cellpadding="0" id="table1"> <tr> <td colspan="2">AREA RISERVATA</td> <td><img src="../Logo04-100x99.png" width="100" height="99"></td> </tr> <tr> <td colspan="3">Effettua il LOGIN</td> </tr> <tr> <td width="153"> <p align="center"> <img border="0" src="mano.jpg" width="111" height="168" align="right"></td> <td width="147" align="center"> <p align="center"> <form name="form1" method="POST" action="<%=MM_LoginAction%>"> <table border="0" class="Stile3" id="table2"> <tr> <td align="center">Username:</td> </tr> <tr> <td align="center"><input name="username" type="text" id="username" style="font-family: Verdana; font-size: 10px; border: 1px solid #C0C0C0" size="20"> </td> </tr> <tr> <td align="center">Password:</td> </tr> <tr> <td align="center"> <input name="password" type="password" id="password" style="font-family: Verdana; font-size: 10px; border: 1px solid #C0C0C0" size="20"></td> </tr> <tr> <td align="center"> <p align="center"><br> <input type="submit" name="Submit" value="Login" style="font-family: Verdana; font-size: 10px; border: 1px solid #C0C0C0"></td> </tr> </table> </form> </td> <td width="222"> <p align="center"><img src="keys.png" width="81" height="89"></td> </tr> </table> <p> </p> <p> </p> </div> </body> </html>
[
Íàçàä
]