織夢DEDECMS實現(xiàn)自動更新主頁功能建站問題
導(dǎo)讀:建站問題建站問題?php require_once (dirname(__FILE__) . "/../include/common.inc.php"); $row = $ds建設(shè)網(wǎng)站網(wǎng)站seo優(yōu)化培訓(xùn)。
?php require_once (dirname(__FILE__) . "/../include/common.inc.php"); $row = $dsql-GetOne("Select uptime From `cmsxx_arccache` where md5hash = 'autonew';"); if(!is_array($row)) exit(autonew(5)); $interval=60; //時間 秒 if(time() - $row['up […]
<?php require_once (dirname(__FILE__) . "/../include/common.inc.php"); $row = $dsql->GetOne("Select uptime From `cmsxx_arccache` where md5hash = 'autonew';"); if(!is_array($row)) exit(autonew(5)); $interval=60; //時間 秒 if(time() - $row['uptime'] < $interval ) exit(); autonew($no); function machom($no=''){ define('DEDEADMIN', ereg_replace("[/\\]{1,}",'/',dirname(__FILE__) ) ); require_once(dirname(__FILE__)."/../include/common.inc.php"); require_once(dirname(__FILE__)."/../include/arc.partview.class.php"); $dsql = new DedeSql(false); $row = $dsql->GetOne("Select * From cmsxx_homepageset"); $dsql->Close(); $templet=$row['templet']; $position=$row['position']; $homeFile = DEDEADMIN."/".$position; $homeFile = str_replace("\\","/",$homeFile); $homeFile = str_replace("http://","/",$homeFile); $templet = str_replace("{style}",$cfg_df_style,$templet); $pv = new PartView(); $GLOBALS['_arclistEnv'] = 'index'; $pv->SetT網(wǎng)站建設(shè)公司emplet($cfg_basedir.$cfg_templets_dir."/".$templet); $pv->SaveToHtml($homeFile); } function autonew($no=''){ global $dsql; $sql = "SELECT id FROM `cmsxx_archives` where arcrank <>'0' limit $no ;"; $dsql->SetQuery($sql); $dsql->Execute(); while($row = $dsql->GetArray()){ $id = $row['id']; $time = time() - rand(0,$interval * 10); $dsql->ExecuteNoneQuery("Update `cmsxx_arctiny` set `arcrank`='0', `sortrank`='$time' where id = '$id';"); $dsql->ExecuteNoneQuery("Update `cmsxx_archives` set `arcrank`='0', `sortrank`='$time', `pubdate`='$time' where id = '$網(wǎng)站seo優(yōu)化軟件id';"); &nbs公司網(wǎng)站建設(shè)p; } machom($no); $dsql->ExecuteNoneQuery("Update `cmsxx_arccache` set `uptime`=".time()." where md5hash = 'autonew'"); } ?>
相關(guān)建設(shè)網(wǎng)站網(wǎng)站seo優(yōu)化培訓(xùn)。聲明: 本文由我的SEOUC技術(shù)文章主頁發(fā)布于:2023-05-26 ,文章織夢DEDECMS實現(xiàn)自動更新主頁功能建站問題主要講述自動更新,標(biāo)簽,CMS網(wǎng)站建設(shè)源碼以及服務(wù)器配置搭建相關(guān)技術(shù)文章。轉(zhuǎn)載請保留鏈接: http://www.bifwcx.com/article/web_10102.html
為你推薦與織夢DEDECMS實現(xiàn)自動更新主頁功能建站問題相關(guān)的文章
-
通王TWCMS 2.0.3網(wǎng)站模板程序下載
(126)人喜歡 2024-01-15 -
Windows官方原版在哪里下載
(175)人喜歡 2024-01-15 -
WordPress網(wǎng)站模板發(fā)帖標(biāo)題顏色設(shè)置
(131)人喜歡 2024-01-07 -
修改discuz論壇帖子標(biāo)題80字符的長度限制
(249)人喜歡 2024-01-07 -
wordpress程序調(diào)用不帶超鏈接的Tag標(biāo)簽
(234)人喜歡 2024-01-05 -
網(wǎng)站在不同時期需調(diào)整內(nèi)容更新的方向
(112)人喜歡 2023-08-12