1, the first step
source/admincp/admincp_setting.php file
$setting [' Sendregisterurl '], ' radio ');
Under this code, add the following:
$setting [' Forgeemail '], ' radio ');
2. Second step open source/language/lang_admincp.php file search:
One mailbox allows only one account to be registered <br/> Note: only in <a href= "? Action=setting&operation=mail" > Webmaster – mail settings </a> complete mail settings, Ensure that the message can be sent successfully to enable this feature
' Setting_access_register_forge_email ' = ' Cancel registered email must be filled ', ' setting_access_register_forge_email_comment ' and ' = ' After opening, if you do not fill in the registered mailbox, will automatically generate an email address ',
3, the third step:
source/class/class_member.php file$email=Strtolower(Trim($_get[' Email ']));if(Empty($this->setting[' Ignorepassword '])) {if($_get[' Password ']!==$_get[' Password2 ']) {showmessage (' Profile_passwd_notmatch ');}if(!$_get[' Password '] | |$_get[' password ']! =addslashes($_get[' Password ']) {showmessage (' Profile_passwd_illegal ');}$password=$_get[' Password '];} Else {$password=MD5(Random (10));}}
Switch
$email=Strtolower(Trim($_get[' Email ']));if(Empty($email) &&$_g[' Setting '] [' Forgeemail ']) {$_get[' email '] =$email=Strtolower(Random (6)). ' @‘.$_server[' Http_host '];}if(Empty($this->setting[' Ignorepassword '])) {if($_get[' Password ']!==$_get[' Password2 ']) {showmessage (' Profile_passwd_notmatch ');}if(!$_get[' Password '] | |$_get[' password ']! =addslashes($_get[' Password ']) {showmessage (' Profile_passwd_illegal ');}$password=$_get[' Password '];} Else {$password=MD5(Random (10));}}
DISNCUZX3.2 closing the registration email required option