Salta al contenuto
  • CATEGORIES
  • La Community Connect.gt
  • Presentati alla Community
  • News Ufficiali da Connect.gt
  • Internet News
  • A Scuola Di
  • Digital Marketing
  • Intelligenza Artificiale
  • SEO & GEO
  • Web Marketing e Content
  • Google Analytics e Web Analytics
  • Google Ads & Advertising
  • YouTube
  • TikTok, Instagram e altri Social
  • Google Adsense, Affiliazioni e Guadagno
  • E-Commerce
  • Coding e Sistemistica
  • Help Center: consigli per il tuo progetto
  • Hosting e Cloud
  • Coding
  • CMS & Piattaforme Self-Hosted
  • Annunci e Collaborazioni
  • Annunci Vendita e Acquisto: Pubblicità, Domini, Link e altro
  • Collaborazioni WEB e Lavoro: offro e cerco
  • Impresa, Fisco e Leggi
  • Consulenza Legale e Professioni Web
  • Consulenza Fiscale, Imprese, Startup e P.Iva
  • Gli Off Topic
  • PC, Smartphone e altri Hardware
  • Tutti i Software
  • GT Fetish Cafè
  • Discussioni
  • 0 Non letti 0
  • Recenti
  • Hashtag
  • Popolare
  • Utenti
  • Privacy
  • Termini e condizioni
  • © 2026 Search On Media Group S.r.l.
Collassa
Connect.gt
Il network Search On
Connect.gt WMF AI Festival Accademia Advanced SEO Tool AgentCy Social Media Strategies Search Tech
Registrati Accedi
Connect.gt
Stream Interest Categorie Hashtag
  1. La community italiana di SEO, marketing digitale e AI
  2. Categorie
  3. Coding e Sistemistica
  4. Coding
  5. Modificare metodo di registrazione nel forum

Modificare metodo di registrazione nel forum

Pianificato Fissato Bloccato Spostato Coding
130 Post 3 Autori 8.0k Visualizzazioni 1 Seguito
  • Da Vecchi a Nuovi
  • Da Nuovi a Vecchi
  • Più Voti
Rispondi
  • Risposta alla discussione
