PHP头条
热点:

discuz email 已经被注册的解决办法


如果论坛不唯一邮箱太多,又不能挨个修改,只能通过程序解决,防止修改的密码的时候报错。具体修改如下:

找到:


$ucresult = uc_user_edit($discuz_user, $oldpassword, $newpassword, $emailnew, 0, $questionidnew, $answernew);

在上面增加


if($emailnew==$member[email]){$emailnew="";$emailnew1=$member[email];}else{$emailnew1=$emailnew;}

找到:


if($regverify == 1 && $adminid == 0 && $emailnew != $email && (($grouptype == 'member' && $adminid == 0) || $groupid == 8)) {

将其中的

$emailnew改为$emailnew1

www.phpzy.comtrue/php/27821.htmlTechArticlediscuz email 已经被注册的解决办法 如果论坛不唯一邮箱太多,又不能挨个修改,只能通过程序解决,防止修改的密码的时候报错。具体修改如下: 找到: $ucresult = uc_user_edit($discuz_user,...

相关文章

    暂无相关文章

PHP之友评论

今天推荐