X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fmailmgr.php;h=e3a970c3c713d76cc91ffc3b2bcb279ed99bb7a5;hb=b07b702ce4c2f769d4bb948d9f95f660c21baf73;hp=5ea14b64d751ffdd03ecac31871d82fd82cb6354;hpb=7f526939ded24298104cacd02b5f364bcc7bfa56;p=brisk.git diff --git a/web/mailmgr.php b/web/mailmgr.php index 5ea14b6..e3a970c 100644 --- a/web/mailmgr.php +++ b/web/mailmgr.php @@ -22,6 +22,19 @@ * */ +foreach (array("HTTP_HOST", "DOCUMENT_ROOT") as $i) { + if (isset($_SERVER[$i])) { + $$i = $_SERVER[$i]; + } + } + +foreach (array("f_act", "f_code", "f_hash") as $i) { + if (isset($_GET[$i])) { + $$i = $_GET[$i]; + } + } + + $G_base = ""; ini_set("max_execution_time", "240"); @@ -72,12 +85,18 @@ function main() { } $bdb->transaction('COMMIT'); - singlemsg("Verifica della e-mail andata a buon fine.", "Verifica della e-mail andata a buon fine."); + singlemsg("Verifica della e-mail andata a buon fine.", "Verifica della e-mail andata a buon fine.
Riceverai a breve una email con la tua nuova password.
Benvenuto!"); $errcode = 0; } while (FALSE); if ($errcode) { - singlemsg("E' occorso un errore durante la verifica della e-mail.", - sprintf("E' occorso un errore durante la verifica della e-mail.

Codice d'errore: %d.
", $errcode)); + if ($errcode == 10002) { + singlemsg("L'email è già stata verificata con successo.", + "L'email è già stata verificata con successo, ora attenda che le venga recapitata la password."); + } + else { + singlemsg("E' occorso un errore durante la verifica della e-mail.", + sprintf("E' occorso un errore durante la verifica della e-mail.

Codice d'errore: %d.
", $errcode)); + } $bdb->transaction('ROLLBACK'); } } @@ -86,4 +105,4 @@ function main() { } main(); -?> \ No newline at end of file +?>