Modificare il file:
\iwgallery\includes\inc_password.asp
<!--#include virtual="/iwgallery/Connections/connIWGallery.asp" --> <% If Request.Form("PwdLogin") <> "" Then %> <% Set rsPassword = Server.CreateObject("ADODB.Recordset") rsPassword.ActiveConnection = MM_connIWGallery_STRING rsPassword.Source = "SELECT USE_NAME, USE_PASSWORD, USE_EMAIL FROM USERS WHERE USE_NAME = '" & Request.Form("PwdLogin") & "' AND USE_ACCESS = 'Utente'" rsPassword.CursorType = 0 rsPassword.CursorLocation = 2 rsPassword.LockType = 1 rsPassword.Open() If rsPassword.EOF Or rsPassword.BOF Then response.redirect "../home/password.asp?pwd=Il tuo Account non è stato trovato! Controlla i dati inseriti e riprova" Else MailPassword rsPassword.Fields.Item("USE_EMAIL").Value, rsPassword.Fields.Item("USE_NAME").Value, rsPassword.Fields.Item("USE_PASSWORD").Value response.redirect "../home/password.asp?pwd=I tuoi dati di accesso sono stati inviati all'indirizzo " & rsPassword.Fields.Item("USE_EMAIL").Value End If rsPassword.Close() %> <% End If %> <script language="JavaScript" type="text/JavaScript"> <!-- function WAAlertErrors(errorHead,errorFoot,setFocus,submitForm) { if (!document.WAFV_StopAlert) { document.WAFV_StopAlert = true; if (document.WAFV_InvalidArray) { document.WAFV_Stop = true; var errorMsg = document.WAFV_Error; if (errorHead!="") errorMsg = errorHead + "\n" + errorMsg; if (errorFoot!="") errorMsg += "\n" + errorFoot; document.MM_returnValue = false; if (document.WAFV_Error!="") alert(errorMsg.replace(/"/g,'"')); else if (submitForm) submitForm.submit(); if (setFocus && document.WAFV_Focus) { document.tempFocus = document.WAFV_Focus; setTimeout("document.tempFocus.focus();setTimeout('document.WAFV_Stop = false;document.WAFV_StopAlert = false;',1)",1); } else { document.WAFV_Stop = false; document.WAFV_StopAlert = false; } for (var x=0; x<document.WAFV_InvalidArray.length; x++) { document.WAFV_InvalidArray[x].WAFV_Stop = false; } } else { document.WAFV_Stop = false; document.WAFV_StopAlert = false; if (submitForm) { submitForm.submit(); } document.MM_returnValue = true; } document.WAFV_Focus = false; document.WAFV_Error = false; document.WAFV_InvalidArray = false; } } //--> </script> <script language="JavaScript" type="text/JavaScript"> <!-- function WAtrimIt(theString,leaveLeft,leaveRight) { if (!leaveLeft) { while (theString.charAt(0) == " ") theString = theString.substring(1); } if (!leaveRight) { while (theString.charAt(theString.length-1) == " ") theString = theString.substring(0,theString.length-1); } return theString; } function WAAddError(formElement,errorMsg,focusIt,stopIt) { if (document.WAFV_Error) { document.WAFV_Error += "\n" + errorMsg; } else { document.WAFV_Error = errorMsg; } if (!document.WAFV_InvalidArray) { document.WAFV_InvalidArray = new Array(); } document.WAFV_InvalidArray[document.WAFV_InvalidArray.length] = formElement; if (focusIt && !document.WAFV_Focus) { document.WAFV_Focus = focusIt; } if (stopIt == 1) { document.WAFV_Stop = true; } else if (stopIt == 2) { formElement.WAFV_Continue = true; } else if (stopIt == 3) { formElement.WAFV_Stop = true; formElement.WAFV_Continue = false; } } function WAValidateRQ(formElement,errorMsg,focusIt,stopIt,trimWhite,inputType) { var isValid = true; if (!document.WAFV_Stop && !formElement.WAFV_Stop) { if (inputType == "select") { if (formElement.selectedIndex == -1) { isValid = false; } else if (!formElement.options[formElement.selectedIndex].value || formElement.options[formElement.selectedIndex].value == "") { isValid = false; } } else if (inputType == "checkbox") { if (formElement.length) { isValid = false; focusIt = false; for (var x=0; x<formElement.length ; x++) { if (formElement[x].checked && formElement[x].value!="") { isValid = true; break; } } } else if (!formElement.checked) isValid = false; } else if (inputType == "radio") { isValid = false; if (formElement.checked) isValid = true; } else if (inputType == "radiogroup") { isValid = false; for (var x=0; x<formElement.length; x++) { if (formElement[x].checked && formElement[x].value!="") { isValid = true; break; } } formElement = formElement[0]; } else { var value = formElement.value; if (trimWhite) { value = WAtrimIt(value); } if (value == "") { isValid = false; } } } if (!isValid) { WAAddError(formElement,errorMsg,focusIt,stopIt); } } //--> </script> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="box"> <tr> <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="1" align="left" class="box-header"><img src="../themes/<%= strTheme %>/box-header-left.jpg"></td> <td width="100%" class="box-header">Recupera Password </td> <td width="1" align="right" class="box-header"><img src="../themes/<%= strTheme %>/box-header-right.jpg"></td> </tr> </table></td> </tr> <tr> <td align="left" valign="top" class="box-main"><form action="../home/password.asp" method="post" name="frmPassword" id="frmPassword" onSubmit="WAValidateRQ(document.frmPassword.PwdLogin,'* Il campo Login è obbligatorio',document.frmPassword.PwdLogin,0,true,'text');WAAlertErrors('','',true,false);return document.MM_returnValue"> <table width="240" border="0" align="center" cellpadding="0" cellspacing="1" class="content"> <tr> <td> </td> <td><span class="evidence"><%= Request.QueryString("pwd") %></span></td> </tr> <tr> <td align="right">*Login:</td> <td><input name="PwdLogin" type="text" id="PwdLogin" size="32"></td> </tr> <tr> <td> </td> <td><input type="submit" name="Submit" value="Recupera Password" class="button"></td> </tr> </table> </form></td> </tr> <tr> <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="1" align="left" class="box-bottom"><img src="../themes/<%= strTheme %>/box-bottom-left.jpg"></td> <td width="100%" class="box-bottom"><img src="../images/shim.gif" width="1" height="1"></td> <td width="1" align="right" class="box-bottom"><img src="../themes/<%= strTheme %>/box-bottom-right.jpg"></td> </tr> </table></td> </tr> </table>
[
Íàçàä
]