Modificare il file:
\registrazione\attivo.asp
<!--#include file="inc_common.asp" --> <!--#include file="inc_viewuser.asp" --> <!--#include file="inc_validatecode.asp" --> <% Server.Execute("header.asp") %> <% If Request.QueryString("ref") <> "logout" AND rs_viewuser("stato") = "Attesa" AND rs_viewuser("authority") = "user" Then Response.Redirect("logout.asp?userCode=" & Request.QueryString("userCode") & "&redir=activate") Else code = rs_viewuser("code") If isCodeValid = True AND Request.QueryString("auth") = "admin" Then Set RS = Server.CreateObject ("ADODB.RecordSet") Sql = "SELECT * FROM tbl_authors WHERE code='" & code & "'" RS.Open Sql,adoCon,2,3 RS("authority") = "admin" RS.Update RS.Close ElseIf isCodeValid = True AND (Request.QueryString("ref") = "logout" or str_users_authority = "admin") Then Set RS = Server.CreateObject ("ADODB.RecordSet") Sql = "SELECT * FROM tbl_authors WHERE code='" & code & "'" RS.Open Sql,adoCon,2,3 RS("stato") = "Active" RS.Update RS.Close End If %> <title><%=pageTitle%> - Attivazione Utente</title> <% If isCodeValid = false Then %> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <p align="center">Il codice inserito non è valido. Riprovare. </p> <% ElseIf rs_viewuser("code") = "Active" Then %> <p align="center"><b><%=str_name%></b>Il tuo account è attivo! <a href="default.asp">Clikka qui</a> per visualizzare il tuo profilo. </p> <% ElseIf rs_viewuser("code") <> "Disabled" AND str_users_authority <> "admin" Then %> <p align="center">Grazie, <%=str_name%>! il tuo account è attivo. <a href="login.asp">Clikka qui</a> per log in. </p> <% ElseIf rs_viewuser("code") <> "Disabled" AND str_users_authority = "admin" Then %> <p align="center">Grazie <%=str_name%>, il tuo account è attivo. <a href="javascript:history.go(-1)">Clikka qui</a> per andare indietro. </p> <% Else %> <div align="center"> <center> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%"> <tr> <td colspan="2"> <p align="center">Il tuo account è stato sospeso. Se credi che il tuo account possa essere riattivato, contatti il <a href="mailto:<%=adminEmail%>">webmaster </a>.</td> </tr> <tr> <td height="8" colspan="2"></td> </tr> <tr> <td colspan="2"> <p align="center">Il motivo per cui è il suo account è stato disabilitato è:</td> </tr> <tr> <td height="8" colspan="2"></td> </tr> <tr> <td width="25%" height="1"></td> <td width="75%" height="1"> <ul> <li><b><%=str_users_utentesospeso%></b></li> </ul> </td> </tr> </table> </center> </div> <% End If %> <% End If %> <% Server.Execute("footer.asp") %>
[
Íàçàä
]