您好,在本地用帝國cms搭建好網(wǎng)站,上傳到空間,數(shù)據(jù)恢復(fù)完成,發(fā)現(xiàn)網(wǎng)站名稱改不動更新欄目關(guān)系 清除臨時文件和數(shù)據(jù) 我也遇到過這樣的問題,刷新以上項目后再次。
成都創(chuàng)新互聯(lián)主營嘉黎網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司,主營網(wǎng)站建設(shè)方案,app開發(fā)定制,嘉黎h5微信小程序開發(fā)搭建,嘉黎網(wǎng)站營銷推廣歡迎嘉黎等地區(qū)企業(yè)咨詢
$sql=$empire-query("select * from {$dbtbpre}ecms_".$tbname." where ".$yhad。
在首頁模板中加入下面代碼,盡量放在底部。
script language="javascript" type="text/javascript" src="/e/htmlindex/index_html.php"/script
在 /e/ 建立文件夾 htmlindex 并設(shè)置 777權(quán)限
將下面代碼保存在 /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;
/*
函數(shù)解釋
file_exists()?函數(shù)檢查文件或目錄是否存在。
mkdir()?函數(shù)創(chuàng)建目錄。
time()?函數(shù)返回當(dāng)前時間的?Unix?時間戳。
filemtime()?函數(shù)返回文件內(nèi)容上次的修改時間。
*/
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;
?
首頁模板里的欄目名分類是寫的,不同于DEDE那樣調(diào)用`用涵數(shù)來傳輸,寫吧,首頁分類欄目也不常變動``這是小事``進(jìn)了這行就別怕這些麻煩事
1.把廣告JS插入到首頁、欄目頁、內(nèi)容頁
2.刷新---》重新生成
3.OK
名稱欄目:帝國cms欄目自動刷新 帝國cms刷新很慢
本文URL:http://chinadenli.net/article26/dogcojg.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站收錄、品牌網(wǎng)站建設(shè)、App開發(fā)、靜態(tài)網(wǎng)站、建站公司、移動網(wǎng)站建設(shè)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)