$t->body(); $antispam = strtoupper($_POST['txtCaptcha']); if ($antispam != $antiCode) { print "Il codice di verifica non corrisponde, ritenta per favore."; } else{ if(isset($_POST['user'])){ $user=$_POST['user']; $mail=$_POST['mail']; $pwd=$_POST['pwd']; if(User::Register($user,$pwd,$mail,1,FALSE,TRUE)){ if(isset($_POST['newsletter'])) register_newsletter($mail); exit('Registrazione effettuata correttamente, dovresti ricevere un email di conferma per eseguire l\'attivazione effettiva del tuo account sull\'email specificata.'); } } else echo 'Impossibile registrarsi con i dati specificati!'; } if(islogged()){ exit('Sei già loggato come '.get_username().'!'); } ?>