X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fmailmgr.php;h=8d4e107455f822bc17debb427322b8fb2544e039;hb=8443d4399f04e0f45453490382bb0d6ccc927bec;hp=5613c3baecb238b47b4bea5e7c155f7c8cf511dc;hpb=31691c02c1802a699c4595448919cce161834c77;p=brisk.git diff --git a/web/mailmgr.php b/web/mailmgr.php index 5613c3b..8d4e107 100644 --- a/web/mailmgr.php +++ b/web/mailmgr.php @@ -59,9 +59,9 @@ function main() { break; } - if (($bdb->user_update_flag_ty($mai->ucode, - USER_FLAG_TY_DISABLE, USER_DIS_REA_NU_MAILED, - USER_FLAG_TY_DISABLE, USER_DIS_REA_NU_TOBECHK)) == FALSE) { + if (($bdb->user_update_flag_ty($mai->ucode, USER_FLAG_TY_DISABLE, + TRUE, USER_DIS_REA_NU_MAILED, + TRUE, USER_DIS_REA_NU_TOBECHK)) == FALSE) { $errcode = 10003; break; } @@ -72,12 +72,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'); } }