`
tyllxx
  • 浏览: 85465 次
  • 性别: Icon_minigender_1
  • 来自: 贵阳
社区版块
存档分类
最新评论

dedeCMS会员登录、登出跳转首页的方法

阅读更多

 

在网站根目录member文件夹下找到index_do.php文件找到如下代码段:

if(empty($gourl) || eregi("action|_do",$gourl))
{
ShowMsg("成功登录,5秒钟后转向系统主页...","index.php",0,2000); //注意这里将红色部分改为"../",登录跳转到首页
}
else
{
ShowMsg("成功登录,现在转向指定页面...",$gourl,0,2000);
}
exit();
}
}

//退出登录
else if($dopost=="exit")
{
$cfg_ml->ExitCookie();
#api{{
if(defined('UC_API') && @include_once DEDEROOT.'/uc_client/client.php')
{
$ucsynlogin = uc_user_synlogout();
}
#/aip}}
ShowMsg("成功退出登录!","index.php",0,2000); //注意这里将红色部分改为"../",退出跳转到首页

exit();

以上,如要跳转到其他页面只需要讲红色部分修改为要跳转页面的相对地址即可,以上适用与dedeCMS5.6。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics