我发现我好像变了,原来每当人成长的时候都会改变。生命本该有意义,我们绝不是白来一场。
将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();
}
}
|
然后火车头发布模块修改为 article_add.php?my_u=你后台用户名&my_p=你后台密码
以上就是火车头采集器免登录采集数据发布到DEDECMS的方法。万般努力,我只为出人头地。更多关于火车头采集器免登录采集数据发布到DEDECMS的方法请关注haodaima.com其它相关文章!




