帝国CMS自动更新刷新首页,自定义列表页教程

在e/下面新建文件夹htmlindex(可自己命名),在htmlindex下创建index_html.php(可自行命名,文件以.php结尾)文件

<?php

require("../class/connect.php");
include("../class/db_sql.php");
include("../class/config.php");
include("../class/functions.php");
include("../class/t_functions.php");
require LoadLang("pub/fun.php");
require("../data/dbcache/class.php");
require("../data/dbcache/MemberLevel.php");
include("../class/chtmlfun.php");
$link=db_connect();
$empire=new mysqlquery();
//更新首页
$indextemp=GetIndextemp();//取得模板
NewsBq($classid,$indextemp,1,0);
insert_dolog("");//操作日志
//跟新自定义列表
$b=0;
$sql=$empire->query("select listid,pagetitle,filepath,filetype,totalsql,listsql,maxnum,lencord,listtempid,pagekeywords,pagedescription from {$dbtbpre}enewsuserlist where listid>0 order by listid limit ".$public_r['reuserlistnum']);
while($r=$empire->fetch($sql))
{
	$b=1;
	$newstart=$r[listid];
	ReUserlist($r,"");
}
echo '更新首页,自定义列表页成功';
db_close();

直接在计划任务中添加定时访问URL,将该文件路径填进去,如:

http://域名/e/htmlindex/index_html.php

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

给TA打赏
共{{data.count}}人
人已打赏
帝国CMS教程

帝国CMS如何将Tag关键词自动同步内容锚文本?

2023-4-14 12:02:27

帝国CMS教程

帝国CMS调用图集以及第一张图片的方法

2023-4-22 17:22:10

!
你也想出现在这里?立即 联系我们吧!
信息
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
搜索