演示链接:查看演示

dedecms登陆会员后台直接转跳到首页怎么办

我们在打会员目录的/member/index_do.php

行码  388

 

 代码如下

if(empty($gourl)||eregi("action|_do",$gourl)){

389 ShowMsg("成功登录,5秒钟后进入管理中心…","control.php",0,2000);

390 }else{

400 ShowMsg("成功登录,转到进入页面…",$gourl,0,2000);

 

 

修改为:

行码  388

 

代码如下

if(empty($gourl)||eregi("action|_do",$gourl)){

389 ShowMsg("成功登录,5秒钟后进入首页…","../../",0,2000);

390 }else{

400 ShowMsg("成功登录,转到进入页面…",$gourl,0,2000);

 

 

注意:dedecms可自动记录你从哪里来登录的可以跳转到你上次过来的页面而不是会员中心,这个是正常事象了
 

THE END
喜欢就支持一下吧
点赞0 分享