导航:首页 > 万维百科 > 帝国cms刷新首页

帝国cms刷新首页

发布时间:2020-10-02 19:10:05

1、帝国cms不能刷新首页

你没有首页或者首页有错误,你可以去首页的地方看看,如果有首页,你把它剪切出来,粘贴在其它地方,原来放首页的地方空了以后随便打几个字,刷新一下,看看能不能出来,如果可以,说明你原来的首页代码里有问题

2、帝国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;
?>

3、帝国cms无法刷新生成页面怎么办

你可以按转移空间的方法更新下,应该可以,实在不行请追问!

4、帝国CMS换了一个模板,刷新啦!可是首页还是空白页。跪求高手,留个联系方式呗!

可能模板中的一些代码阻碍了生成
0.删除根目录下的index.html index.php等首页文件,重新生成首页

1.把首页模板备份下,比如复制到记事本中,之后用随便几个字比如"trylife"替换首页模板提交看是否更新.
2.如果更新了说明你的首页代码有问题
3.如果没更新说明你的程序有问题

与帝国cms刷新首页相关的知识