修改/e/member/class/member_registerfun.php文件

代码如下:

//审核
if($checked==0)
{
$location=DoingReturnUrl("../../",$_POST['ecmsfrom']);
printerror("RegisterSuccessCheck",$location,1);
}
$logincookie=0;
if($ecms_config['member']['regcookietime'])
{
$logincookie=time()+$ecms_config['member']['regcookietime'];
}
$r=$empire->fetch1("select ".eReturnSelectMemberF('*')." from ".eReturnMemberTable()." where ".egetmf('userid')."='$userid' limit 1");
$set1=esetcookie("mlusername",$username,$logincookie);
$set2=esetcookie("mluserid",$userid,$logincookie);
$set3=esetcookie("mlgroupid",$groupid,$logincookie);
$set4=esetcookie("mlrnd",$rnd,$logincookie);
//验证符
qGetLoginAuthstr($userid,$username,$rnd,$groupid,$logincookie);
//登录附加cookie
AddLoginCookie($r);
    
    
    
if($groupid==1)
{
$location="地址1";
}
elseif($groupid==2)
{
$location="地址2";
}
    
    
$returnurl=getcvar('returnurl');
if($returnurl&&!strstr($returnurl,"e/member/iframe")&&!strstr($returnurl,"e/member/register")&&!strstr($returnurl,"enews=exit"))
{
$location=$returnurl;
}
$set5=esetcookie("returnurl","");
//易通行系统
DoEpassport('reg',$userid,$username,$truepassword,$salt,$email,$groupid,$registertime);
$location=DoingReturnUrl($location,$_POST['ecmsfrom']);
printerror("RegisterSuccess",$location,1);
}
else
{printerror("DbError","history.go(-1)",1);}
}
?>
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。