135-1821-9792

帝国cms刷新任务 帝国cms刷新很慢

帝国cms 批量定时审核 代码 或者插件 我知道帝国cms 可以设置任务自动刷新首页和栏目

在首页模板中加入下面代码,尽量放在底部。

在宁乡等地区,都构建了全面的区域性战略布局,加强发展的系统性、市场前瞻性、产品创新能力,以专注、极致的服务理念,为客户提供成都做网站、成都网站制作 网站设计制作按需定制设计,公司网站建设,企业网站建设,品牌网站制作,全网营销推广,外贸网站制作,宁乡网站建设费用合理。

script language="javascript" type="text/javascript" src="/e/htmlindex/index_html.php"/script

在 /e/ 建立文件夹 htmlindex 并设置 777权限

将下面代码保存在 /e/htmlindex/index_html.php

修改刷新时间,将文件中1200改为你想要的时间,单位为秒。

?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();

$filepath_s="indexhtmlhc.txt";

$time=time();

@$filemtime=(int)filemtime($filepath_s)+1200;

/*

函数解释

file_exists() 函数检查文件或目录是否存在。

mkdir() 函数创建目录。

time() 函数返回当前时间的 Unix 时间戳。

filemtime() 函数返回文件内容上次的修改时间。

*/

if (!file_exists($filepath_s)){

fopen($filepath_s, 'w');

@chmod($filepath_s, 0777);

ReIndex();

}elseif(!file_exists($filepath_s) || (filemtime($filepath_s)+1200)time()){

fopen($filepath_s, 'w');

@chmod($filepath_s, 0777);

ReIndex();

}else{

// do nothing

}

db_close();

$empire=null;

?

帝国CMS刷新数据表问题

您好,在本地用帝国cms搭建好网站,上传到空间,数据恢复完成,发现网站名称改不动更新栏目关系 清除临时文件和数据 我也遇到过这样的问题,刷新以上项目后再次。

$sql=$empire-query("select * from {$dbtbpre}ecms_".$tbname." where ".$yhad。

帝国cms数据更新--刷新所有信息内容(点了全部刷新)时,出现服务器错误

您好,在本地用帝国cms搭建好网站,上传到空间,数据恢复完成,发现网站名称改不动更新栏目关系 清除临时文件和数据 我也遇到过这样的问题,刷新以上项目后再次。

$sql=$empire-query("select * from {$dbtbpre}ecms_".$tbname." where ".$yhadd."id$start".$add1." and titleurl is not null and checked=1 order by id limit ".$public_r[renewsnum]);

while($r=$empire-fetch($sql))

{

if($class_r[$r[classid]][showdt]==2)

{

continue;

}

$b=1;

GetHtml($r,'',1);//生成信息文件

$new_start=$r[id];

}


当前文章:帝国cms刷新任务 帝国cms刷新很慢
URL网址:http://kswsj.com/article/dogdsdp.html

其他资讯



Copyright © 2009-2022 www.kswsj.com 成都快上网科技有限公司 版权所有 蜀ICP备19037934号