dedecms会员注册成功后直接跳转到验证的邮箱地址

2024-11-25 69阅读 0评论
打开members下templets下reg-new3.htm这段代码: 

复制代码
代码如下:

<div ><div ></div> 
<p >注册成功!<?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">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=='vip.163.com'){ 
$url="http://vip.163.com/?b10bpj1yhsy"; 
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=='vip.sina.com'){ 
$url="http://mail.sina.com.cn/cgi-bin/viplogin.php"; 
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=='tom.com'){ 
echo '走QQ邮箱了'; 
$url="http://pass.tom.com/login.php?err=1&svcid=47&backurl=http%3A%2F%2Ftom.com%2F"; 
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000); 

else if($email_b=='163.net'){ 
$url="http://mail.163.net/"; 
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000); 

else if($email_b=='263.net'){ 
$url="http://mail.263.net/"; 
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000); 

else if($email_b=='21cn.com'){ 
$url="http://public.webmail.21cn.com/"; 
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000); 

else if($email_b=='yahoo.com.cn'){ 
$url=""; 
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000); 

else if($email_b=='126.com'){ 
$url="http://mail.126.com/"; 
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000); 

else if($email_b=='eyou.com'){ 
$url="http://www.eyou.com/"; 
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000); 

else if($email_b=='xinhuanet.com'){ 
$url="http://mail.xinhuanet.com/portal/mail.xinhuanet.com/index.jsp?locale=zh_cn"; 
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000); 

else if($email_b=='hotmail.com'){ 
$url=""; 
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000); 

else if($email_b=='msn.com'){ 
$url=""; 
ShowMsg("请稍等,5秒钟后转向登录邮箱主页...",$url,0,2000); 


即可实现邮箱验证 
文章版权声明:除非注明,否则均为奥多云原创文章,转载或复制请以超链接形式并注明出处。

发表评论

快捷回复: 表情:
评论列表 (暂无评论,69人围观)

还没有评论,来说两句吧...

取消
微信二维码
微信二维码
支付宝二维码