Modificare il file:
\registrazione\setup.asp
<!--#include file="inc_common.asp" --> <!--#include file="inc_checklogin.asp" --> <% Server.Execute("header.asp") %> <% If str_users_authority <> "admin" Then Response.Redirect("noentry.asp?entryType=noAdmin") 'Response.Write(str_users_authority) End If %> <% If Request.QueryString("step") = "2" Then 'Set le variabili da inserire nel database da parte di admin new_adminEmail = Replace(Request.Form("adminEmail"), "'", "''") new_TitoloSito = Replace(Request.Form("TitoloSito"), "'", "''") new_homePage = Replace(Request.Form("homePage"), "'", "''") new_mailHost = Replace(Request.Form("mailHost"), "'", "''") new_tipoMail = Request.Form("tipoMail") new_conf_email = Request.Form("conf_email") If new_adminEmail = "" OR new_TitoloSito = "" OR new_homePage = "" Then emptyValue = True Else emptyValue = False End If If emptyValue = False Then Set RS = Server.CreateObject ("ADODB.RecordSet") Sql = "SELECT * FROM tbl_admin" RS.Open Sql,adoCon,2,3 RS("adminEmail") = new_adminEmail RS("TitoloSito") = new_TitoloSito RS("homePage") = new_homePage RS("mailHost") = new_mailHost RS("tipoMail") = new_tipoMail RS("conf_email") = new_conf_email RS.Update RS.Close Response.Redirect("visualizza_profilo.asp") End If End If %> </script> <title><%=pageTitle%> - Modificare le impostazioni</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" height="14"> <tr> <td width="100%" height="14"> <img border="0" src="images/modifica_impostazioni.gif"></td> </tr> </table> <% If Request.QueryString("setup") = "firstTime" Then %> <p>Ciao, <%=str_users_name%>! da questo pannello di controllo potrai modificare la tua email, il server di posta...</p> <% Else %> <br> <% End If %> <div align="center"> <center> <table border="0" cellpadding="0" cellspacing="3" style="border-collapse: collapse" bordercolor="#111111" width="100%"> <tr> <td width="700"> <form action="setup.asp?step=2" name="setupForm" method="post" > <div align="left"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="black" width="100%"> <tr> <td colspan="2">I campi contrassegnati con * sono obbligatori.</td> </tr> <tr> <td height="8" colspan="2"></td> </tr> <tr> <td width="42%" height="8"> <img border="0" src="images/trans.gif" width="100%" height="1"></td> <td width="58%" height="8"></td> </tr> <tr> <td width="42%" height="8"><b> <% If emptyValue = True AND new_adminEmail = "" Then %> <font color="<%=errorColor%>"> <% End If %> Email Amministratore <% If emptyValue = True AND new_adminEmail = "" Then %> </font> <% End If %> *</b></td> <td width="58%" height="8"> <input name="adminEmail" size="50" maxlength="255" value="<%If emptyValue = True Then Response.Write(new_adminEmail) Else Response.Write(adminEmail) End If%>"> </td> </tr> <tr> <td width="42%" height="8"> <img border="0" src="images/trans.gif" width="100%" height="1"></td> <td width="58%" height="8"></td> </tr> <tr> <td width="42%" height="8"><b>Server di Posta</b></td> <td width="58%" height="8"> <input name="mailHost" size="30" maxlength="255" value="<%If emptyValue = True Then Response.Write(new_mailHost) Else Response.Write(mailServer) End If%>"> </td> </tr> <tr> <td width="42%" height="8"></td> <td width="58%" height="8"></td> </tr> <tr> <td width="42%" height="8"><b>Sistema invio email*</b></td> <td width="58%" height="8"><select name="tipoMail"> <option value="ASPEmail" <%If tipoMail = "ASPEmail" OR new_tipoMail = "ASPEmail" Then%> selected<%End If%>> ASPEmail</option> <option value="ASPMail" <%If tipoMail = "ASPMail" OR new_tipoMail = "ASPMail" Then%> selected<%End If%>> ASPMail</option> <option value="CDONTS" <%If tipoMail = "CDONTS" OR new_tipoMail = "CDONTS" Then%> selected<%End If%>> CDONTS</option> <option value="CDOSYS" <%If tipoMail = "CDOSYS" OR new_tipoMail = "CDOSYS" Then%> selected<%End If%>> CDOSYS</option> <option value="ChiliCDONTS" <%If tipoMail = "ChiliCDONTS" OR new_tipoMail = "ChiliCDONTS" Then%> selected<%End If%>> ChiliCDONTS</option> <option value="JMail" <%If tipoMail = "JMail" OR new_tipoMail = "JMail" Then%> selected<%End If%>> JMail</option> <option value="JMail4" <%If tipoMail = "JMail4" OR new_tipoMail = "JMail4" Then%> selected<%End If%>> JMail4</option> <option value="SMTP" <%If tipoMail = "SMTP" OR new_tipoMail = "SMTP" Then%> selected<%End If%>> SMTP</option> <option value="None" <%If tipoMail = "None" OR new_tipoMail = "None" Then%> selected<%End If%>> Niente</option> </select> </td> </tr> <tr> <td width="42%" height="8"></td> <td width="58%" height="8"></td> </tr> <tr> <td width="42%" height="8"><b>Conferma per email*</b></td> <td width="58%" height="8"><select size="1" name="conf_email"> <option value="True"<%If conf_email = "True" OR new_conf_email = "True" Then%> selected<%End If%>> Yes</option> <option value="False"<%If conf_email = "False" OR new_conf_email = "False" Then%> selected<%End If%>> No</option> </select></td> </tr> <tr> <td width="42%" height="8"></td> <td width="58%" height="8"></td> </tr> <tr> <td width="42%" height="8"><b> <% If emptyValue = True AND new_TitoloSito = "" Then %> <font color="<%=errorColor%>"> <% End If %> Titolo del Sito <% If emptyValue = True AND new_TitoloSito = "" Then %> </font> <% End If %> *</b></td> <td width="58%" height="8"> <input name="TitoloSito" size="30" maxlength="255" value="<%If emptyValue = True Then Response.Write(new_TitoloSito) Else Response.Write(pageTitle) End If%>"></td> </tr> <tr> <td height="8" width="42%"></td> <td height="8" width="58%"></td> </tr> <tr> <td width="42%" height="23"><b> <% If emptyValue = True AND new_homePage = "" Then %> <font color="<%=errorColor%>"> <% End If %> Home Page URL <% If emptyValue = True AND new_homePage = "" Then %> </font> <% End If %> *</b></td> <td height="23" width="58%"> <input name="homePage" value="<%If emptyValue = True Then Response.Write(new_homePage) Else Response.Write(homePage) End If%>" size="30" maxlength="255"> (http://www...)</td> </tr> <tr> <td height="8" width="42%"></td> <td height="8" width="58%"></td> </tr> <tr> <td height="8" colspan="2"></td> </tr> <tr> <td colspan="2"> <input type="submit" value="Aggiorna" name="UpdateSettingsButton"> </td> </tr> </table> </div> </form> <!-- End inner table --></td> </tr> </table> </center> </div> <% Server.Execute("footer.asp") %>
[
Íàçàä
]