<?php
/**
* @Author Tarchini Maurizio
* @Version 1.0
* @AuthorEmail hide@address.com or hide@address.com
* @AuthorSite http://www.mtxweb.ch
* @DocumentDate 26-2-2008
* @DocumentLicense PUBLIC -FREE
* @LicenseDetail GNU General Public License
* @LicenseSite http://www.gnu.org/licenses/gpl.txt
* @PHPCompatibility 4.2 or later
* @DevelopmentStatus DIST - beta
*/
include_once "./lib/function_page.php";
include_once "./lib/function_db.php";
include_once "config.php";
PageIn();
echo '<h1>Area utenti: VERIFICA</h1><br><br>
';
BoxIn(450);
$sql = "SELECT * FROM users WHERE code='$_GET[code]'";
$res = GetRes($sql);
if ($row = mysql_fetch_array($res))
{
$query = "UPDATE users SET status=1 WHERE code='$_GET[code]'";
QueryExec($query);
include_once "./class/PHPMailer/class.phpmailer.php";
$mail = new PHPMailer();
$mail->From = $frommail;
$mail->FromName = $from;
$mail->Subject = $verify_sub;
$mail->Body = $verify_message;
$mail->Sender = $sender;
$mail->AddAddress ("$row[email]");
$mail->Send();
echo '<b>COMPLIMENTI</b><br><br>
Il tuo profilo è ora attivo. Non ti resta che eseguire il <a href="login.php">login</a>.<br><br>
Una volta eseguito il login verrai "ricordato" per circa un mese; Dopo questo periodo, per ragioni di sicurezza, ti verrà richiesto nuovamente di loggarti.<br><br>
Vai nella sezione profilo e personalizza il tuo account.';
}
else
{
echo '<b>IMPOSSIBILE VERIFICARE</b><br><br>
Questo messaggio indica un comportamento inaspettato.<br><br>
Contattare l\'amministratore di MtxEventManager <a href="mailto:' . $sender . '">' . $sender . '</a>
<br>indicando il nome utente e l\'email scelto.';
}
BoxOut();
PageOut();
?>