资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

帝国cms最后更新时间 帝国cms最后更新时间是什么

帝国cms 更新栏目文章时间出现Unknown column 'befrom' in 'field list'

因为这个文件帝国cms是升级不到的,所以里面存在之前的checked字段没有去掉,那么该如何解决呢?小编现在就为大家解答:

成都创新互联是一家从事企业网站建设、网站建设、网站设计、行业门户网站建设、网页设计制作的专业网站建设公司,拥有经验丰富的网站建设工程师和网页设计人员,具备各种规模与类型网站建设的实力,在网站建设领域树立了自己独特的设计风格。自公司成立以来曾独立设计制作的站点超过千家。

首先连接FTP工具,在空间根目录找到/e/data/html/list/alllistinfo_movie.php,用文本编辑器打开此文件,找到下面这段sql,大概在第9行:

1 $query="select id,classid,titleurl,groupid,newspath,filename,checked,isqf,havehtml,istop,isgood,firsttitle,ismember,userid,username,plnum,totaldown,onclick,newstime,truetime,lastdotime,titlepic,title from {$dbtbpre}ecms_".$tbname.$where." order by ".$doorder." limit $offset,$line";

改成

1 $query="select id,classid,titleurl,groupid,newspath,filename,isqf,havehtml,istop,isgood,firsttitle,ismember,userid,username,plnum,totaldown,onclick,newstime,truetime,lastdotime,titlepic,title from {$dbtbpre}ecms_".$tbname.$where." order by ".$doorder." limit $offset,$line";

也就是删除checked字符!接下来覆盖上传即可!

帝国CMS:网站更新时清理缓存才显示,显示的时间都是同一秒加的

解决方法:

1、讲服务器上的时间调正确,包括cdn加速服务器上的时间;

2、关闭页面缓存;

3、检查下帝国后台的程序。

4、确保帝国后台不再cdn加速的内容之内;

帝国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最后更新时间是什么
标题网址:http://cdkjz.cn/article/ddjggog.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

大客户专线   成都:13518219792   座机:028-86922220