Effettua l'accesso per rispondere
Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
  • T
    T
    thedarkita
    ModSenior
    scritto su ultima modifica di
    Super User 70
    #57

    Bene... se mi posti dai la pagina di registrazione attuale vedo di mandare il link di attivazione tramite l'email... dopo facciamo la pagina di attivazione e abbiamo finito 😄

    abbiamo ripreso lo sviluppo del forum 😄

    1 Risposta Ultima Risposta
    Miglior risposta 0
    0
    • G
      G
      giulio3x
      scritto su ultima modifica di
      User Attivo 0
      #58

      Thedarkita

      Bene... se mi posti dai la pagina di registrazione attuale vedo di mandare il link di attivazione tramite l'email... dopo facciamo la pagina di attivazione e abbiamo finito 😄

      abbiamo ripreso lo sviluppo del forum 😄

      mi piacerebbe diventare bravo come te;)

      questa è la pagina della registrazione:

      <?php
      require_once "includes/config.php";
      require_once "includes/mysql_connect.php";
      require_once "includes/getsett.php";
      require_once "includes/funzioni.php";
      require_once "includes/funzioni_testi.php";
      if(trim($arr_impostazioni['lingua'])=="" || !is_dir("lang/".$arr_impostazioni['lingua'])){ $arr_impostazioni['lingua']="ita"; }
      require_once "lang/".$arr_impostazioni['lingua']."/registrazione.php";
      if(user_esistente=="si"){
      if(my_bannato=="si"){
      require_once "header.php";
      echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
        <tr>
          <td class=\"testo12\">".sei_bannato.".<br /><br />
          <a href=\"mailto:".$arr_impostazioni['mailsito']."\">".contatta_admin.".</td>
        </tr>
      </table>";
      }else{
      require_once "header.php";
      echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
        <tr>
          <td class=\"testo12\">".err_loggato.".</td>
        </tr>
      </table>";
      }
      }else{
      $step=(ereg("[1-4]",$_GET['step'])) ? (int)$_GET['step'] : (int)$_POST['step'];
      if($step==2){ //STEP 2 ---------------------------------------------------------------------
      define('titolo_pagina',' - '.registrazione_titolo1);
      require_once "header.php";
      echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
      <form action=\"registrazione.php\" method=\"post\" name=\"registra\">
        <tr>
          <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".inserisci_dati.":</strong></div></td>
        </tr>
        <tr>
          <td width=\"35%\" class=\"tabstat\"><div align=\"right\" class=\"testo12\"><span class=\"testo12\">".username.":</span></div></td>
          <td width=\"65%\" class=\"tabstat\"><input name=\"newuser\" type=\"text\" id=\"newuser\" size=\"45\" maxlength=\"20\" /></td>
        </tr>
        <tr>
          <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".password.":</div>
          </td>
          <td class=\"tabstat\"><input name=\"newpsw\" type=\"password\" id=\"newpsw\" size=\"45\" maxlength=\"20\" />
          </td>
        </tr>
        <tr>
          <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".cpassword.":</div></td>
          <td class=\"tabstat\"><input name=\"newcpsw\" type=\"password\" id=\"newcpsw\" size=\"45\" maxlength=\"20\" /></td>
        </tr>
        <tr>
          <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".email.":</div>
          </td>
          <td class=\"tabstat\"><input name=\"newmail\" type=\"text\" id=\"newmail\" size=\"45\" maxlength=\"40\" />
          </td>
        </tr>
        <tr>
          <td colspan=\"2\" class=\"tabstat\"><div align=\"center\" class=\"testo12\">
              <input name=\"step\" type=\"hidden\" id=\"step\" value=\"3\" />
              <input name=\"prosegui\" type=\"button\" class=\"pulsinvia\" value=\"".avanti_form."\" onClick=\"convalida();\" />
                </div></td>
        </tr>
        </form>
      </table>";
      }else if($step==3){ //STEP 3 ---------------------------------------------------------------------
      define('titolo_pagina',' - '.registrazione_titolo2);
      $_POST['newmail']=togli_char_spec($_POST['newmail']);
      $_POST['newuser']=togli_char_spec($_POST['newuser']);
      require_once "header.php";
      if(!checkmail($_POST['newmail'])){
      echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
        <tr>
          <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".errore."</strong></div></td>
        </tr>
        <tr>
          <td class=\"tabstat\"><span class=\"testo12\">".err_mail."!</span></td>
        </tr>
      </table><br />
      <table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
      <form action=\"registrazione.php\" method=\"post\" name=\"registra\">
        <tr>
          <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".inserisci_dati.":</strong></div></td>
        </tr>
        <tr>
          <td width=\"35%\" class=\"tabstat\"><div align=\"right\" class=\"testo12\"><span class=\"testo12\">".username.":</span></div></td>
          <td width=\"65%\" class=\"tabstat\"><input name=\"newuser\" type=\"text\" id=\"newuser\" size=\"45\" maxlength=\"20\" value=\"".$_POST['newuser']."\" /></td>
        </tr>
        <tr>
          <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".password.":</div>
          </td>
          <td class=\"tabstat\"><input name=\"newpsw\" type=\"password\" id=\"newpsw\" size=\"45\" maxlength=\"20\" />
          </td>
        </tr>
        <tr>
          <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".cpassword.":</div></td>
          <td class=\"tabstat\"><input name=\"newcpsw\" type=\"password\" id=\"newcpsw\" size=\"45\" maxlength=\"20\" /></td>
        </tr>
        <tr>
          <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".email.":</div>
          </td>
          <td class=\"tabstat\"><input name=\"newmail\" type=\"text\" id=\"newmail\" size=\"45\" maxlength=\"40\" value=\"".$_POST['newmail']."\" />
          </td>
        </tr>
        <tr>
          <td colspan=\"2\" class=\"tabstat\"><div align=\"center\" class=\"testo12\">
              <input name=\"step\" type=\"hidden\" id=\"step\" value=\"3\" />
              <input name=\"prosegui\" type=\"button\" class=\"pulsinvia\" value=\"".avanti_form."\" onClick=\"convalida();\" />
                </div></td>
        </tr>
        </form>
      </table>";
      }else{
      $q_useresiste=quera("SELECT nome,mail FROM ".$tblprefix."users WHERE nome='".mysql_escape_string($_POST['newuser'])."' OR mail='".mysql_escape_string($_POST['newmail'])."' LIMIT 1");
      if(mysql_num_rows($q_useresiste)>0){
      $arr_useresistente=mysql_fetch_assoc($q_useresiste);
      if($_POST['newuser']==$arr_useresistente['nome']){ $stringa_esiste.="&#8226; username<br />"; }
      if($_POST['newmail']==$arr_useresistente['mail']){ $stringa_esiste.="&#8226; e-mail<br />"; }
      echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
        <tr>
          <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".errore."</strong></div></td>
        </tr>
        <tr>
          <td class=\"tabstat\"><span class=\"testo12\">".err_dati_usati.":<br />
      $stringa_esiste</span></td>
        </tr>
      </table><br />
      <table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
      <form action=\"registrazione.php\" method=\"post\" name=\"registra\">
        <tr>
          <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".inserisci_dati.":</strong></div></td>
        </tr>
        <tr>
          <td width=\"35%\" class=\"tabstat\"><div align=\"right\" class=\"testo12\"><span class=\"testo12\">".username.":</span></div></td>
          <td width=\"65%\" class=\"tabstat\"><input name=\"newuser\" type=\"text\" id=\"newuser\" size=\"45\" maxlength=\"20\" value=\"".$_POST['newuser']."\" /></td>
        </tr>
        <tr>
          <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".password.":</div>
          </td>
          <td class=\"tabstat\"><input name=\"newpsw\" type=\"password\" id=\"newpsw\" size=\"45\" maxlength=\"20\" />
          </td>
        </tr>
        <tr>
          <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".cpassword.":</div></td>
          <td class=\"tabstat\"><input name=\"newcpsw\" type=\"password\" id=\"newcpsw\" size=\"45\" maxlength=\"20\" /></td>
        </tr>
        <tr>
          <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".email.":</div>
          </td>
          <td class=\"tabstat\"><input name=\"newmail\" type=\"text\" id=\"newmail\" size=\"45\" maxlength=\"40\" value=\"".$_POST['newmail']."\" />
          </td>
        </tr>
        <tr>
          <td colspan=\"2\" class=\"tabstat\"><div align=\"center\" class=\"testo12\">
              <input name=\"step\" type=\"hidden\" id=\"step\" value=\"3\" />
              <input name=\"prosegui\" type=\"button\" class=\"pulsinvia\" value=\"".avanti_form."\" onClick=\"convalida();\" />
                </div></td>
        </tr>
        </form>
      </table>";
      }else if(!isset($_POST['newuser']) || trim($_POST['newuser'])=="" || !isset($_POST['newpsw']) || trim($_POST['newpsw'])==""){
      echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
        <tr>
          <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".errore."</strong></div></td>
        </tr>
        <tr>
          <td class=\"tabstat\"><span class=\"testo12\">".err_campi."!</span></td>
        </tr>
      </table><br />
      <table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
      <form action=\"registrazione.php\" method=\"post\" name=\"registra\">
        <tr>
          <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".inserisci_dati.":</strong></div></td>
        </tr>
        <tr>
          <td width=\"35%\" class=\"tabstat\"><div align=\"right\" class=\"testo12\"><span class=\"testo12\">".username.":</span></div></td>
          <td width=\"65%\" class=\"tabstat\"><input name=\"newuser\" type=\"text\" id=\"newuser\" size=\"45\" maxlength=\"20\" value=\"".$_POST['newuser']."\" /></td>
        </tr>
        <tr>
          <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".password.":</div>
          </td>
          <td class=\"tabstat\"><input name=\"newpsw\" type=\"password\" id=\"newpsw\" size=\"45\" maxlength=\"20\" />
          </td>
        </tr>
        <tr>
          <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".cpassword.":</div></td>
          <td class=\"tabstat\"><input name=\"newcpsw\" type=\"password\" id=\"newcpsw\" size=\"45\" maxlength=\"20\" /></td>
        </tr>
        <tr>
          <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".email.":</div>
          </td>
          <td class=\"tabstat\"><input name=\"newmail\" type=\"text\" id=\"newmail\" size=\"45\" maxlength=\"40\" value=\"".$_POST['newmail']."\" />
          </td>
        </tr>
        <tr>
          <td colspan=\"2\" class=\"tabstat\"><div align=\"center\" class=\"testo12\">
              <input name=\"step\" type=\"hidden\" id=\"step\" value=\"3\" />
              <input name=\"prosegui\" type=\"button\" class=\"pulsinvia\" value=\"".avanti_form."\" onClick=\"convalida();\" />
                </div></td>
        </tr>
        </form>
      </table>";
      }else if(trim($_POST['newpsw'])!=trim($_POST['newcpsw'])){
      echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
        <tr>
          <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".errore."</strong></div></td>
        </tr>
        <tr>
          <td class=\"tabstat\"><span class=\"testo12\">".err_psw."!</span></td>
        </tr>
      </table><br />
      <table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
      <form action=\"registrazione.php\" method=\"post\" name=\"registra\">
        <tr>
          <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".inserisci_dati.":</strong></div></td>
        </tr>
        <tr>
          <td width=\"35%\" class=\"tabstat\"><div align=\"right\" class=\"testo12\"><span class=\"testo12\">".username.":</span></div></td>
          <td width=\"65%\" class=\"tabstat\"><input name=\"newuser\" type=\"text\" id=\"newuser\" size=\"45\" maxlength=\"20\" value=\"".$_POST['newuser']."\" /></td>
        </tr>
        <tr>
          <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".password.":</div>
          </td>
          <td class=\"tabstat\"><input name=\"newpsw\" type=\"password\" id=\"newpsw\" size=\"45\" maxlength=\"20\" />
          </td>
        </tr>
        <tr>
          <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".cpassword.":</div></td>
          <td class=\"tabstat\"><input name=\"newcpsw\" type=\"password\" id=\"newcpsw\" size=\"45\" maxlength=\"20\" /></td>
        </tr>
        <tr>
          <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".email.":</div>
          </td>
          <td class=\"tabstat\"><input name=\"newmail\" type=\"text\" id=\"newmail\" size=\"45\" maxlength=\"40\" value=\"".$_POST['newmail']."\" />
          </td>
        </tr>
        <tr>
          <td colspan=\"2\" class=\"tabstat\"><div align=\"center\" class=\"testo12\">
              <input name=\"step\" type=\"hidden\" id=\"step\" value=\"3\" />
              <input name=\"prosegui\" type=\"button\" class=\"pulsinvia\" value=\"".avanti_form."\" onClick=\"convalida();\" />
                </div></td>
        </tr>
        </form>
      </table>";
      }else if(strlen(trim($_POST['newuser']))>20 || strlen(trim($_POST['newmail']))>40 || strlen(trim($_POST['newpsw']))>20){
      echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
        <tr>
          <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".errore."</strong></div></td>
        </tr>
        <tr>
          <td class=\"tabstat\"><span class=\"testo12\">".err_lunghezza.".</span></td>
        </tr>
      </table><br />
      <table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
      <form action=\"registrazione.php\" method=\"post\" name=\"registra\">
        <tr>
          <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".inserisci_dati.":</strong></div></td>
        </tr>
        <tr>
          <td width=\"35%\" class=\"tabstat\"><div align=\"right\" class=\"testo12\"><span class=\"testo12\">".username.":</span></div></td>
          <td width=\"65%\" class=\"tabstat\"><input name=\"newuser\" type=\"text\" id=\"newuser\" size=\"45\" maxlength=\"20\" value=\"".$_POST['newuser']."\" /></td>
        </tr>
        <tr>
          <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".password.":</div>
          </td>
          <td class=\"tabstat\"><input name=\"newpsw\" type=\"password\" id=\"newpsw\" size=\"45\" maxlength=\"20\" />
          </td>
        </tr>
        <tr>
          <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".cpassword.":</div></td>
          <td class=\"tabstat\"><input name=\"newcpsw\" type=\"password\" id=\"newcpsw\" size=\"45\" maxlength=\"20\" /></td>
        </tr>
        <tr>
          <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".email.":</div>
          </td>
          <td class=\"tabstat\"><input name=\"newmail\" type=\"text\" id=\"newmail\" size=\"45\" maxlength=\"40\" value=\"".$_POST['newmail']."\" />
          </td>
        </tr>
        <tr>
          <td colspan=\"2\" class=\"tabstat\"><div align=\"center\" class=\"testo12\">
              <input name=\"step\" type=\"hidden\" id=\"step\" value=\"3\" />
              <input name=\"prosegui\" type=\"button\" class=\"pulsinvia\" value=\"".avanti_form."\" onClick=\"convalida();\" />
                </div></td>
        </tr>
        </form>
      </table>";
      }else{
      echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
      <form action=\"registrazione.php\" method=\"post\" enctype=\"multipart/form-data\" name=\"registra\">
        <tr>
          <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".profilo.":</strong></div></td>
        </tr>
        <tr>
          <td width=\"35%\" class=\"tabstat\"><div align=\"right\" class=\"testo12\"><span class=\"testo12\">".luogo.":</span></div></td>
          <td width=\"65%\" class=\"tabstat\"><input name=\"luogo\" type=\"text\" id=\"luogo\" size=\"45\" /></td>
        </tr>
        <tr>
          <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".homepage.":</div>
          </td>
          <td class=\"tabstat\"><input name=\"sito\" type=\"text\" id=\"sito\" size=\"45\" />
          </td>
        </tr>
        <tr>
          <td class=\"tabstat\"><div align=\"right\">MSN:</div></td>
          <td class=\"tabstat\"><input name=\"msn\" type=\"text\" size=\"45\" /></td>
        </tr>
        <tr>
          <td class=\"tabstat\"><div align=\"right\">ICQ:</div></td>
          <td class=\"tabstat\"><input name=\"icq\" type=\"text\" size=\"45\" /></td>
        </tr>
        <tr>
          <td class=\"tabstat\"><div align=\"right\">AIM:</div></td>
          <td class=\"tabstat\"><input name=\"aim\" type=\"text\" size=\"45\" /></td>
        </tr>
        <tr>
          <td class=\"tabstat\"><div align=\"right\">Yahoo:</div></td>
          <td class=\"tabstat\"><input name=\"yahoo\" type=\"text\" size=\"45\" /></td>
        </tr>
        <tr>
          <td class=\"tabstat\"><div align=\"right\">Skype:</div></td>
          <td class=\"tabstat\"><input name=\"skype\" type=\"text\" size=\"45\" /></td>
        </tr>
          <tr>
          <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".nascita.":</div></td>
          <td class=\"tabstat\"><span class=\"testo11\">".giorno.":
            <select name=\"nascitagiorno\"> ".select_giorni('')."</select>
            ".mese.": <select name=\"nascitamese\">".select_mesi('')."</select>
              ".anno.":
              <select name=\"nascitaanno\"> ".select_anni('')."</select></span></td>
        </tr>
        <tr>
          <td valign=\"top\" class=\"tabstat\"><div align=\"right\" class=\"testo12\">".firma.":<br /><span class=\"testo10\">(".firma_max.": ".$arr_impostazioni['maxfirma'].")</span></div></td>
          <td class=\"tabstat\"><textarea name=\"firma\" cols=\"40\" rows=\"5\" id=\"firma\" onKeyDown=\"if(this.value.length>".$arr_impostazioni['maxfirma'].")this.value=this.value.substr(0,".$arr_impostazioni['maxfirma'].")\"></textarea></td>
        </tr>
        <tr>
          <td colspan=\"2\" class=\"tabstat\"><div align=\"center\" class=\"testo12\">
              <input name=\"step\" type=\"hidden\" id=\"step\" value=\"4\" />
              <input name=\"newuser\" type=\"hidden\" value=\"".$_POST['newuser']."\" />
              <input name=\"newpsw\" type=\"hidden\" value=\"".$_POST['newpsw']."\" />
              <input name=\"newmail\" type=\"hidden\" value=\"".$_POST['newmail']."\" />
              <input type=\"submit\" class=\"pulsinvia\" value=\"".prosegui_form."\" />
                </div></td>
        </tr>
        </form>
      </table>";
      }
      }
      }else if($step==4){ //STEP 4 ---------------------------------------------------------------------
      define('titolo_pagina',' - '.registrazione_titolo3);
      $_POST['newmail']=togli_char_spec($_POST['newmail']);
      $_POST['newuser']=togli_char_spec($_POST['newuser']);
      $_POST['firma']=togli_char_spec($_POST['firma']);
      $_POST['luogo']=togli_char_spec($_POST['luogo']);
      $_POST['sito']=togli_char_spec($_POST['sito']);
      $_POST['msn']=togli_char_spec($_POST['msn']);
      $_POST['icq']=togli_char_spec($_POST['icq']);
      $_POST['aim']=togli_char_spec($_POST['aim']);
      $_POST['yahoo']=togli_char_spec($_POST['yahoo']);
      $_POST['skype']=togli_char_spec($_POST['skype']);
       
      if(trim($_POST['firma'])!=""){
      $firma=mysql_escape_string($_POST['firma']);
      }
      $codice = md5(microtime());
      quera("INSERT INTO ".$tblprefix."users (nome,psw,ip,mail,attivazione,firma,datareg,nascita_g,nascita_m,nascita_a,luogo,sito,msn,icq,aim,yahoo,skype)
       VALUES ('".mysql_escape_string($_POST['newuser'])."','".md5($_POST['newpsw'])."','".$_SERVER['REMOTE_ADDR']."','".mysql_escape_string($_POST['newmail'])."','$codice','$firma','".time()."','".$_POST['nascitagiorno']."','".$_POST['nascitamese']."','".$_POST['nascitaanno']."','".mysql_escape_string($_POST['luogo'])."','".mysql_escape_string($_POST['sito'])."','".mysql_escape_string($_POST['msn'])."','".mysql_escape_string($_POST['icq'])."','".mysql_escape_string($_POST['aim'])."','".mysql_escape_string($_POST['yahoo'])."','".mysql_escape_string($_POST['skype'])."')");
      quera("UPDATE ".$tblprefix."stats SET tot_users=tot_users+1, ultimo_userid='".mysql_insert_id()."'");
      setcookie("denome",$_POST['newuser'],time()+(86400*365),"/");
      setcookie("depsw",md5($_POST['newpsw']),time()+(86400*365),"/");
      $corpo=mail_benvenuto." ".$_POST['newuser'].",\n\n".mail_reg_completata."!\n\n
      ".mail_staff."! :)\n\n\n".$arr_impostazioni['urlforum'];
      mandamail($_POST['newmail'],$arr_impostazioni['titoloforum']." - ".mail_oggetto."!",$corpo);
      define('in_reg_step4','si');
      require_once "header.php";
      echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
        <tr>
          <td width=\"100%\" class=\"tabstat\"><span class=\"testo12\">".mail_benvenuto." <strong>".$_POST['newuser']."</strong>, ".mail_reg_completata."!<br />
            <br />
            ".ora_puoi.".<br />
            ".puoi_modificare.".</span> <img src=\"img/empty.gif\" border=\"0\" onload=\"concalma('index.php','4000');\" /></td>
        </tr>
      </table>";
      }else{ //STEP 1 ---------------------------------------------------------------------
      define('titolo_pagina',' - '.registrazione_titolo4);
      require_once "header.php";
      echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
        <tr>
          <td class=\"tabstat\"><div class=\"testo12\"><strong>".regolamento.":</strong></div></td>
        </tr>
        <tr>
          <td class=\"tabstat\"><span class=\"testo12\">1) ".regola1.".<br /><br />
                  2) ".regola2.".<br /><br />
                  3) ".regola3.".<br /><br />
                  4) ".regola4.".<br /><br />
                  5) ".regola5.".<br /><br />
                  6) ".regola6.".<br /><br />
                  7) ".regola7.".</span></td>
        </tr>
        <tr>
          <td class=\"tabstat\"><div align=\"center\" class=\"testo12\">
              <input name=\"prosegui\" type=\"button\" class=\"pulsinvia\" onClick=\"window.location='registrazione.php?step=2'\" value=\" ".accetto_form." \" />
                </div></td>
        </tr>
      </table>";
      }
      }
      if($_GET['debug']=="y"){ debugging(); }
      require_once "copy.php";
      ?>
      
      1 Risposta Ultima Risposta
      Miglior risposta 0
      0
      • T
        T
        thedarkita
        ModSenior
        scritto su ultima modifica di
        Super User 70
        #59

        giulio3x

        mi piacerebbe diventare bravo come te;)

        questa è la pagina della registrazione:

        <?php
        require_once "includes/config.php";
        require_once "includes/mysql_connect.php";
        require_once "includes/getsett.php";
        require_once "includes/funzioni.php";
        require_once "includes/funzioni_testi.php";
        if(trim($arr_impostazioni['lingua'])=="" || !is_dir("lang/".$arr_impostazioni['lingua'])){ $arr_impostazioni['lingua']="ita"; }
        require_once "lang/".$arr_impostazioni['lingua']."/registrazione.php";
        if(user_esistente=="si"){
        if(my_bannato=="si"){
        require_once "header.php";
        echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
          <tr>
            <td class=\"testo12\">".sei_bannato.".<br /><br />
            <a href=\"mailto:".$arr_impostazioni['mailsito']."\">".contatta_admin.".</td>
          </tr>
        </table>";
        }else{
        require_once "header.php";
        echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
          <tr>
            <td class=\"testo12\">".err_loggato.".</td>
          </tr>
        </table>";
        }
        }else{
        $step=(ereg("[1-4]",$_GET['step'])) ? (int)$_GET['step'] : (int)$_POST['step'];
        if($step==2){ //STEP 2 ---------------------------------------------------------------------
        define('titolo_pagina',' - '.registrazione_titolo1);
        require_once "header.php";
        echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
        <form action=\"registrazione.php\" method=\"post\" name=\"registra\">
          <tr>
            <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".inserisci_dati.":</strong></div></td>
          </tr>
          <tr>
            <td width=\"35%\" class=\"tabstat\"><div align=\"right\" class=\"testo12\"><span class=\"testo12\">".username.":</span></div></td>
            <td width=\"65%\" class=\"tabstat\"><input name=\"newuser\" type=\"text\" id=\"newuser\" size=\"45\" maxlength=\"20\" /></td>
          </tr>
          <tr>
            <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".password.":</div>
            </td>
            <td class=\"tabstat\"><input name=\"newpsw\" type=\"password\" id=\"newpsw\" size=\"45\" maxlength=\"20\" />
            </td>
          </tr>
          <tr>
            <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".cpassword.":</div></td>
            <td class=\"tabstat\"><input name=\"newcpsw\" type=\"password\" id=\"newcpsw\" size=\"45\" maxlength=\"20\" /></td>
          </tr>
          <tr>
            <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".email.":</div>
            </td>
            <td class=\"tabstat\"><input name=\"newmail\" type=\"text\" id=\"newmail\" size=\"45\" maxlength=\"40\" />
            </td>
          </tr>
          <tr>
            <td colspan=\"2\" class=\"tabstat\"><div align=\"center\" class=\"testo12\">
                <input name=\"step\" type=\"hidden\" id=\"step\" value=\"3\" />
                <input name=\"prosegui\" type=\"button\" class=\"pulsinvia\" value=\"".avanti_form."\" onClick=\"convalida();\" />
                  </div></td>
          </tr>
          </form>
        </table>";
        }else if($step==3){ //STEP 3 ---------------------------------------------------------------------
        define('titolo_pagina',' - '.registrazione_titolo2);
        $_POST['newmail']=togli_char_spec($_POST['newmail']);
        $_POST['newuser']=togli_char_spec($_POST['newuser']);
        require_once "header.php";
        if(!checkmail($_POST['newmail'])){
        echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
          <tr>
            <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".errore."</strong></div></td>
          </tr>
          <tr>
            <td class=\"tabstat\"><span class=\"testo12\">".err_mail."!</span></td>
          </tr>
        </table><br />
        <table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
        <form action=\"registrazione.php\" method=\"post\" name=\"registra\">
          <tr>
            <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".inserisci_dati.":</strong></div></td>
          </tr>
          <tr>
            <td width=\"35%\" class=\"tabstat\"><div align=\"right\" class=\"testo12\"><span class=\"testo12\">".username.":</span></div></td>
            <td width=\"65%\" class=\"tabstat\"><input name=\"newuser\" type=\"text\" id=\"newuser\" size=\"45\" maxlength=\"20\" value=\"".$_POST['newuser']."\" /></td>
          </tr>
          <tr>
            <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".password.":</div>
            </td>
            <td class=\"tabstat\"><input name=\"newpsw\" type=\"password\" id=\"newpsw\" size=\"45\" maxlength=\"20\" />
            </td>
          </tr>
          <tr>
            <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".cpassword.":</div></td>
            <td class=\"tabstat\"><input name=\"newcpsw\" type=\"password\" id=\"newcpsw\" size=\"45\" maxlength=\"20\" /></td>
          </tr>
          <tr>
            <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".email.":</div>
            </td>
            <td class=\"tabstat\"><input name=\"newmail\" type=\"text\" id=\"newmail\" size=\"45\" maxlength=\"40\" value=\"".$_POST['newmail']."\" />
            </td>
          </tr>
          <tr>
            <td colspan=\"2\" class=\"tabstat\"><div align=\"center\" class=\"testo12\">
                <input name=\"step\" type=\"hidden\" id=\"step\" value=\"3\" />
                <input name=\"prosegui\" type=\"button\" class=\"pulsinvia\" value=\"".avanti_form."\" onClick=\"convalida();\" />
                  </div></td>
          </tr>
          </form>
        </table>";
        }else{
        $q_useresiste=quera("SELECT nome,mail FROM ".$tblprefix."users WHERE nome='".mysql_escape_string($_POST['newuser'])."' OR mail='".mysql_escape_string($_POST['newmail'])."' LIMIT 1");
        if(mysql_num_rows($q_useresiste)>0){
        $arr_useresistente=mysql_fetch_assoc($q_useresiste);
        if($_POST['newuser']==$arr_useresistente['nome']){ $stringa_esiste.="? username<br />"; }
        if($_POST['newmail']==$arr_useresistente['mail']){ $stringa_esiste.="? e-mail<br />"; }
        echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
          <tr>
            <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".errore."</strong></div></td>
          </tr>
          <tr>
            <td class=\"tabstat\"><span class=\"testo12\">".err_dati_usati.":<br />
        $stringa_esiste</span></td>
          </tr>
        </table><br />
        <table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
        <form action=\"registrazione.php\" method=\"post\" name=\"registra\">
          <tr>
            <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".inserisci_dati.":</strong></div></td>
          </tr>
          <tr>
            <td width=\"35%\" class=\"tabstat\"><div align=\"right\" class=\"testo12\"><span class=\"testo12\">".username.":</span></div></td>
            <td width=\"65%\" class=\"tabstat\"><input name=\"newuser\" type=\"text\" id=\"newuser\" size=\"45\" maxlength=\"20\" value=\"".$_POST['newuser']."\" /></td>
          </tr>
          <tr>
            <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".password.":</div>
            </td>
            <td class=\"tabstat\"><input name=\"newpsw\" type=\"password\" id=\"newpsw\" size=\"45\" maxlength=\"20\" />
            </td>
          </tr>
          <tr>
            <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".cpassword.":</div></td>
            <td class=\"tabstat\"><input name=\"newcpsw\" type=\"password\" id=\"newcpsw\" size=\"45\" maxlength=\"20\" /></td>
          </tr>
          <tr>
            <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".email.":</div>
            </td>
            <td class=\"tabstat\"><input name=\"newmail\" type=\"text\" id=\"newmail\" size=\"45\" maxlength=\"40\" value=\"".$_POST['newmail']."\" />
            </td>
          </tr>
          <tr>
            <td colspan=\"2\" class=\"tabstat\"><div align=\"center\" class=\"testo12\">
                <input name=\"step\" type=\"hidden\" id=\"step\" value=\"3\" />
                <input name=\"prosegui\" type=\"button\" class=\"pulsinvia\" value=\"".avanti_form."\" onClick=\"convalida();\" />
                  </div></td>
          </tr>
          </form>
        </table>";
        }else if(!isset($_POST['newuser']) || trim($_POST['newuser'])=="" || !isset($_POST['newpsw']) || trim($_POST['newpsw'])==""){
        echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
          <tr>
            <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".errore."</strong></div></td>
          </tr>
          <tr>
            <td class=\"tabstat\"><span class=\"testo12\">".err_campi."!</span></td>
          </tr>
        </table><br />
        <table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
        <form action=\"registrazione.php\" method=\"post\" name=\"registra\">
          <tr>
            <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".inserisci_dati.":</strong></div></td>
          </tr>
          <tr>
            <td width=\"35%\" class=\"tabstat\"><div align=\"right\" class=\"testo12\"><span class=\"testo12\">".username.":</span></div></td>
            <td width=\"65%\" class=\"tabstat\"><input name=\"newuser\" type=\"text\" id=\"newuser\" size=\"45\" maxlength=\"20\" value=\"".$_POST['newuser']."\" /></td>
          </tr>
          <tr>
            <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".password.":</div>
            </td>
            <td class=\"tabstat\"><input name=\"newpsw\" type=\"password\" id=\"newpsw\" size=\"45\" maxlength=\"20\" />
            </td>
          </tr>
          <tr>
            <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".cpassword.":</div></td>
            <td class=\"tabstat\"><input name=\"newcpsw\" type=\"password\" id=\"newcpsw\" size=\"45\" maxlength=\"20\" /></td>
          </tr>
          <tr>
            <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".email.":</div>
            </td>
            <td class=\"tabstat\"><input name=\"newmail\" type=\"text\" id=\"newmail\" size=\"45\" maxlength=\"40\" value=\"".$_POST['newmail']."\" />
            </td>
          </tr>
          <tr>
            <td colspan=\"2\" class=\"tabstat\"><div align=\"center\" class=\"testo12\">
                <input name=\"step\" type=\"hidden\" id=\"step\" value=\"3\" />
                <input name=\"prosegui\" type=\"button\" class=\"pulsinvia\" value=\"".avanti_form."\" onClick=\"convalida();\" />
                  </div></td>
          </tr>
          </form>
        </table>";
        }else if(trim($_POST['newpsw'])!=trim($_POST['newcpsw'])){
        echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
          <tr>
            <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".errore."</strong></div></td>
          </tr>
          <tr>
            <td class=\"tabstat\"><span class=\"testo12\">".err_psw."!</span></td>
          </tr>
        </table><br />
        <table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
        <form action=\"registrazione.php\" method=\"post\" name=\"registra\">
          <tr>
            <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".inserisci_dati.":</strong></div></td>
          </tr>
          <tr>
            <td width=\"35%\" class=\"tabstat\"><div align=\"right\" class=\"testo12\"><span class=\"testo12\">".username.":</span></div></td>
            <td width=\"65%\" class=\"tabstat\"><input name=\"newuser\" type=\"text\" id=\"newuser\" size=\"45\" maxlength=\"20\" value=\"".$_POST['newuser']."\" /></td>
          </tr>
          <tr>
            <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".password.":</div>
            </td>
            <td class=\"tabstat\"><input name=\"newpsw\" type=\"password\" id=\"newpsw\" size=\"45\" maxlength=\"20\" />
            </td>
          </tr>
          <tr>
            <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".cpassword.":</div></td>
            <td class=\"tabstat\"><input name=\"newcpsw\" type=\"password\" id=\"newcpsw\" size=\"45\" maxlength=\"20\" /></td>
          </tr>
          <tr>
            <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".email.":</div>
            </td>
            <td class=\"tabstat\"><input name=\"newmail\" type=\"text\" id=\"newmail\" size=\"45\" maxlength=\"40\" value=\"".$_POST['newmail']."\" />
            </td>
          </tr>
          <tr>
            <td colspan=\"2\" class=\"tabstat\"><div align=\"center\" class=\"testo12\">
                <input name=\"step\" type=\"hidden\" id=\"step\" value=\"3\" />
                <input name=\"prosegui\" type=\"button\" class=\"pulsinvia\" value=\"".avanti_form."\" onClick=\"convalida();\" />
                  </div></td>
          </tr>
          </form>
        </table>";
        }else if(strlen(trim($_POST['newuser']))>20 || strlen(trim($_POST['newmail']))>40 || strlen(trim($_POST['newpsw']))>20){
        echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
          <tr>
            <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".errore."</strong></div></td>
          </tr>
          <tr>
            <td class=\"tabstat\"><span class=\"testo12\">".err_lunghezza.".</span></td>
          </tr>
        </table><br />
        <table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
        <form action=\"registrazione.php\" method=\"post\" name=\"registra\">
          <tr>
            <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".inserisci_dati.":</strong></div></td>
          </tr>
          <tr>
            <td width=\"35%\" class=\"tabstat\"><div align=\"right\" class=\"testo12\"><span class=\"testo12\">".username.":</span></div></td>
            <td width=\"65%\" class=\"tabstat\"><input name=\"newuser\" type=\"text\" id=\"newuser\" size=\"45\" maxlength=\"20\" value=\"".$_POST['newuser']."\" /></td>
          </tr>
          <tr>
            <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".password.":</div>
            </td>
            <td class=\"tabstat\"><input name=\"newpsw\" type=\"password\" id=\"newpsw\" size=\"45\" maxlength=\"20\" />
            </td>
          </tr>
          <tr>
            <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".cpassword.":</div></td>
            <td class=\"tabstat\"><input name=\"newcpsw\" type=\"password\" id=\"newcpsw\" size=\"45\" maxlength=\"20\" /></td>
          </tr>
          <tr>
            <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".email.":</div>
            </td>
            <td class=\"tabstat\"><input name=\"newmail\" type=\"text\" id=\"newmail\" size=\"45\" maxlength=\"40\" value=\"".$_POST['newmail']."\" />
            </td>
          </tr>
          <tr>
            <td colspan=\"2\" class=\"tabstat\"><div align=\"center\" class=\"testo12\">
                <input name=\"step\" type=\"hidden\" id=\"step\" value=\"3\" />
                <input name=\"prosegui\" type=\"button\" class=\"pulsinvia\" value=\"".avanti_form."\" onClick=\"convalida();\" />
                  </div></td>
          </tr>
          </form>
        </table>";
        }else{
        echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
        <form action=\"registrazione.php\" method=\"post\" enctype=\"multipart/form-data\" name=\"registra\">
          <tr>
            <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".profilo.":</strong></div></td>
          </tr>
          <tr>
            <td width=\"35%\" class=\"tabstat\"><div align=\"right\" class=\"testo12\"><span class=\"testo12\">".luogo.":</span></div></td>
            <td width=\"65%\" class=\"tabstat\"><input name=\"luogo\" type=\"text\" id=\"luogo\" size=\"45\" /></td>
          </tr>
          <tr>
            <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".homepage.":</div>
            </td>
            <td class=\"tabstat\"><input name=\"sito\" type=\"text\" id=\"sito\" size=\"45\" />
            </td>
          </tr>
          <tr>
            <td class=\"tabstat\"><div align=\"right\">MSN:</div></td>
            <td class=\"tabstat\"><input name=\"msn\" type=\"text\" size=\"45\" /></td>
          </tr>
          <tr>
            <td class=\"tabstat\"><div align=\"right\">ICQ:</div></td>
            <td class=\"tabstat\"><input name=\"icq\" type=\"text\" size=\"45\" /></td>
          </tr>
          <tr>
            <td class=\"tabstat\"><div align=\"right\">AIM:</div></td>
            <td class=\"tabstat\"><input name=\"aim\" type=\"text\" size=\"45\" /></td>
          </tr>
          <tr>
            <td class=\"tabstat\"><div align=\"right\">Yahoo:</div></td>
            <td class=\"tabstat\"><input name=\"yahoo\" type=\"text\" size=\"45\" /></td>
          </tr>
          <tr>
            <td class=\"tabstat\"><div align=\"right\">Skype:</div></td>
            <td class=\"tabstat\"><input name=\"skype\" type=\"text\" size=\"45\" /></td>
          </tr>
            <tr>
            <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".nascita.":</div></td>
            <td class=\"tabstat\"><span class=\"testo11\">".giorno.":
              <select name=\"nascitagiorno\"> ".select_giorni('')."</select>
              ".mese.": <select name=\"nascitamese\">".select_mesi('')."</select>
                ".anno.":
                <select name=\"nascitaanno\"> ".select_anni('')."</select></span></td>
          </tr>
          <tr>
            <td valign=\"top\" class=\"tabstat\"><div align=\"right\" class=\"testo12\">".firma.":<br /><span class=\"testo10\">(".firma_max.": ".$arr_impostazioni['maxfirma'].")</span></div></td>
            <td class=\"tabstat\"><textarea name=\"firma\" cols=\"40\" rows=\"5\" id=\"firma\" onKeyDown=\"if(this.value.length>".$arr_impostazioni['maxfirma'].")this.value=this.value.substr(0,".$arr_impostazioni['maxfirma'].")\"></textarea></td>
          </tr>
          <tr>
            <td colspan=\"2\" class=\"tabstat\"><div align=\"center\" class=\"testo12\">
                <input name=\"step\" type=\"hidden\" id=\"step\" value=\"4\" />
                <input name=\"newuser\" type=\"hidden\" value=\"".$_POST['newuser']."\" />
                <input name=\"newpsw\" type=\"hidden\" value=\"".$_POST['newpsw']."\" />
                <input name=\"newmail\" type=\"hidden\" value=\"".$_POST['newmail']."\" />
                <input type=\"submit\" class=\"pulsinvia\" value=\"".prosegui_form."\" />
                  </div></td>
          </tr>
          </form>
        </table>";
        }
        }
        }else if($step==4){ //STEP 4 ---------------------------------------------------------------------
        define('titolo_pagina',' - '.registrazione_titolo3);
        $_POST['newmail']=togli_char_spec($_POST['newmail']);
        $_POST['newuser']=togli_char_spec($_POST['newuser']);
        $_POST['firma']=togli_char_spec($_POST['firma']);
        $_POST['luogo']=togli_char_spec($_POST['luogo']);
        $_POST['sito']=togli_char_spec($_POST['sito']);
        $_POST['msn']=togli_char_spec($_POST['msn']);
        $_POST['icq']=togli_char_spec($_POST['icq']);
        $_POST['aim']=togli_char_spec($_POST['aim']);
        $_POST['yahoo']=togli_char_spec($_POST['yahoo']);
        $_POST['skype']=togli_char_spec($_POST['skype']);
        
        if(trim($_POST['firma'])!=""){
        $firma=mysql_escape_string($_POST['firma']);
        }
        $codice = md5(microtime());
        quera("INSERT INTO ".$tblprefix."users (nome,psw,ip,mail,attivazione,firma,datareg,nascita_g,nascita_m,nascita_a,luogo,sito,msn,icq,aim,yahoo,skype)
         VALUES ('".mysql_escape_string($_POST['newuser'])."','".md5($_POST['newpsw'])."','".$_SERVER['REMOTE_ADDR']."','".mysql_escape_string($_POST['newmail'])."','$codice','$firma','".time()."','".$_POST['nascitagiorno']."','".$_POST['nascitamese']."','".$_POST['nascitaanno']."','".mysql_escape_string($_POST['luogo'])."','".mysql_escape_string($_POST['sito'])."','".mysql_escape_string($_POST['msn'])."','".mysql_escape_string($_POST['icq'])."','".mysql_escape_string($_POST['aim'])."','".mysql_escape_string($_POST['yahoo'])."','".mysql_escape_string($_POST['skype'])."')");
        quera("UPDATE ".$tblprefix."stats SET tot_users=tot_users+1, ultimo_userid='".mysql_insert_id()."'");
        setcookie("denome",$_POST['newuser'],time()+(86400*365),"/");
        setcookie("depsw",md5($_POST['newpsw']),time()+(86400*365),"/");
        $corpo=mail_benvenuto." ".$_POST['newuser'].",\n\n".mail_reg_completata."!\n\n
        ".mail_staff."! :)\n\n\n".$arr_impostazioni['urlforum'];
        mandamail($_POST['newmail'],$arr_impostazioni['titoloforum']." - ".mail_oggetto."!",$corpo);
        define('in_reg_step4','si');
        require_once "header.php";
        echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
          <tr>
            <td width=\"100%\" class=\"tabstat\"><span class=\"testo12\">".mail_benvenuto." <strong>".$_POST['newuser']."</strong>, ".mail_reg_completata."!<br />
              <br />
              ".ora_puoi.".<br />
              ".puoi_modificare.".</span> <img src=\"img/empty.gif\" border=\"0\" onload=\"concalma('index.php','4000');\" /></td>
          </tr>
        </table>";
        }else{ //STEP 1 ---------------------------------------------------------------------
        define('titolo_pagina',' - '.registrazione_titolo4);
        require_once "header.php";
        echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
          <tr>
            <td class=\"tabstat\"><div class=\"testo12\"><strong>".regolamento.":</strong></div></td>
          </tr>
          <tr>
            <td class=\"tabstat\"><span class=\"testo12\">1) ".regola1.".<br /><br />
                    2) ".regola2.".<br /><br />
                    3) ".regola3.".<br /><br />
                    4) ".regola4.".<br /><br />
                    5) ".regola5.".<br /><br />
                    6) ".regola6.".<br /><br />
                    7) ".regola7.".</span></td>
          </tr>
          <tr>
            <td class=\"tabstat\"><div align=\"center\" class=\"testo12\">
                <input name=\"prosegui\" type=\"button\" class=\"pulsinvia\" onClick=\"window.location='registrazione.php?step=2'\" value=\" ".accetto_form." \" />
                  </div></td>
          </tr>
        </table>";
        }
        }
        if($_GET['debug']=="y"){ debugging(); }
        require_once "copy.php";
        ?>
        

        non è difficile, un pò di buona volontà si impara tutto 😉

        mi posti il file includes/funzioni.php
        che già manda l'email alla registrazione, vediamo come aggiungere il link 😉

        1 Risposta Ultima Risposta
        Miglior risposta 0
        0
        • G
          G
          giulio3x
          scritto su ultima modifica di
          User Attivo 0
          #60

          Thedarkita

          non è difficile, un pò di buona volontà si impara tutto 😉

          mi posti il file includes/funzioni.php
          che già manda l'email alla registrazione, vediamo come aggiungere il link 😉

          ah dimenticavo quando uno si registra egli diviene subito loggato cosa non bella come fare per evitare subito l'essere loggati? magari riprova di nuovo a registrarti così vedi

          questo è funzioni.php
          w.w.w.globalmeteo.altervista.org/funzioni.txt

          1 Risposta Ultima Risposta
          Miglior risposta 0
          0
          • T
            T
            thedarkita
            ModSenior
            scritto su ultima modifica di
            Super User 70
            #61

            Metti cosi il file register cosi non dovrebbe loggarsi automaticamente...

             <?php
            require_once "includes/config.php";
            require_once "includes/mysql_connect.php";
            require_once "includes/getsett.php";
            require_once "includes/funzioni.php";
            require_once "includes/funzioni_testi.php";
            if(trim($arr_impostazioni['lingua'])=="" || !is_dir("lang/".$arr_impostazioni['lingua'])){ $arr_impostazioni['lingua']="ita"; }
            require_once "lang/".$arr_impostazioni['lingua']."/registrazione.php";
            if(user_esistente=="si"){
            if(my_bannato=="si"){
            require_once "header.php";
            echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
              <tr>
                <td class=\"testo12\">".sei_bannato.".<br /><br />
                <a href=\"mailto:".$arr_impostazioni['mailsito']."\">".contatta_admin.".</td>
              </tr>
            </table>";
            }else{
            require_once "header.php";
            echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
              <tr>
                <td class=\"testo12\">".err_loggato.".</td>
              </tr>
            </table>";
            }
            }else{
            $step=(ereg("[1-4]",$_GET['step'])) ? (int)$_GET['step'] : (int)$_POST['step'];
            if($step==2){ //STEP 2 ---------------------------------------------------------------------
            define('titolo_pagina',' - '.registrazione_titolo1);
            require_once "header.php";
            echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
            <form action=\"registrazione.php\" method=\"post\" name=\"registra\">
              <tr>
                <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".inserisci_dati.":</strong></div></td>
              </tr>
              <tr>
                <td width=\"35%\" class=\"tabstat\"><div align=\"right\" class=\"testo12\"><span class=\"testo12\">".username.":</span></div></td>
                <td width=\"65%\" class=\"tabstat\"><input name=\"newuser\" type=\"text\" id=\"newuser\" size=\"45\" maxlength=\"20\" /></td>
              </tr>
              <tr>
                <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".password.":</div>
                </td>
                <td class=\"tabstat\"><input name=\"newpsw\" type=\"password\" id=\"newpsw\" size=\"45\" maxlength=\"20\" />
                </td>
              </tr>
              <tr>
                <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".cpassword.":</div></td>
                <td class=\"tabstat\"><input name=\"newcpsw\" type=\"password\" id=\"newcpsw\" size=\"45\" maxlength=\"20\" /></td>
              </tr>
              <tr>
                <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".email.":</div>
                </td>
                <td class=\"tabstat\"><input name=\"newmail\" type=\"text\" id=\"newmail\" size=\"45\" maxlength=\"40\" />
                </td>
              </tr>
              <tr>
                <td colspan=\"2\" class=\"tabstat\"><div align=\"center\" class=\"testo12\">
                    <input name=\"step\" type=\"hidden\" id=\"step\" value=\"3\" />
                    <input name=\"prosegui\" type=\"button\" class=\"pulsinvia\" value=\"".avanti_form."\" onClick=\"convalida();\" />
                      </div></td>
              </tr>
              </form>
            </table>";
            }else if($step==3){ //STEP 3 ---------------------------------------------------------------------
            define('titolo_pagina',' - '.registrazione_titolo2);
            $_POST['newmail']=togli_char_spec($_POST['newmail']);
            $_POST['newuser']=togli_char_spec($_POST['newuser']);
            require_once "header.php";
            if(!checkmail($_POST['newmail'])){
            echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
              <tr>
                <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".errore."</strong></div></td>
              </tr>
              <tr>
                <td class=\"tabstat\"><span class=\"testo12\">".err_mail."!</span></td>
              </tr>
            </table><br />
            <table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
            <form action=\"registrazione.php\" method=\"post\" name=\"registra\">
              <tr>
                <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".inserisci_dati.":</strong></div></td>
              </tr>
              <tr>
                <td width=\"35%\" class=\"tabstat\"><div align=\"right\" class=\"testo12\"><span class=\"testo12\">".username.":</span></div></td>
                <td width=\"65%\" class=\"tabstat\"><input name=\"newuser\" type=\"text\" id=\"newuser\" size=\"45\" maxlength=\"20\" value=\"".$_POST['newuser']."\" /></td>
              </tr>
              <tr>
                <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".password.":</div>
                </td>
                <td class=\"tabstat\"><input name=\"newpsw\" type=\"password\" id=\"newpsw\" size=\"45\" maxlength=\"20\" />
                </td>
              </tr>
              <tr>
                <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".cpassword.":</div></td>
                <td class=\"tabstat\"><input name=\"newcpsw\" type=\"password\" id=\"newcpsw\" size=\"45\" maxlength=\"20\" /></td>
              </tr>
              <tr>
                <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".email.":</div>
                </td>
                <td class=\"tabstat\"><input name=\"newmail\" type=\"text\" id=\"newmail\" size=\"45\" maxlength=\"40\" value=\"".$_POST['newmail']."\" />
                </td>
              </tr>
              <tr>
                <td colspan=\"2\" class=\"tabstat\"><div align=\"center\" class=\"testo12\">
                    <input name=\"step\" type=\"hidden\" id=\"step\" value=\"3\" />
                    <input name=\"prosegui\" type=\"button\" class=\"pulsinvia\" value=\"".avanti_form."\" onClick=\"convalida();\" />
                      </div></td>
              </tr>
              </form>
            </table>";
            }else{
            $q_useresiste=quera("SELECT nome,mail FROM ".$tblprefix."users WHERE nome='".mysql_escape_string($_POST['newuser'])."' OR mail='".mysql_escape_string($_POST['newmail'])."' LIMIT 1");
            if(mysql_num_rows($q_useresiste)>0){
            $arr_useresistente=mysql_fetch_assoc($q_useresiste);
            if($_POST['newuser']==$arr_useresistente['nome']){ $stringa_esiste.="&#8226; username<br />"; }
            if($_POST['newmail']==$arr_useresistente['mail']){ $stringa_esiste.="&#8226; e-mail<br />"; }
            echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
              <tr>
                <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".errore."</strong></div></td>
              </tr>
              <tr>
                <td class=\"tabstat\"><span class=\"testo12\">".err_dati_usati.":<br />
            $stringa_esiste</span></td>
              </tr>
            </table><br />
            <table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
            <form action=\"registrazione.php\" method=\"post\" name=\"registra\">
              <tr>
                <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".inserisci_dati.":</strong></div></td>
              </tr>
              <tr>
                <td width=\"35%\" class=\"tabstat\"><div align=\"right\" class=\"testo12\"><span class=\"testo12\">".username.":</span></div></td>
                <td width=\"65%\" class=\"tabstat\"><input name=\"newuser\" type=\"text\" id=\"newuser\" size=\"45\" maxlength=\"20\" value=\"".$_POST['newuser']."\" /></td>
              </tr>
              <tr>
                <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".password.":</div>
                </td>
                <td class=\"tabstat\"><input name=\"newpsw\" type=\"password\" id=\"newpsw\" size=\"45\" maxlength=\"20\" />
                </td>
              </tr>
              <tr>
                <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".cpassword.":</div></td>
                <td class=\"tabstat\"><input name=\"newcpsw\" type=\"password\" id=\"newcpsw\" size=\"45\" maxlength=\"20\" /></td>
              </tr>
              <tr>
                <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".email.":</div>
                </td>
                <td class=\"tabstat\"><input name=\"newmail\" type=\"text\" id=\"newmail\" size=\"45\" maxlength=\"40\" value=\"".$_POST['newmail']."\" />
                </td>
              </tr>
              <tr>
                <td colspan=\"2\" class=\"tabstat\"><div align=\"center\" class=\"testo12\">
                    <input name=\"step\" type=\"hidden\" id=\"step\" value=\"3\" />
                    <input name=\"prosegui\" type=\"button\" class=\"pulsinvia\" value=\"".avanti_form."\" onClick=\"convalida();\" />
                      </div></td>
              </tr>
              </form>
            </table>";
            }else if(!isset($_POST['newuser']) || trim($_POST['newuser'])=="" || !isset($_POST['newpsw']) || trim($_POST['newpsw'])==""){
            echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
              <tr>
                <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".errore."</strong></div></td>
              </tr>
              <tr>
                <td class=\"tabstat\"><span class=\"testo12\">".err_campi."!</span></td>
              </tr>
            </table><br />
            <table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
            <form action=\"registrazione.php\" method=\"post\" name=\"registra\">
              <tr>
                <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".inserisci_dati.":</strong></div></td>
              </tr>
              <tr>
                <td width=\"35%\" class=\"tabstat\"><div align=\"right\" class=\"testo12\"><span class=\"testo12\">".username.":</span></div></td>
                <td width=\"65%\" class=\"tabstat\"><input name=\"newuser\" type=\"text\" id=\"newuser\" size=\"45\" maxlength=\"20\" value=\"".$_POST['newuser']."\" /></td>
              </tr>
              <tr>
                <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".password.":</div>
                </td>
                <td class=\"tabstat\"><input name=\"newpsw\" type=\"password\" id=\"newpsw\" size=\"45\" maxlength=\"20\" />
                </td>
              </tr>
              <tr>
                <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".cpassword.":</div></td>
                <td class=\"tabstat\"><input name=\"newcpsw\" type=\"password\" id=\"newcpsw\" size=\"45\" maxlength=\"20\" /></td>
              </tr>
              <tr>
                <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".email.":</div>
                </td>
                <td class=\"tabstat\"><input name=\"newmail\" type=\"text\" id=\"newmail\" size=\"45\" maxlength=\"40\" value=\"".$_POST['newmail']."\" />
                </td>
              </tr>
              <tr>
                <td colspan=\"2\" class=\"tabstat\"><div align=\"center\" class=\"testo12\">
                    <input name=\"step\" type=\"hidden\" id=\"step\" value=\"3\" />
                    <input name=\"prosegui\" type=\"button\" class=\"pulsinvia\" value=\"".avanti_form."\" onClick=\"convalida();\" />
                      </div></td>
              </tr>
              </form>
            </table>";
            }else if(trim($_POST['newpsw'])!=trim($_POST['newcpsw'])){
            echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
              <tr>
                <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".errore."</strong></div></td>
              </tr>
              <tr>
                <td class=\"tabstat\"><span class=\"testo12\">".err_psw."!</span></td>
              </tr>
            </table><br />
            <table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
            <form action=\"registrazione.php\" method=\"post\" name=\"registra\">
              <tr>
                <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".inserisci_dati.":</strong></div></td>
              </tr>
              <tr>
                <td width=\"35%\" class=\"tabstat\"><div align=\"right\" class=\"testo12\"><span class=\"testo12\">".username.":</span></div></td>
                <td width=\"65%\" class=\"tabstat\"><input name=\"newuser\" type=\"text\" id=\"newuser\" size=\"45\" maxlength=\"20\" value=\"".$_POST['newuser']."\" /></td>
              </tr>
              <tr>
                <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".password.":</div>
                </td>
                <td class=\"tabstat\"><input name=\"newpsw\" type=\"password\" id=\"newpsw\" size=\"45\" maxlength=\"20\" />
                </td>
              </tr>
              <tr>
                <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".cpassword.":</div></td>
                <td class=\"tabstat\"><input name=\"newcpsw\" type=\"password\" id=\"newcpsw\" size=\"45\" maxlength=\"20\" /></td>
              </tr>
              <tr>
                <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".email.":</div>
                </td>
                <td class=\"tabstat\"><input name=\"newmail\" type=\"text\" id=\"newmail\" size=\"45\" maxlength=\"40\" value=\"".$_POST['newmail']."\" />
                </td>
              </tr>
              <tr>
                <td colspan=\"2\" class=\"tabstat\"><div align=\"center\" class=\"testo12\">
                    <input name=\"step\" type=\"hidden\" id=\"step\" value=\"3\" />
                    <input name=\"prosegui\" type=\"button\" class=\"pulsinvia\" value=\"".avanti_form."\" onClick=\"convalida();\" />
                      </div></td>
              </tr>
              </form>
            </table>";
            }else if(strlen(trim($_POST['newuser']))>20 || strlen(trim($_POST['newmail']))>40 || strlen(trim($_POST['newpsw']))>20){
            echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
              <tr>
                <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".errore."</strong></div></td>
              </tr>
              <tr>
                <td class=\"tabstat\"><span class=\"testo12\">".err_lunghezza.".</span></td>
              </tr>
            </table><br />
            <table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
            <form action=\"registrazione.php\" method=\"post\" name=\"registra\">
              <tr>
                <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".inserisci_dati.":</strong></div></td>
              </tr>
              <tr>
                <td width=\"35%\" class=\"tabstat\"><div align=\"right\" class=\"testo12\"><span class=\"testo12\">".username.":</span></div></td>
                <td width=\"65%\" class=\"tabstat\"><input name=\"newuser\" type=\"text\" id=\"newuser\" size=\"45\" maxlength=\"20\" value=\"".$_POST['newuser']."\" /></td>
              </tr>
              <tr>
                <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".password.":</div>
                </td>
                <td class=\"tabstat\"><input name=\"newpsw\" type=\"password\" id=\"newpsw\" size=\"45\" maxlength=\"20\" />
                </td>
              </tr>
              <tr>
                <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".cpassword.":</div></td>
                <td class=\"tabstat\"><input name=\"newcpsw\" type=\"password\" id=\"newcpsw\" size=\"45\" maxlength=\"20\" /></td>
              </tr>
              <tr>
                <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".email.":</div>
                </td>
                <td class=\"tabstat\"><input name=\"newmail\" type=\"text\" id=\"newmail\" size=\"45\" maxlength=\"40\" value=\"".$_POST['newmail']."\" />
                </td>
              </tr>
              <tr>
                <td colspan=\"2\" class=\"tabstat\"><div align=\"center\" class=\"testo12\">
                    <input name=\"step\" type=\"hidden\" id=\"step\" value=\"3\" />
                    <input name=\"prosegui\" type=\"button\" class=\"pulsinvia\" value=\"".avanti_form."\" onClick=\"convalida();\" />
                      </div></td>
              </tr>
              </form>
            </table>";
            }else{
            echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
            <form action=\"registrazione.php\" method=\"post\" enctype=\"multipart/form-data\" name=\"registra\">
              <tr>
                <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".profilo.":</strong></div></td>
              </tr>
              <tr>
                <td width=\"35%\" class=\"tabstat\"><div align=\"right\" class=\"testo12\"><span class=\"testo12\">".luogo.":</span></div></td>
                <td width=\"65%\" class=\"tabstat\"><input name=\"luogo\" type=\"text\" id=\"luogo\" size=\"45\" /></td>
              </tr>
              <tr>
                <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".homepage.":</div>
                </td>
                <td class=\"tabstat\"><input name=\"sito\" type=\"text\" id=\"sito\" size=\"45\" />
                </td>
              </tr>
              <tr>
                <td class=\"tabstat\"><div align=\"right\">MSN:</div></td>
                <td class=\"tabstat\"><input name=\"msn\" type=\"text\" size=\"45\" /></td>
              </tr>
              <tr>
                <td class=\"tabstat\"><div align=\"right\">ICQ:</div></td>
                <td class=\"tabstat\"><input name=\"icq\" type=\"text\" size=\"45\" /></td>
              </tr>
              <tr>
                <td class=\"tabstat\"><div align=\"right\">AIM:</div></td>
                <td class=\"tabstat\"><input name=\"aim\" type=\"text\" size=\"45\" /></td>
              </tr>
              <tr>
                <td class=\"tabstat\"><div align=\"right\">Yahoo:</div></td>
                <td class=\"tabstat\"><input name=\"yahoo\" type=\"text\" size=\"45\" /></td>
              </tr>
              <tr>
                <td class=\"tabstat\"><div align=\"right\">Skype:</div></td>
                <td class=\"tabstat\"><input name=\"skype\" type=\"text\" size=\"45\" /></td>
              </tr>
                <tr>
                <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".nascita.":</div></td>
                <td class=\"tabstat\"><span class=\"testo11\">".giorno.":
                  <select name=\"nascitagiorno\"> ".select_giorni('')."</select>
                  ".mese.": <select name=\"nascitamese\">".select_mesi('')."</select>
                    ".anno.":
                    <select name=\"nascitaanno\"> ".select_anni('')."</select></span></td>
              </tr>
              <tr>
                <td valign=\"top\" class=\"tabstat\"><div align=\"right\" class=\"testo12\">".firma.":<br /><span class=\"testo10\">(".firma_max.": ".$arr_impostazioni['maxfirma'].")</span></div></td>
                <td class=\"tabstat\"><textarea name=\"firma\" cols=\"40\" rows=\"5\" id=\"firma\" onKeyDown=\"if(this.value.length>".$arr_impostazioni['maxfirma'].")this.value=this.value.substr(0,".$arr_impostazioni['maxfirma'].")\"></textarea></td>
              </tr>
              <tr>
                <td colspan=\"2\" class=\"tabstat\"><div align=\"center\" class=\"testo12\">
                    <input name=\"step\" type=\"hidden\" id=\"step\" value=\"4\" />
                    <input name=\"newuser\" type=\"hidden\" value=\"".$_POST['newuser']."\" />
                    <input name=\"newpsw\" type=\"hidden\" value=\"".$_POST['newpsw']."\" />
                    <input name=\"newmail\" type=\"hidden\" value=\"".$_POST['newmail']."\" />
                    <input type=\"submit\" class=\"pulsinvia\" value=\"".prosegui_form."\" />
                      </div></td>
              </tr>
              </form>
            </table>";
            }
            }
            }else if($step==4){ //STEP 4 ---------------------------------------------------------------------
            define('titolo_pagina',' - '.registrazione_titolo3);
            $_POST['newmail']=togli_char_spec($_POST['newmail']);
            $_POST['newuser']=togli_char_spec($_POST['newuser']);
            $_POST['firma']=togli_char_spec($_POST['firma']);
            $_POST['luogo']=togli_char_spec($_POST['luogo']);
            $_POST['sito']=togli_char_spec($_POST['sito']);
            $_POST['msn']=togli_char_spec($_POST['msn']);
            $_POST['icq']=togli_char_spec($_POST['icq']);
            $_POST['aim']=togli_char_spec($_POST['aim']);
            $_POST['yahoo']=togli_char_spec($_POST['yahoo']);
            $_POST['skype']=togli_char_spec($_POST['skype']);
             
            if(trim($_POST['firma'])!=""){
            $firma=mysql_escape_string($_POST['firma']);
            }
            $codice = md5(microtime());
            quera("INSERT INTO ".$tblprefix."users (nome,psw,ip,mail,attivazione,firma,datareg,nascita_g,nascita_m,nascita_a,luogo,sito,msn,icq,aim,yahoo,skype)
             VALUES ('".mysql_escape_string($_POST['newuser'])."','".md5($_POST['newpsw'])."','".$_SERVER['REMOTE_ADDR']."','".mysql_escape_string($_POST['newmail'])."','$codice','$firma','".time()."','".$_POST['nascitagiorno']."','".$_POST['nascitamese']."','".$_POST['nascitaanno']."','".mysql_escape_string($_POST['luogo'])."','".mysql_escape_string($_POST['sito'])."','".mysql_escape_string($_POST['msn'])."','".mysql_escape_string($_POST['icq'])."','".mysql_escape_string($_POST['aim'])."','".mysql_escape_string($_POST['yahoo'])."','".mysql_escape_string($_POST['skype'])."')");
            quera("UPDATE ".$tblprefix."stats SET tot_users=tot_users+1, ultimo_userid='".mysql_insert_id()."'");
            $corpo=mail_benvenuto." ".$_POST['newuser'].",\n\n".mail_reg_completata."!\n\n
            ".mail_staff."! :)\n\n\n".$arr_impostazioni['urlforum'];
            mandamail($_POST['newmail'],$arr_impostazioni['titoloforum']." - ".mail_oggetto."!",$corpo);
            define('in_reg_step4','si');
            require_once "header.php";
            echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
              <tr>
                <td width=\"100%\" class=\"tabstat\"><span class=\"testo12\">".mail_benvenuto." <strong>".$_POST['newuser']."</strong>, ".mail_reg_completata."!<br />
                  <br />
                  ".ora_puoi.".<br />
                  ".puoi_modificare.".</span> <img src=\"img/empty.gif\" border=\"0\" onload=\"concalma('index.php','4000');\" /></td>
              </tr>
            </table>";
            }else{ //STEP 1 ---------------------------------------------------------------------
            define('titolo_pagina',' - '.registrazione_titolo4);
            require_once "header.php";
            echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
              <tr>
                <td class=\"tabstat\"><div class=\"testo12\"><strong>".regolamento.":</strong></div></td>
              </tr>
              <tr>
                <td class=\"tabstat\"><span class=\"testo12\">1) ".regola1.".<br /><br />
                        2) ".regola2.".<br /><br />
                        3) ".regola3.".<br /><br />
                        4) ".regola4.".<br /><br />
                        5) ".regola5.".<br /><br />
                        6) ".regola6.".<br /><br />
                        7) ".regola7.".</span></td>
              </tr>
              <tr>
                <td class=\"tabstat\"><div align=\"center\" class=\"testo12\">
                    <input name=\"prosegui\" type=\"button\" class=\"pulsinvia\" onClick=\"window.location='registrazione.php?step=2'\" value=\" ".accetto_form." \" />
                      </div></td>
              </tr>
            </table>";
            }
            }
            if($_GET['debug']=="y"){ debugging(); }
            require_once "copy.php";
            ?>
            
            1 Risposta Ultima Risposta
            Miglior risposta 0
            0
            • G
              G
              giulio3x
              scritto su ultima modifica di
              User Attivo 0
              #62

              si adesso non si è più subito loggati

              1 Risposta Ultima Risposta
              Miglior risposta 0
              0
              • T
                T
                thedarkita
                ModSenior
                scritto su ultima modifica di
                Super User 70
                #63

                Metti questo come file register e vedi se arriva il link di attivazione nell'email

                 <?php
                require_once "includes/config.php";
                require_once "includes/mysql_connect.php";
                require_once "includes/getsett.php";
                require_once "includes/funzioni.php";
                require_once "includes/funzioni_testi.php";
                if(trim($arr_impostazioni['lingua'])=="" || !is_dir("lang/".$arr_impostazioni['lingua'])){ $arr_impostazioni['lingua']="ita"; }
                require_once "lang/".$arr_impostazioni['lingua']."/registrazione.php";
                if(user_esistente=="si"){
                if(my_bannato=="si"){
                require_once "header.php";
                echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
                  <tr>
                    <td class=\"testo12\">".sei_bannato.".<br /><br />
                    <a href=\"mailto:".$arr_impostazioni['mailsito']."\">".contatta_admin.".</td>
                  </tr>
                </table>";
                }else{
                require_once "header.php";
                echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
                  <tr>
                    <td class=\"testo12\">".err_loggato.".</td>
                  </tr>
                </table>";
                }
                }else{
                $step=(ereg("[1-4]",$_GET['step'])) ? (int)$_GET['step'] : (int)$_POST['step'];
                if($step==2){ //STEP 2 ---------------------------------------------------------------------
                define('titolo_pagina',' - '.registrazione_titolo1);
                require_once "header.php";
                echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
                <form action=\"registrazione.php\" method=\"post\" name=\"registra\">
                  <tr>
                    <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".inserisci_dati.":</strong></div></td>
                  </tr>
                  <tr>
                    <td width=\"35%\" class=\"tabstat\"><div align=\"right\" class=\"testo12\"><span class=\"testo12\">".username.":</span></div></td>
                    <td width=\"65%\" class=\"tabstat\"><input name=\"newuser\" type=\"text\" id=\"newuser\" size=\"45\" maxlength=\"20\" /></td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".password.":</div>
                    </td>
                    <td class=\"tabstat\"><input name=\"newpsw\" type=\"password\" id=\"newpsw\" size=\"45\" maxlength=\"20\" />
                    </td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".cpassword.":</div></td>
                    <td class=\"tabstat\"><input name=\"newcpsw\" type=\"password\" id=\"newcpsw\" size=\"45\" maxlength=\"20\" /></td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".email.":</div>
                    </td>
                    <td class=\"tabstat\"><input name=\"newmail\" type=\"text\" id=\"newmail\" size=\"45\" maxlength=\"40\" />
                    </td>
                  </tr>
                  <tr>
                    <td colspan=\"2\" class=\"tabstat\"><div align=\"center\" class=\"testo12\">
                        <input name=\"step\" type=\"hidden\" id=\"step\" value=\"3\" />
                        <input name=\"prosegui\" type=\"button\" class=\"pulsinvia\" value=\"".avanti_form."\" onClick=\"convalida();\" />
                          </div></td>
                  </tr>
                  </form>
                </table>";
                }else if($step==3){ //STEP 3 ---------------------------------------------------------------------
                define('titolo_pagina',' - '.registrazione_titolo2);
                $_POST['newmail']=togli_char_spec($_POST['newmail']);
                $_POST['newuser']=togli_char_spec($_POST['newuser']);
                require_once "header.php";
                if(!checkmail($_POST['newmail'])){
                echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
                  <tr>
                    <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".errore."</strong></div></td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><span class=\"testo12\">".err_mail."!</span></td>
                  </tr>
                </table><br />
                <table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
                <form action=\"registrazione.php\" method=\"post\" name=\"registra\">
                  <tr>
                    <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".inserisci_dati.":</strong></div></td>
                  </tr>
                  <tr>
                    <td width=\"35%\" class=\"tabstat\"><div align=\"right\" class=\"testo12\"><span class=\"testo12\">".username.":</span></div></td>
                    <td width=\"65%\" class=\"tabstat\"><input name=\"newuser\" type=\"text\" id=\"newuser\" size=\"45\" maxlength=\"20\" value=\"".$_POST['newuser']."\" /></td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".password.":</div>
                    </td>
                    <td class=\"tabstat\"><input name=\"newpsw\" type=\"password\" id=\"newpsw\" size=\"45\" maxlength=\"20\" />
                    </td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".cpassword.":</div></td>
                    <td class=\"tabstat\"><input name=\"newcpsw\" type=\"password\" id=\"newcpsw\" size=\"45\" maxlength=\"20\" /></td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".email.":</div>
                    </td>
                    <td class=\"tabstat\"><input name=\"newmail\" type=\"text\" id=\"newmail\" size=\"45\" maxlength=\"40\" value=\"".$_POST['newmail']."\" />
                    </td>
                  </tr>
                  <tr>
                    <td colspan=\"2\" class=\"tabstat\"><div align=\"center\" class=\"testo12\">
                        <input name=\"step\" type=\"hidden\" id=\"step\" value=\"3\" />
                        <input name=\"prosegui\" type=\"button\" class=\"pulsinvia\" value=\"".avanti_form."\" onClick=\"convalida();\" />
                          </div></td>
                  </tr>
                  </form>
                </table>";
                }else{
                $q_useresiste=quera("SELECT nome,mail FROM ".$tblprefix."users WHERE nome='".mysql_escape_string($_POST['newuser'])."' OR mail='".mysql_escape_string($_POST['newmail'])."' LIMIT 1");
                if(mysql_num_rows($q_useresiste)>0){
                $arr_useresistente=mysql_fetch_assoc($q_useresiste);
                if($_POST['newuser']==$arr_useresistente['nome']){ $stringa_esiste.="? username<br />"; }
                if($_POST['newmail']==$arr_useresistente['mail']){ $stringa_esiste.="? e-mail<br />"; }
                echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
                  <tr>
                    <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".errore."</strong></div></td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><span class=\"testo12\">".err_dati_usati.":<br />
                $stringa_esiste</span></td>
                  </tr>
                </table><br />
                <table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
                <form action=\"registrazione.php\" method=\"post\" name=\"registra\">
                  <tr>
                    <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".inserisci_dati.":</strong></div></td>
                  </tr>
                  <tr>
                    <td width=\"35%\" class=\"tabstat\"><div align=\"right\" class=\"testo12\"><span class=\"testo12\">".username.":</span></div></td>
                    <td width=\"65%\" class=\"tabstat\"><input name=\"newuser\" type=\"text\" id=\"newuser\" size=\"45\" maxlength=\"20\" value=\"".$_POST['newuser']."\" /></td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".password.":</div>
                    </td>
                    <td class=\"tabstat\"><input name=\"newpsw\" type=\"password\" id=\"newpsw\" size=\"45\" maxlength=\"20\" />
                    </td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".cpassword.":</div></td>
                    <td class=\"tabstat\"><input name=\"newcpsw\" type=\"password\" id=\"newcpsw\" size=\"45\" maxlength=\"20\" /></td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".email.":</div>
                    </td>
                    <td class=\"tabstat\"><input name=\"newmail\" type=\"text\" id=\"newmail\" size=\"45\" maxlength=\"40\" value=\"".$_POST['newmail']."\" />
                    </td>
                  </tr>
                  <tr>
                    <td colspan=\"2\" class=\"tabstat\"><div align=\"center\" class=\"testo12\">
                        <input name=\"step\" type=\"hidden\" id=\"step\" value=\"3\" />
                        <input name=\"prosegui\" type=\"button\" class=\"pulsinvia\" value=\"".avanti_form."\" onClick=\"convalida();\" />
                          </div></td>
                  </tr>
                  </form>
                </table>";
                }else if(!isset($_POST['newuser']) || trim($_POST['newuser'])=="" || !isset($_POST['newpsw']) || trim($_POST['newpsw'])==""){
                echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
                  <tr>
                    <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".errore."</strong></div></td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><span class=\"testo12\">".err_campi."!</span></td>
                  </tr>
                </table><br />
                <table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
                <form action=\"registrazione.php\" method=\"post\" name=\"registra\">
                  <tr>
                    <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".inserisci_dati.":</strong></div></td>
                  </tr>
                  <tr>
                    <td width=\"35%\" class=\"tabstat\"><div align=\"right\" class=\"testo12\"><span class=\"testo12\">".username.":</span></div></td>
                    <td width=\"65%\" class=\"tabstat\"><input name=\"newuser\" type=\"text\" id=\"newuser\" size=\"45\" maxlength=\"20\" value=\"".$_POST['newuser']."\" /></td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".password.":</div>
                    </td>
                    <td class=\"tabstat\"><input name=\"newpsw\" type=\"password\" id=\"newpsw\" size=\"45\" maxlength=\"20\" />
                    </td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".cpassword.":</div></td>
                    <td class=\"tabstat\"><input name=\"newcpsw\" type=\"password\" id=\"newcpsw\" size=\"45\" maxlength=\"20\" /></td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".email.":</div>
                    </td>
                    <td class=\"tabstat\"><input name=\"newmail\" type=\"text\" id=\"newmail\" size=\"45\" maxlength=\"40\" value=\"".$_POST['newmail']."\" />
                    </td>
                  </tr>
                  <tr>
                    <td colspan=\"2\" class=\"tabstat\"><div align=\"center\" class=\"testo12\">
                        <input name=\"step\" type=\"hidden\" id=\"step\" value=\"3\" />
                        <input name=\"prosegui\" type=\"button\" class=\"pulsinvia\" value=\"".avanti_form."\" onClick=\"convalida();\" />
                          </div></td>
                  </tr>
                  </form>
                </table>";
                }else if(trim($_POST['newpsw'])!=trim($_POST['newcpsw'])){
                echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
                  <tr>
                    <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".errore."</strong></div></td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><span class=\"testo12\">".err_psw."!</span></td>
                  </tr>
                </table><br />
                <table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
                <form action=\"registrazione.php\" method=\"post\" name=\"registra\">
                  <tr>
                    <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".inserisci_dati.":</strong></div></td>
                  </tr>
                  <tr>
                    <td width=\"35%\" class=\"tabstat\"><div align=\"right\" class=\"testo12\"><span class=\"testo12\">".username.":</span></div></td>
                    <td width=\"65%\" class=\"tabstat\"><input name=\"newuser\" type=\"text\" id=\"newuser\" size=\"45\" maxlength=\"20\" value=\"".$_POST['newuser']."\" /></td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".password.":</div>
                    </td>
                    <td class=\"tabstat\"><input name=\"newpsw\" type=\"password\" id=\"newpsw\" size=\"45\" maxlength=\"20\" />
                    </td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".cpassword.":</div></td>
                    <td class=\"tabstat\"><input name=\"newcpsw\" type=\"password\" id=\"newcpsw\" size=\"45\" maxlength=\"20\" /></td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".email.":</div>
                    </td>
                    <td class=\"tabstat\"><input name=\"newmail\" type=\"text\" id=\"newmail\" size=\"45\" maxlength=\"40\" value=\"".$_POST['newmail']."\" />
                    </td>
                  </tr>
                  <tr>
                    <td colspan=\"2\" class=\"tabstat\"><div align=\"center\" class=\"testo12\">
                        <input name=\"step\" type=\"hidden\" id=\"step\" value=\"3\" />
                        <input name=\"prosegui\" type=\"button\" class=\"pulsinvia\" value=\"".avanti_form."\" onClick=\"convalida();\" />
                          </div></td>
                  </tr>
                  </form>
                </table>";
                }else if(strlen(trim($_POST['newuser']))>20 || strlen(trim($_POST['newmail']))>40 || strlen(trim($_POST['newpsw']))>20){
                echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
                  <tr>
                    <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".errore."</strong></div></td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><span class=\"testo12\">".err_lunghezza.".</span></td>
                  </tr>
                </table><br />
                <table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
                <form action=\"registrazione.php\" method=\"post\" name=\"registra\">
                  <tr>
                    <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".inserisci_dati.":</strong></div></td>
                  </tr>
                  <tr>
                    <td width=\"35%\" class=\"tabstat\"><div align=\"right\" class=\"testo12\"><span class=\"testo12\">".username.":</span></div></td>
                    <td width=\"65%\" class=\"tabstat\"><input name=\"newuser\" type=\"text\" id=\"newuser\" size=\"45\" maxlength=\"20\" value=\"".$_POST['newuser']."\" /></td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".password.":</div>
                    </td>
                    <td class=\"tabstat\"><input name=\"newpsw\" type=\"password\" id=\"newpsw\" size=\"45\" maxlength=\"20\" />
                    </td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".cpassword.":</div></td>
                    <td class=\"tabstat\"><input name=\"newcpsw\" type=\"password\" id=\"newcpsw\" size=\"45\" maxlength=\"20\" /></td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".email.":</div>
                    </td>
                    <td class=\"tabstat\"><input name=\"newmail\" type=\"text\" id=\"newmail\" size=\"45\" maxlength=\"40\" value=\"".$_POST['newmail']."\" />
                    </td>
                  </tr>
                  <tr>
                    <td colspan=\"2\" class=\"tabstat\"><div align=\"center\" class=\"testo12\">
                        <input name=\"step\" type=\"hidden\" id=\"step\" value=\"3\" />
                        <input name=\"prosegui\" type=\"button\" class=\"pulsinvia\" value=\"".avanti_form."\" onClick=\"convalida();\" />
                          </div></td>
                  </tr>
                  </form>
                </table>";
                }else{
                echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
                <form action=\"registrazione.php\" method=\"post\" enctype=\"multipart/form-data\" name=\"registra\">
                  <tr>
                    <td colspan=\"2\" class=\"tabstat\"><div class=\"testo12\"><strong>".profilo.":</strong></div></td>
                  </tr>
                  <tr>
                    <td width=\"35%\" class=\"tabstat\"><div align=\"right\" class=\"testo12\"><span class=\"testo12\">".luogo.":</span></div></td>
                    <td width=\"65%\" class=\"tabstat\"><input name=\"luogo\" type=\"text\" id=\"luogo\" size=\"45\" /></td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".homepage.":</div>
                    </td>
                    <td class=\"tabstat\"><input name=\"sito\" type=\"text\" id=\"sito\" size=\"45\" />
                    </td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><div align=\"right\">MSN:</div></td>
                    <td class=\"tabstat\"><input name=\"msn\" type=\"text\" size=\"45\" /></td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><div align=\"right\">ICQ:</div></td>
                    <td class=\"tabstat\"><input name=\"icq\" type=\"text\" size=\"45\" /></td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><div align=\"right\">AIM:</div></td>
                    <td class=\"tabstat\"><input name=\"aim\" type=\"text\" size=\"45\" /></td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><div align=\"right\">Yahoo:</div></td>
                    <td class=\"tabstat\"><input name=\"yahoo\" type=\"text\" size=\"45\" /></td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><div align=\"right\">Skype:</div></td>
                    <td class=\"tabstat\"><input name=\"skype\" type=\"text\" size=\"45\" /></td>
                  </tr>
                    <tr>
                    <td class=\"tabstat\"><div align=\"right\" class=\"testo12\">".nascita.":</div></td>
                    <td class=\"tabstat\"><span class=\"testo11\">".giorno.":
                      <select name=\"nascitagiorno\"> ".select_giorni('')."</select>
                      ".mese.": <select name=\"nascitamese\">".select_mesi('')."</select>
                        ".anno.":
                        <select name=\"nascitaanno\"> ".select_anni('')."</select></span></td>
                  </tr>
                  <tr>
                    <td valign=\"top\" class=\"tabstat\"><div align=\"right\" class=\"testo12\">".firma.":<br /><span class=\"testo10\">(".firma_max.": ".$arr_impostazioni['maxfirma'].")</span></div></td>
                    <td class=\"tabstat\"><textarea name=\"firma\" cols=\"40\" rows=\"5\" id=\"firma\" onKeyDown=\"if(this.value.length>".$arr_impostazioni['maxfirma'].")this.value=this.value.substr(0,".$arr_impostazioni['maxfirma'].")\"></textarea></td>
                  </tr>
                  <tr>
                    <td colspan=\"2\" class=\"tabstat\"><div align=\"center\" class=\"testo12\">
                        <input name=\"step\" type=\"hidden\" id=\"step\" value=\"4\" />
                        <input name=\"newuser\" type=\"hidden\" value=\"".$_POST['newuser']."\" />
                        <input name=\"newpsw\" type=\"hidden\" value=\"".$_POST['newpsw']."\" />
                        <input name=\"newmail\" type=\"hidden\" value=\"".$_POST['newmail']."\" />
                        <input type=\"submit\" class=\"pulsinvia\" value=\"".prosegui_form."\" />
                          </div></td>
                  </tr>
                  </form>
                </table>";
                }
                }
                }else if($step==4){ //STEP 4 ---------------------------------------------------------------------
                define('titolo_pagina',' - '.registrazione_titolo3);
                $_POST['newmail']=togli_char_spec($_POST['newmail']);
                $_POST['newuser']=togli_char_spec($_POST['newuser']);
                $_POST['firma']=togli_char_spec($_POST['firma']);
                $_POST['luogo']=togli_char_spec($_POST['luogo']);
                $_POST['sito']=togli_char_spec($_POST['sito']);
                $_POST['msn']=togli_char_spec($_POST['msn']);
                $_POST['icq']=togli_char_spec($_POST['icq']);
                $_POST['aim']=togli_char_spec($_POST['aim']);
                $_POST['yahoo']=togli_char_spec($_POST['yahoo']);
                $_POST['skype']=togli_char_spec($_POST['skype']);
                 
                if(trim($_POST['firma'])!=""){
                $firma=mysql_escape_string($_POST['firma']);
                }
                $codice = md5(microtime());
                quera("INSERT INTO ".$tblprefix."users (nome,psw,ip,mail,attivazione,firma,datareg,nascita_g,nascita_m,nascita_a,luogo,sito,msn,icq,aim,yahoo,skype)
                 VALUES ('".mysql_escape_string($_POST['newuser'])."','".md5($_POST['newpsw'])."','".$_SERVER['REMOTE_ADDR']."','".mysql_escape_string($_POST['newmail'])."','$codice','$firma','".time()."','".$_POST['nascitagiorno']."','".$_POST['nascitamese']."','".$_POST['nascitaanno']."','".mysql_escape_string($_POST['luogo'])."','".mysql_escape_string($_POST['sito'])."','".mysql_escape_string($_POST['msn'])."','".mysql_escape_string($_POST['icq'])."','".mysql_escape_string($_POST['aim'])."','".mysql_escape_string($_POST['yahoo'])."','".mysql_escape_string($_POST['skype'])."')");
                quera("UPDATE ".$tblprefix."stats SET tot_users=tot_users+1, ultimo_userid='".mysql_insert_id()."'");
                $link = 'http://'.$_SERVER['SERVER_NAME'].'/forum/attiva.php?act='.$codice;
                $corpo=mail_benvenuto." ".$_POST['newuser'].",\n\n".'Per attivare il tuo account devi visitare il seguente link: <a href="'.$link.'">'.$link.'</a>'.mail_reg_completata."!\n\n
                ".mail_staff."! :)\n\n\n".$arr_impostazioni['urlforum'];
                mandamail($_POST['newmail'],$arr_impostazioni['titoloforum']." - ".mail_oggetto."!",$corpo);
                define('in_reg_step4','si');
                require_once "header.php";
                echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
                  <tr>
                    <td width=\"100%\" class=\"tabstat\"><span class=\"testo12\">".mail_benvenuto." <strong>".$_POST['newuser']."</strong>, ".mail_reg_completata."!<br />
                      <br />
                      ".ora_puoi.".<br />
                      ".puoi_modificare.".</span> <img src=\"img/empty.gif\" border=\"0\" onload=\"concalma('index.php','4000');\" /></td>
                  </tr>
                </table>";
                }else{ //STEP 1 ---------------------------------------------------------------------
                define('titolo_pagina',' - '.registrazione_titolo4);
                require_once "header.php";
                echo "<table width=\"880\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"1\" class=\"tabcat\">
                  <tr>
                    <td class=\"tabstat\"><div class=\"testo12\"><strong>".regolamento.":</strong></div></td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><span class=\"testo12\">1) ".regola1.".<br /><br />
                            2) ".regola2.".<br /><br />
                            3) ".regola3.".<br /><br />
                            4) ".regola4.".<br /><br />
                            5) ".regola5.".<br /><br />
                            6) ".regola6.".<br /><br />
                            7) ".regola7.".</span></td>
                  </tr>
                  <tr>
                    <td class=\"tabstat\"><div align=\"center\" class=\"testo12\">
                        <input name=\"prosegui\" type=\"button\" class=\"pulsinvia\" onClick=\"window.location='registrazione.php?step=2'\" value=\" ".accetto_form." \" />
                          </div></td>
                  </tr>
                </table>";
                }
                }
                if($_GET['debug']=="y"){ debugging(); }
                require_once "copy.php";
                ?>
                
                1 Risposta Ultima Risposta
                Miglior risposta 0
                0
                • G
                  G
                  giulio3x
                  scritto su ultima modifica di
                  User Attivo 0
                  #64

                  si arriva con anche il link;), è un po confusionata dove bisogna agire per scriverla meglio?

                  1 Risposta Ultima Risposta
                  Miglior risposta 0
                  0
                  • T
                    T
                    thedarkita
                    ModSenior
                    scritto su ultima modifica di
                    Super User 70
                    #65

                    Il problema è quello... non sò dove si trovano le costanti...
                    forse sono qua:
                    lang/it/registrazione.php
                    vedi se li c'è il testo dei messaggi e te li personalizzi come vuoi...

                    1 Risposta Ultima Risposta
                    Miglior risposta 0
                    0
                    • G
                      G
                      giulio3x
                      scritto su ultima modifica di
                      User Attivo 0
                      #66

                      Thedarkita

                      Il problema è quello... non sò dove si trovano le costanti...
                      forse sono qua:
                      lang/it/registrazione.php
                      vedi se li c'è il testo dei messaggi e te li personalizzi come vuoi...

                      esatto questa volta però c'ero arrivato prima di te e l'avevo già fatto!

                      adesso cosa bisogna fare creare una cartella in ftp con il nome attiva?

                      1 Risposta Ultima Risposta
                      Miglior risposta 0
                      0
                      • T
                        T
                        thedarkita
                        ModSenior
                        scritto su ultima modifica di
                        Super User 70
                        #67

                        crea un file attiva.php

                        <?php
                        require_once "includes/config.php";
                        require_once "includes/mysql_connect.php";
                        require_once "includes/getsett.php";
                        require_once "includes/funzioni.php";
                        require_once "includes/funzioni_testi.php";
                        
                        $act = (isset($_GET['act'])) ? $_GET['act'] : '';
                        if (!get_magic_quotes_gpc())
                                $act = addslashes($act);
                        
                        if(strlen($act) != 32)
                        die('Link non valido<br><a href="/forum/">Vai al forum</a>');
                        $q = quera("SELECT * FROM ".$tblprefix."users WHERE attivazione = '$act' LIMIT 1)
                         ;
                        if(mysql_num_rows($q) == 0)
                        {
                        echo 'Link non valido<br><a href="/forum/">Vai al forum</a>';
                        }
                        else
                        {
                        quera("UPDATE ".$tblprefix."users SET attivazione = '1' WHERE attivazione = '$act' LIMIT 1)
                         ;
                        echo 'Account Attivato<br><a href="/forum/">Vai al forum</a>';
                        }
                        

                        vedi se funziona... ho meso dei semplci imessaggi se vuoi possiam ofare che sempre nella home del froum mostri un errore, oppure i fai la grafica tu separata... come preferisci...

                        intanto testa se funziona 😉

                        1 Risposta Ultima Risposta
                        Miglior risposta 0
                        0
                        • G
                          G
                          giulio3x
                          scritto su ultima modifica di
                          User Attivo 0
                          #68

                          mi dà errore:

                          Parse error: syntax error, unexpected T_STRING in /membri/globalmeteo/forum/attiva.php on line 22

                          1 Risposta Ultima Risposta
                          Miglior risposta 0
                          0
                          • T
                            T
                            thedarkita
                            ModSenior
                            scritto su ultima modifica di
                            Super User 70
                            #69
                            <?php
                            require_once "includes/config.php";
                            require_once "includes/mysql_connect.php";
                            require_once "includes/getsett.php";
                            require_once "includes/funzioni.php";
                            require_once "includes/funzioni_testi.php";
                            
                            $act = (isset($_GET['act'])) ? $_GET['act'] : '';
                            if (!get_magic_quotes_gpc())
                                    $act = addslashes($act);
                            
                            if(strlen($act) != 32)
                            die('Link non valido<br><a href="/forum/">Vai al forum</a>');
                            $q = quera("SELECT * FROM ".$tblprefix."users WHERE attivazione = '$act' LIMIT 1")
                             ;
                            if(mysql_num_rows($q) == 0)
                            {
                            echo 'Link non valido<br><a href="/forum/">Vai al forum</a>';
                            }
                            else
                            {
                            quera("UPDATE ".$tblprefix."users SET attivazione = '1' WHERE attivazione = '$act' LIMIT 1")
                             ;
                            echo 'Account Attivato<br><a href="/forum/">Vai al forum</a>';
                            } 
                            ?>
                            
                            1 Risposta Ultima Risposta
                            Miglior risposta 0
                            0
                            • G
                              G
                              giulio3x
                              scritto su ultima modifica di
                              User Attivo 0
                              #70

                              funziona! si vede che sei un grande nel php!:D;)

                              1 Risposta Ultima Risposta
                              Miglior risposta 0
                              0
                              • G
                                G
                                giulio3x
                                scritto su ultima modifica di
                                User Attivo 0
                                #71

                                adesso viene una parte difficile per me, riuscire a cancellare tutti gli utenti di prova senza cancellare tutto nel database ⭕x

                                1 Risposta Ultima Risposta
                                Miglior risposta 0
                                0
                                • T
                                  T
                                  thedarkita
                                  ModSenior
                                  scritto su ultima modifica di
                                  Super User 70
                                  #72

                                  😉

                                  adesso rimane un unico problema legato alla sicurezza, perchè il forum usa i cookie volendo si potrebbe scavalcare il login, e quindi postare con un account inattivo manomettendo i cookie...

                                  modifica cosi il file includes/getsett.php:

                                  <?php
                                  require_once "config.php";
                                  require_once "mysql_connect.php";
                                  require_once "funzioni.php";
                                  
                                  # Versione deForum #
                                  define('versione_deForum','2.0.4');
                                  define('versione_code','204');
                                  # ---------------- #
                                  
                                  /////// Recupera le info dell'utente ///////
                                  if(isset($_COOKIE['denome']) && isset($_COOKIE['depsw']) && strlen($_COOKIE['depsw'])==32){
                                      $q_esisteuser=quera("SELECT id,mail,livello,bannato,firma,ultima_visita,notifica,attivazione FROM ".$tblprefix."users WHERE nome='".$_COOKIE['denome']."' AND psw='".$_COOKIE['depsw']."' LIMIT 1");
                                      if(mysql_num_rows($q_esisteuser)==1){
                                          define("user_esistente","si");
                                          $arr_info_user=mysql_fetch_assoc($q_esisteuser);
                                          define('my_id',$arr_info_user['id']);
                                          define('my_name',$_COOKIE['denome']);
                                          define('my_email',$arr_info_user['mail']);
                                          define('my_level',$arr_info_user['livello']);
                                          define('my_firma',$arr_info_user['firma']);
                                          define('my_ultima_visita',$arr_info_user['ultima_visita']);
                                          define('my_default_notifica',$arr_info_user['notifica']);
                                          if($arr_info_user['bannato']=="1"){
                                              define("my_bannato","si");
                                          }
                                          if($arr_info_user['attivazione'] != '1'
                                  die('Attiva l'account');
                                      }else{
                                          define("user_esistente","no");
                                      }
                                  }else{
                                      define("user_esistente","no");
                                  }
                                  ///////------------------------------///////
                                  
                                  $q_impostazioni=quera("SELECT * FROM ".$tblprefix."impostazioni");
                                  $arr_impostazioni=mysql_fetch_assoc($q_impostazioni);
                                  
                                  $estens=explode(",",str_replace(" ","",$arr_impostazioni['estensioniallegati']));
                                  
                                  if($arr_impostazioni['offline']=="1" && my_level!="2"){
                                      die ("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
                                      <html xmlns=\"http://www.w3.org/1999/xhtml\"><title>".$arr_impostazioni['titoloforum']."</title>
                                      <link href=\"css/".$arr_impostazioni['stilecss']."\" rel=\"stylesheet\" type=\"text/css\" />
                                      </head>
                                      <body><p class=\"testo13\" align=\"center\"><br /><br />
                                      ".nl2br($arr_impostazioni['messaggio_offline']).".<br /><br />
                                      <strong>".$arr_impostazioni['titoloforum']."</strong></p>
                                      </body></html>");
                                  }
                                  
                                  if($arr_impostazioni['setlivelli']=="1"){
                                      $q_livelli_utenti=quera("SELECT * FROM ".$tblprefix."livelli ORDER BY nposts");
                                      if(mysql_num_rows($q_livelli_utenti)>=1){
                                          unset($arr_nomi_livelli,$arr_img_livelli,$arr_nposts_livelli);
                                          while($arr_livelli_utenti=mysql_fetch_assoc($q_livelli_utenti)){
                                          $arr_nomi_livelli[]=$arr_livelli_utenti['nome'];
                                          $arr_img_livelli[]=$arr_livelli_utenti['immagine'];
                                          $arr_nposts_livelli[]=$arr_livelli_utenti['nposts'];
                                          }
                                      }
                                  }
                                  ?>
                                  

                                  con questo dovremmo aver finito 😄

                                  1 Risposta Ultima Risposta
                                  Miglior risposta 0
                                  0
                                  • T
                                    T
                                    thedarkita
                                    ModSenior
                                    scritto su ultima modifica di
                                    Super User 70
                                    #73

                                    Per azzerarlo oltre la tabella con gli utenti, mi apre ci fosse una tabella che teneva conto delle statistiche, secondo me ti conviene cancellare l'intero database ripetere l'installazione coi file modificati, ed aggiungere il campo attivazione nella tabella. Cosi stai sicuro che non ci sia qualche sbaglio e hai il database bello pulito 😄

                                    1 Risposta Ultima Risposta
                                    Miglior risposta 0
                                    0
                                    • G
                                      G
                                      giulio3x
                                      scritto su ultima modifica di
                                      User Attivo 0
                                      #74

                                      mah non so se mi conviene dove dovrei agire senno?

                                      1 Risposta Ultima Risposta
                                      Miglior risposta 0
                                      0
                                      • T
                                        T
                                        thedarkita
                                        ModSenior
                                        scritto su ultima modifica di
                                        Super User 70
                                        #75

                                        dal phpmyadmin devi svuotare la tabella utenti
                                        dopo in una tabella che non mi ricordo qual'è se non sbaglio, veniva incrementato il numero di utenti registrati, e quindi dovresti ridurre il valore...
                                        se ha generato altro su altre tabelle non ci ho fatto caso...

                                        1 Risposta Ultima Risposta
                                        Miglior risposta 0
                                        0
                                        • G
                                          G
                                          giulio3x
                                          scritto su ultima modifica di
                                          User Attivo 0
                                          #76

                                          Thedarkita

                                          dal phpmyadmin devi svuotare la tabella utenti
                                          dopo in una tabella che non mi ricordo qual'è se non sbaglio, veniva incrementato il numero di utenti registrati, e quindi dovresti ridurre il valore...
                                          se ha generato altro su altre tabelle non ci ho fatto caso...

                                          proverò a reinstallare tutto allora sperando di riuscire di nuovo a creare la tabella attivazione...

                                          senti una cosa, vorrei ora fare una cosa l'ultima...

                                          gli utenti online compaiono sono sulle statistiche come faccio io a mettere come anche in qusto forum giorgitave la scritta online e offline sotto magari al nick di ogni messaggio dell'utente? su che file devo agire?

                                          1 Risposta Ultima Risposta
                                          Miglior risposta 0
                                          0

                                          Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.

                                          Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.

                                          Con il tuo contributo, questo post potrebbe essere ancora migliore 💗

                                          Registrati Accedi
                                          Rispondi
                                          • Risposta alla discussione
                                          Effettua l'accesso per rispondere
                                          • Da Vecchi a Nuovi
                                          • Da Nuovi a Vecchi
                                          • Più Voti


                                          • Accedi

                                          • Non hai un account? Registrati

                                          • Accedi o registrati per effettuare la ricerca.
                                          • Primo post
                                            Ultimo post
                                          Home Accedi Registrati
                                          Menu
                                          • CATEGORIES
                                          • La Community Connect.gt
                                          • Presentati alla Community
                                          • News Ufficiali da Connect.gt
                                          • Internet News
                                          • A Scuola Di
                                          • Digital Marketing
                                          • Intelligenza Artificiale
                                          • SEO & GEO
                                          • Web Marketing e Content
                                          • Google Analytics e Web Analytics
                                          • Google Ads & Advertising
                                          • YouTube
                                          • TikTok, Instagram e altri Social
                                          • Google Adsense, Affiliazioni e Guadagno
                                          • E-Commerce
                                          • Coding e Sistemistica
                                          • Help Center: consigli per il tuo progetto
                                          • Hosting e Cloud
                                          • Coding
                                          • CMS & Piattaforme Self-Hosted
                                          • Annunci e Collaborazioni
                                          • Annunci Vendita e Acquisto: Pubblicità, Domini, Link e altro
                                          • Collaborazioni WEB e Lavoro: offro e cerco
                                          • Impresa, Fisco e Leggi
                                          • Consulenza Legale e Professioni Web
                                          • Consulenza Fiscale, Imprese, Startup e P.Iva
                                          • Gli Off Topic
                                          • PC, Smartphone e altri Hardware
                                          • Tutti i Software
                                          • GT Fetish Cafè
                                          • Discussioni
                                          • Non letti 0
                                          • Recenti
                                          • Hashtag
                                          • Popolare
                                          • Utenti
                                          • Privacy
                                          • Termini e condizioni
                                          • © 2026 Search On Media Group S.r.l.