<?php require_once('includes/mailcertify.inc.php'); $code=TGET('activationcode'); $DBConn->connect(); $mailinfo=mailcertify_use_code($DBConn,$code); if ($mailinfo && db_validate_member_email($DBConn,$mailinfo['mb_id'],$mailinfo['email'])) { if (!db_load_member_notifiable($DBConn,$mailinfo['mb_id'])) db_set_member_notifying_email($DBConn,$mailinfo['mb_id'],$mailinfo['email']); header("Location: ./member.email.activate.result?status=ok"); } else header("Location: ./member.email.activate.result?status=fail"); ?>