A5下载程序插件

分类分类

会员注册邮箱验证插件 for 帝国CMS

会员注册邮箱验证插件 for 帝国CMS

大小:207 KB更新:2010/09/08

类别:ecms插件系统:Linux/2003/PHP

立即下载

说明

user.php文件在下载的附件中class文件下,


修改user.php文件

user.php文件就是你下载附件里的文件啦!
那个文件下面有这段代码:

function mail_zc($email,$username,$password){
//##########################################
$smtpserver = "218.95.******";//SMTP服务器
$smtpserverport =25;//SMTP服务器端口
$smtpusermail = "admin@abc3210.cn";//SMTP服务器的用户邮箱
$smtpemailto = $email;//发送给谁
$smtpuser = "*******@abc3210.cn";//SMTP服务器的用户帐号
$smtppass = "***********";//SMTP服务器的用户密码


修改成你自己的!


注册后看邮箱的效果:

要哦记得吧默认的会员组中的
注册需要审核  功能开启!

http://www.abc3210.cn/xz/yc/2009-03-27/52.html


关于邮箱验证:
你可以在e/class/user.php文件下增加下面的代码!

function eail_tis($error="",$gotourl="",$ecms=1){
        global $empire,$editor,$ecmslang,$public_r;
        if($editor==1){$a="../";}
        elseif($editor==2){$a="../../";}
        elseif($editor==3){$a="../../../";}
        else{$a="";}
        if(strstr($gotourl,"(")||empty($gotourl))
        {
                $gotourl_js="history.go(-1)";
                $gotourl="java script:history.go(-1)";
        }
        else
        {$gotourl_js="self.location.href='$gotourl';";}
        if(empty($error))
        {$error="DbError";}
        @include($a."../message/index.php");  
        $empire=null;
        exit();
    }

        //加入判断是否该邮箱为未注册的
        $eail=$empire->fetch1("select count(*) as email from ".$user_tablename." where email='".$email."'");
        if ($eail[email]!=0){
                eail_tis("该邮箱已注册过了,请使用其他的邮箱注册","history.go(-1)",1);
把代码加到468行左右那

 

精品推荐
开发者应用
同类推荐
      相关文章
      相关下载
      说两句网友评论
        我要跟贴
        取消
        推荐专题