将dede/config.php中的下面代码:
//检验用户登录状态 $cuserLogin = new userLogin(); if($cuserLogin->getUserID()==-1) { header("location:login.php?gotopage=".urlencode($dedeNowurl)); exit(); } 修改为: //检验用户登录状态 $cuserLogin = new userLogin(); if($cuserLogin->getUserID()==-1) { if($my_u != ') { $res = $cuserLogin->checkUser($my_u,$my_p); if($res==1) $cuserLogin->keepUser(); } if($cuserLogin->getUserID()==-1) { header("location:login.php?gotopage=".urlencode($dedeNowurl)); exit(); } }火车头采集器免登录采集数据发布到DEDECMS织梦的方法
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:https://www.heiqu.com/164252999aae51d2a81f58feec1bc270.html