正如標(biāo)題所言織夢(mèng)dedecms會(huì)員注冊(cè)成功后,直接跳轉(zhuǎn)到驗(yàn)證的郵箱地址,按照下面的驗(yàn)證即可實(shí)現(xiàn)郵箱驗(yàn)證,有類(lèi)似需求的朋友不要錯(cuò)過(guò)
打開(kāi)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;">注冊(cè)成功!<?php echo $uname=empty($uname)? '' : '您的用戶(hù)名:<font color="#ff6600">'.$uname.'</font>,';?>您已成為本站的正式會(huì)員!
<?php if($cfg_mb_spacesta=="-10") echo '<font color="#ff6600">由于系統(tǒng)開(kāi)啟了郵件審核機(jī)制,因此你的帳號(hào)需要審核后才能發(fā)信息!</font>
';?>
<font color="#ff6600"><span id="loadtime" style=" font-weight:bold">10</span></font>秒鐘后自動(dòng)轉(zhuǎn)到會(huì)員中心!
<a href="<?php echo $cfg_cmspath; ?>/member/index_do.php?fmdo=email_tiao&email=<?php echo $email;?>" target="_blank">立刻進(jìn)入郵箱驗(yàn)證</a>
<a href="<?php echo $cfg_cmspath; ?>/member/">馬上進(jìn)入會(huì)員中心</a> <a href="<?php echo $cfg_cmspath; ?>/">返回網(wǎng)站首頁(yè)</a></p></div>
點(diǎn)擊立刻進(jìn)入郵箱驗(yàn)證的時(shí)候,傳值,到index_do.php,新建一個(gè)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("請(qǐng)稍等,5秒鐘后轉(zhuǎn)向登錄郵箱主頁(yè)...",$url,0,2000);
}
else if($email_b=='163.com'){
$url="http://mail.163.com/";
ShowMsg("請(qǐng)稍等,5秒鐘后轉(zhuǎn)向登錄郵箱主頁(yè)...",$url,0,2000);
}
else if($email_b=='vip.163.com'){
$url="http://vip.163.com/?b10bpj1yhsy";
ShowMsg("請(qǐng)稍等,5秒鐘后轉(zhuǎn)向登錄郵箱主頁(yè)...",$url,0,2000);
}
else if($email_b=='sina.com'){
$url="http://mail.sina.com.cn/";
ShowMsg("請(qǐng)稍等,5秒鐘后轉(zhuǎn)向登錄郵箱主頁(yè)...",$url,0,2000);
}
else if($email_b=='vip.sina.com'){
$url="http://mail.sina.com.cn/cgi-bin/viplogin.php";
ShowMsg("請(qǐng)稍等,5秒鐘后轉(zhuǎn)向登錄郵箱主頁(yè)...",$url,0,2000);
}
else if($email_b=='sohu.com'){
$url="http://login.mail.sohu.com/";
ShowMsg("請(qǐng)稍等,5秒鐘后轉(zhuǎn)向登錄郵箱主頁(yè)...",$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("請(qǐng)稍等,5秒鐘后轉(zhuǎn)向登錄郵箱主頁(yè)...",$url,0,2000);
}
else if($email_b=='163.net'){
$url="http://mail.163.net/";
ShowMsg("請(qǐng)稍等,5秒鐘后轉(zhuǎn)向登錄郵箱主頁(yè)...",$url,0,2000);
}
else if($email_b=='263.net'){
$url="http://mail.263.net/";
ShowMsg("請(qǐng)稍等,5秒鐘后轉(zhuǎn)向登錄郵箱主頁(yè)...",$url,0,2000);
}
else if($email_b=='21cn.com'){
$url="http://public.webmail.21cn.com/";
ShowMsg("請(qǐng)稍等,5秒鐘后轉(zhuǎn)向登錄郵箱主頁(yè)...",$url,0,2000);
}
else if($email_b=='yahoo.com.cn'){
$url="";
ShowMsg("請(qǐng)稍等,5秒鐘后轉(zhuǎn)向登錄郵箱主頁(yè)...",$url,0,2000);
}
else if($email_b=='126.com'){
$url="http://mail.126.com/";
ShowMsg("請(qǐng)稍等,5秒鐘后轉(zhuǎn)向登錄郵箱主頁(yè)...",$url,0,2000);
}
else if($email_b=='eyou.com'){
$url="http://www.eyou.com/";
ShowMsg("請(qǐng)稍等,5秒鐘后轉(zhuǎn)向登錄郵箱主頁(yè)...",$url,0,2000);
}
else if($email_b=='xinhuanet.com'){
$url="http://mail.xinhuanet.com/portal/mail.xinhuanet.com/index.jsp?locale=zh_cn";
ShowMsg("請(qǐng)稍等,5秒鐘后轉(zhuǎn)向登錄郵箱主頁(yè)...",$url,0,2000);
}
else if($email_b=='hotmail.com'){
$url="";
ShowMsg("請(qǐng)稍等,5秒鐘后轉(zhuǎn)向登錄郵箱主頁(yè)...",$url,0,2000);
}
else if($email_b=='msn.com'){
$url="";
ShowMsg("請(qǐng)稍等,5秒鐘后轉(zhuǎn)向登錄郵箱主頁(yè)...",$url,0,2000);
}
}
即可實(shí)現(xiàn)郵箱驗(yàn)證