雷火电竞-中国电竞赛事及体育赛事平台

歡迎來到入門教程網(wǎng)!

帝國cms

當(dāng)前位置:主頁 > CMS教程 > 帝國cms >

帝國cms實(shí)現(xiàn)會員注冊之后根據(jù)所在會員組轉(zhuǎn)向的方法

來源:本站原創(chuàng)|時間:2020-01-11|欄目:帝國cms|點(diǎn)擊:

帝國cms要實(shí)現(xiàn)會員注冊之后根據(jù)所在會員組轉(zhuǎn)向的能能,就需要修改/e/member/class/member_registerfun.php文件
 
找到第175行,修改成如下代碼:
 

復(fù)制代碼
代碼如下:
//審核
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);
//驗(yàn)證符
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","");
//易通行系統(tǒng)
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);}
}
?>

其中的:

復(fù)制代碼
代碼如下:
if($groupid==1)
{
$location="地址1";
}
elseif($groupid==2)
{
$location="地址2";
}

即為添加的跳轉(zhuǎn)代碼。

上一篇:帝國7.0偽靜態(tài)Apache的Rewrite設(shè)置方法

欄    目:帝國cms

下一篇:帝國CMS提示parse error syntax error的解決方法

本文標(biāo)題:帝國cms實(shí)現(xiàn)會員注冊之后根據(jù)所在會員組轉(zhuǎn)向的方法

本文地址:http://www.jygsgssxh.com/a1/diguocms/12481.html

網(wǎng)頁制作CMS教程網(wǎng)絡(luò)編程軟件編程腳本語言數(shù)據(jù)庫服務(wù)器

如果侵犯了您的權(quán)利,請與我們聯(lián)系,我們將在24小時內(nèi)進(jìn)行處理、任何非本站因素導(dǎo)致的法律后果,本站均不負(fù)任何責(zé)任。

聯(lián)系QQ:835971066 | 郵箱:835971066#qq.com(#換成@)

Copyright © 2002-2020 腳本教程網(wǎng) 版權(quán)所有