帝國(guó)cms實(shí)現(xiàn)會(huì)員注冊(cè)之后根據(jù)所在會(huì)員組轉(zhuǎn)向的方法
發(fā)布時(shí)間:2014-07-10 10:52:39 作者:佚名
我要評(píng)論

這篇文章主要為大家介紹了帝國(guó)cms實(shí)現(xiàn)會(huì)員注冊(cè)之后根據(jù)所在會(huì)員組轉(zhuǎn)向的方法,對(duì)于開發(fā)會(huì)員系統(tǒng)來(lái)說(shuō)非常有借鑒價(jià)值,需要的朋友可以參考下
帝國(guó)cms要實(shí)現(xiàn)會(huì)員注冊(cè)之后根據(jù)所在會(huì)員組轉(zhuǎn)向的能能,就需要修改/e/member/class/member_registerfun.php文件
找到第175行,修改成如下代碼:
其中的:
即為添加的跳轉(zhuǎn)代碼。
找到第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);}
}
?>
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";
}
{
$location="地址1";
}
elseif($groupid==2)
{
$location="地址2";
}
即為添加的跳轉(zhuǎn)代碼。
相關(guān)文章
帝國(guó)CMS實(shí)現(xiàn)內(nèi)容頁(yè)調(diào)用當(dāng)前會(huì)員信息及文章信息的方法
這篇文章主要為大家介紹了帝國(guó)CMS實(shí)現(xiàn)內(nèi)容頁(yè)調(diào)用當(dāng)前會(huì)員信息及文章信息的方法,對(duì)于進(jìn)行會(huì)員系統(tǒng)的開發(fā)來(lái)說(shuō)很有借鑒價(jià)值!需要的朋友可以參考下2014-07-09帝國(guó)CMS7.0實(shí)現(xiàn)記錄所有瀏覽訪問(wèn)的會(huì)員的方法
這篇文章主要為大家介紹了帝國(guó)CMS7.0實(shí)現(xiàn)記錄所有瀏覽訪問(wèn)的會(huì)員的方法,需要的朋友可以參考下2014-07-09帝國(guó)CMS多個(gè)系統(tǒng)的會(huì)員整合與二級(jí)域名之間的同步方法
帝國(guó)CMS系統(tǒng)本身已經(jīng)內(nèi)置良好的會(huì)員整合框架,所以多個(gè)帝國(guó)CMS會(huì)員整合是相當(dāng)容易的。下面我們舉例講解一下如何操作2013-12-12帝國(guó)cms調(diào)用會(huì)員排行的序號(hào)的實(shí)現(xiàn)代碼
帝國(guó)cms調(diào)用會(huì)員排行的序號(hào)的實(shí)現(xiàn)代碼,需要的朋友可以參考下2012-08-20帝國(guó)cms6.6注冊(cè)歡迎郵件發(fā)送的方法
帝國(guó)CMS6.6歡迎郵件的方法介紹2012-06-18帝國(guó)cms7.0實(shí)現(xiàn)微博群發(fā)功能插件教程(支持28個(gè)微博平臺(tái)支持定時(shí)發(fā)布)
這篇文章主要為大家介紹了帝國(guó)cms7.0實(shí)現(xiàn)微博群發(fā)功能插件,非常實(shí)用,需要的朋友可以參考下2014-07-10帝國(guó)CMS實(shí)現(xiàn)提交評(píng)論后自動(dòng)重新生成內(nèi)容頁(yè)的方法
這篇文章主要為大家介紹了帝國(guó)CMS實(shí)現(xiàn)提交評(píng)論后自動(dòng)重新生成內(nèi)容頁(yè)的方法,需要的朋友可以參考下2014-07-09帝國(guó)CMS實(shí)現(xiàn)循環(huán)調(diào)用子欄目的方法
這篇文章主要為大家介紹了帝國(guó)CMS實(shí)現(xiàn)循環(huán)調(diào)用子欄目的方法,對(duì)于模板的開發(fā)與制作很有借鑒價(jià)值,需要的朋友可以參考下2014-07-09帝國(guó)CMS簡(jiǎn)單實(shí)現(xiàn)國(guó)-省-市聯(lián)動(dòng)菜單的方法
這篇文章主要為大家介紹了帝國(guó)CMS簡(jiǎn)單實(shí)現(xiàn)國(guó)-省-市聯(lián)動(dòng)菜單的方法,需要的朋友可以參考下2014-07-09- 帝國(guó)CMS是業(yè)界公認(rèn)的安全性與穩(wěn)定性俱佳的CMS系統(tǒng),這里提供的帝國(guó)CMS官網(wǎng)教程為2011版,可滿足站長(zhǎng)建站查詢之用,并且融合了各種技巧和優(yōu)化說(shuō)明,是新老用戶必備的使用手2014-07-04