fetch($member['uid']), $member); } if($_G['setting']['regverify'] == 2) { showmessage('register_verify_invalid'); } list($dateline, $type, $idstring) = explode("\t", $member['authstr']); if($type == 2 && TIMESTAMP - $dateline < 86400) { showmessage('email_verify_invalid'); } $idstring = $type == 2 && $idstring ? $idstring : random(6); C::t('common_member_field_forum')->update($_G['uid'], array('authstr'=>"$_G[timestamp]\t2\t$idstring")); $verifyurl = "{$_G[siteurl]}member.php?mod=activate&uid={$_G[uid]}&id=$idstring"; $email_verify_message = lang('email', 'email_verify_message', array( 'username' => $_G['member']['username'], 'bbname' => $_G['setting']['bbname'], 'siteurl' => $_G['siteurl'], 'url' => $verifyurl )); include_once libfile('function/mail'); if(!sendmail("{$_G[member][username]} <$_GET[email]>", lang('email', 'email_verify_subject'), $email_verify_message)) { runlog('sendmail', "$_GET[email] sendmail failed."); } showmessage('email_verify_succeed'); ?>