[织梦CMS教程] 火车头采集器免登录采集数据发布到dede源码织梦的方法

[复制链接]
查看1514 | 回复11 | 2020-8-8 14:20:59 | 显示全部楼层 |阅读模式

将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=你后台密码

回复

使用道具 举报

幸福教主浦 | 2021-3-23 01:11:44 | 显示全部楼层
这个站很好,资源多,教程全
回复

使用道具 举报

我是来白嫖悟空源码的资源的!
回复

使用道具 举报

123457771 | 2021-7-23 13:12:33 | 显示全部楼层
资源太多了,准备办个会员
回复

使用道具 举报

123456811 | 2022-5-12 03:55:39 | 显示全部楼层
这个资源都有真不错
回复

使用道具 举报

刘余文 | 2022-6-3 01:53:05 | 显示全部楼层
悟空源码太厉害,资源真多!
回复

使用道具 举报

lishuixiu006 | 2022-6-30 20:28:48 | 显示全部楼层
支持悟空源码,越来越好
回复

使用道具 举报

缥缈的绽放山 | 2022-11-9 05:48:33 | 显示全部楼层
厉害了,悟空源码资源多教程多!
回复

使用道具 举报

甜言疯语 | 2023-5-29 22:06:01 | 显示全部楼层
这个下载站资源真齐全
回复

使用道具 举报

无为自化 | 2023-10-18 13:11:04 | 显示全部楼层
没积分哈,谁来帮帮我啊
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则