将dede/config.PHP中的下面代码: //检验用户登录状态 $cuserLogin = new userLogin(); if($cuserLogin->getUserID()==-1)
将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=你后台密码
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持我们。
--结束END--
本文标题: 详解火车头采集器免登录采集数据发布到DEDECMS织梦的方法
本文链接: https://www.lsjlt.com/news/32813.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-02-29
2024-02-29
2024-02-27
2023-10-27
2023-10-26
2023-10-25
2023-10-21
2023-10-21
2023-10-18
2023-10-12
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0