dede开启邮件验证

2019-06-19  本文已影响0人  第二梦喵将

发送邮件的邮箱设置:
http://www.dede58.com/a/dedesp/1637.html

页面内代码修改:(参考https://blog.csdn.net/zhaoerduo/article/details/16883667,有修改)
1. member/templetes/reg-new3.htm:
<a href="<?php echo $cfg_cmspath; ?>/member/index_do.php?fmdo=email_tiao&email=<?php echo $email;?>" target="_blank">邮箱验证</a>
2. member/index_do.php:
 $url="";里的url需要自己补全,最后的
else
{
    ShowMsg("本页面禁止返回!","index.php");
}
替换为
else if($fmdo=='email_tiao')
{
    $email=$_GET['email'];
    $email_arr=explode("@",$email);
    $email_b=$email_arr[1];
    if($email_b=='qq.com'){
        $url="http://mail.qq.com";
        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'){
        $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);
    }
}
else
{
    ShowMsg("本页面禁止返回!","index.php");
}

上一篇下一篇

猜你喜欢

热点阅读