正如標題所言織夢dedecms會員注冊成功后,直接跳轉到驗證的郵箱地址,按照下面的驗證即可實現(xiàn)郵箱驗證,有類似需求的朋友不要錯過
打開members下templets下reg-new3.htm這段代碼:
代碼如下:
<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">由于系統(tǒng)開啟了郵件審核機制,因此你的帳號需要審核后才能發(fā)信息!</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> <a href="<?php echo $cfg_cmspath; ?>/">返回網(wǎng)站首頁</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);
}
}
即可實現(xiàn)郵箱驗證