Home  >  Article  >  Backend Development  >  Solution to discuz email has been registered_PHP tutorial

Solution to discuz email has been registered_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:54:381131browse

If the forum has too many unique mailboxes and cannot modify them one by one, it can only be solved through a program to prevent errors when changing the password. The specific modifications are as follows:

Found:


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

Add

above


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

Found:


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

Replace

$emailnew changed to $emailnew1

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632311.htmlTechArticleIf the forum has too many unique mailboxes and cannot modify them one by one, it can only be solved through a program to prevent the password from being changed. time error. The specific modifications are as follows: Found: $ucresult = uc_user_ed...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn