TIMESTAMP - 86400) { $member = getuserbyuid($uid); $setarr = array('email'=>$email, 'emailstatus'=>'1'); if($_G['member']['freeze'] == 2) { $setarr['freeze'] = 0; } loaducenter(); $ucresult = uc_user_edit(addslashes($member['username']), '', '', $email, 1); if($ucresult == -8) { showmessage('email_check_account_invalid', '', array(), array('return' => true)); } elseif($ucresult == -4) { showmessage('profile_email_illegal', '', array(), array('return' => true)); } elseif($ucresult == -5) { showmessage('profile_email_domain_illegal', '', array(), array('return' => true)); } elseif($ucresult == -6) { showmessage('profile_email_duplicate', '', array(), array('return' => true)); } if($member['groupid'] == 8) { $membergroup = C::t('common_usergroup')->fetch_by_credits($member['credits']); $setarr['groupid'] = $membergroup['groupid']; } updatecreditbyaction('realemail', $uid); C::t('common_member')->update($uid, $setarr); C::t('common_member_validate')->delete($uid); dsetcookie('newemail', "", -1); showmessage('email_check_sucess', 'home.php?mod=spacecp&ac=profile&op=password', array('email' => $email)); } else { showmessage('email_check_error', 'index.php'); } ?>