久久机这里只有精品,国产69精品一区二区亚洲孕妇,91精品国产综合久久婷婷香蕉,午夜久久久久久电影

最新活動(dòng):電腦PC端+手機(jī)端+微網(wǎng)站+自適應(yīng)網(wǎng)頁(yè)多模板選擇-建站388元起價(jià)!!!
當(dāng)前位置:主頁(yè) > 網(wǎng)站建設(shè) > 織夢(mèng)cms如何每分鐘審核一篇文章并且生成首頁(yè),織

織夢(mèng)cms如何每分鐘審核一篇文章并且生成首頁(yè),織

時(shí)間:2023-07-21 09:07:21 閱讀: 文章分類: 網(wǎng)站建設(shè) 作者: 織夢(mèng)網(wǎng)站員

導(dǎo)讀:織夢(mèng)文章織夢(mèng)文章dede 每分鐘審核一篇文章并且生成首頁(yè): 直接進(jìn)入正題: plus下新建文件 makeid.php 內(nèi)容如下: ?php$lasttime=filemtimedede模板下載織夢(mèng)cms模板。

dede模板下載織夢(mèng)cms模板

dede 每分鐘審核一篇文章并且生成首頁(yè):直接進(jìn)入正題:plus下新建文件 makeid.php 內(nèi)容如下:

<?php $lasttime=filemtime($_SERVER['DOCUMENT_ROOT']."/index.html"); $interval=180; //更新時(shí)間秒為單位180秒=3分鐘 3分鐘審核一篇 if((time()-$lasttime)>$interval) { require_once(dirname(__FILE__)."/../include/模板織夢(mèng)common.inc.php"); $row = $dsql->GetOne("select id from`dede_archives` where arcrank = -1"); // 找到未審核的文章排序根據(jù)你的要求修改下 $aid= $row['id']; if($aid!=''){ //審核文章 $upquery = "Update `dede_archives` set arcrank =0 where id='$aid';"; $upquery1 = "Update `dede_arctiny` set arcrank =0 where id='$aid';"; $rs = $dsql->ExecuteNoneQuery($upquery); $rs1 = $dsql->ExecuteNoneQuery($upquery1); $isremote = (empty($isremote)? 0dede模板堂 : $isremote); function MakeArt($aid, $mkindex=FALSE, $ismakesign=FALSE, $isremote=0) { global $envs, $typeid; require_once(DEDEINC.'/arc.archives.class.php'); if($ismakesign) $envs['makesign'] = 'yes'; $arc = new Archives($aid); $reurl = $arc->MakeHtml($isremote); return $reurl; } $arcID=$aid; $artUrl = MakeArt($aid,true,true,$isremote); require_once(DEDEINC.'/arc.partview.class.php'); $envs = $_sys_globals = array(); $envs['aid'] = 0; $pv = new PartView(); $row = $pv->dsql->GetOne('SELECT * FROM `cn_homepageset`'); $templet = str_replace("{style}", $cfg_df_style, $row['templet']); $homeFile = dirname(__FILE__).'/'.$row['position']; $homeFile = str_replace("http://", "/",dede后臺(tái)模板 str_replace("\\", "/", $homeFile)); $fp = fopen($homeFile, 'w') or die("無法更新網(wǎng)站主頁(yè)到:$homeFile 位置"); fclose($fp); $tpl = $cfg_basedir.$cfg_templets_dir.'/'.$templet; if(!file_exists($tpl)) { $tpl = $cfg_basedir.$cfg_templets_dir.'/default/index.htm'; if(!file_exists($tpl)) exit("無法找到主頁(yè)模板:$tpl "); } $GLOBALS['_arclistEnv'] = 'index'; $pv->SetTemplet($tpl); $pv->SaveToHtml($homeFile); $pv->Close(); exit(); }else exit(); } ?>

然后在首頁(yè)模板里面最后面加入 <script src="/plus/mkaid.php" language="javascript"></script> 就ok了

相關(guān)dede模板下載織夢(mèng)cms模板。

關(guān)鍵詞標(biāo)簽: 首頁(yè) 織夢(mèng) 每分鐘

聲明: 本文由我的SEOUC技術(shù)文章主頁(yè)發(fā)布于:2023-07-21 ,文章織夢(mèng)cms如何每分鐘審核一篇文章并且生成首頁(yè),織主要講述首頁(yè),每分鐘,織夢(mèng)網(wǎng)站建設(shè)源碼以及服務(wù)器配置搭建相關(guān)技術(shù)文章。轉(zhuǎn)載請(qǐng)保留鏈接: http://www.bifwcx.com/article/web_32960.html

我的IDC 網(wǎng)站建設(shè)技術(shù)SEOUC.COM
專注網(wǎng)站建設(shè),SEO優(yōu)化,小程序設(shè)計(jì)制作搭建開發(fā)定制網(wǎng)站等,數(shù)千家網(wǎng)站定制開發(fā)案例,網(wǎng)站推廣技術(shù)服務(wù)。
  • 5000+合作客服
  • 8年從業(yè)經(jīng)驗(yàn)
  • 150+覆蓋行業(yè)
  • 最新熱門源碼技術(shù)文章

    主站蜘蛛池模板: 鲜城| 松桃| 西吉县| 房山区| 天峨县| 基隆市| 徐州市| 郎溪县| 蓬溪县| 平塘县| 清原| 呼图壁县| 汽车| 五家渠市| 铜陵市| 石景山区| 夹江县| 天台县| 平利县| 永川市| 郸城县| 石景山区| 旺苍县| 阿克苏市| 临江市| 来宾市| 大渡口区| 尼勒克县| 章丘市| 广元市| 托克逊县| 磴口县| 望奎县| 永安市| 十堰市| 库伦旗| 海口市| 德化县| 祁门县| 石景山区| 筠连县|