Dedecms membership registration jumps directly to the verification email

Generally, membership verification is required when dedecms is registered as a member. Therefore, the email address will be filled in during registration. After the registration is successful, the email address can be verified directly, but how about the member registration directly jump to the function of verifying the email address?
Open this code of reg-new3.htm under templates under members:

<div class="bor"><div class="<?php echo ($cfg_mb_reginfo == 'Y')? '' : 's';?>tip3"></div>
<p class="success" style="margin-top: 25px;">注册成功!<?php echo $uname=empty($uname)? '' : '您的用户名:<font color="#ff6600">'.$uname.'</font>,';?>您已成为本站的正式会员!
<?php if($cfg_mb_spacesta=="-10") echo '<font color="#ff6600">由于系统开启了邮件审核机制,因此你的帐号需要审核后才能发信息!</font>
';?>
<font color="#ff6600"><span id="loadtime" style=" font-weight:bold">10</span></font>秒钟后自动转到会员中心!
<a href="<?php echo $cfg_cmspath; ?>/member/index_do.php?fmdo=email_tiao&email=<?php echo $email;?>" target="_blank">立刻进入邮箱验证</a>
<a href="<?php echo $cfg_cmspath; ?>/member/">马上进入会员中心</a>&nbsp;&nbsp;<a href="<?php echo $cfg_cmspath; ?>/">返回网站首页</a></p></div>
点击立刻进入邮箱验证的时候,传值,到index_do.php,新建一个else if
else if($fmdo=='email_tiao')
{
    
    
$email=$_GET['email'];
$email_arr=explode("@",$email);
$email_b=$email_arr[1];
if($email_b=='qq.com'){
    
    
$url="?";
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000);
}
else if($email_b=='163.com'){
    
    
$url="http://mail.163.com/";
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000);
}
else if($email_b=='sina.com'){
    
    
$url="http://mail.sina.com.cn/";
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000);
}
else if($email_b=='sohu.com'){
    
    
$url="http://login.mail.sohu.com/";
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000);
}
else if($email_b=='126.com'){
    
    
$url="http://mail.126.com/";
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000);
}
}

You can register for different types of mailboxes. You can add any mailbox verification you want. If you don't want so many mailboxes, you can also delete them.

Guess you like

Origin blog.csdn.net/a9490489/article/details/103910354
Recommended