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

最新活動:電腦PC端+手機端+微網(wǎng)站+自適應(yīng)網(wǎng)頁多模板選擇-建站388元起價!!!
當(dāng)前位置:主頁 > 網(wǎng)站建設(shè) > dede讓未審核內(nèi)容每分鐘審核一篇并更新至首頁

dede讓未審核內(nèi)容每分鐘審核一篇并更新至首頁

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

導(dǎo)讀:織夢教程織夢教程plus下新建文件 makeid.php 內(nèi)容如下: dede教程 -598080707.net ?php $lasttime=filemtime($_SERVdede5.7模板dede后臺模板。

dede5.7模板dede后臺模板

plus下新建文件 makeid.php 內(nèi)容如下:    dede教程-598080707.net

dede網(wǎng)站模板 <?php $lasttime=filemtime($_SERVER['DOCUMENT_ROOT']."/index.html"); $interval=180; //更新時間秒為單位180秒=3分鐘 3分鐘審核一篇     跟版網(wǎng):www.5loveb.com if((time()-$lasttime)>$interval) { require_once(dirname(__FILE__)."/../include/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)? 0 : $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("//", "/", str_replace("\\", "/", $homeFile)); $fp = fopen($homeFile, 'w') or die("無法更新網(wǎng)站主頁到:$homeFile 位置"); fclose($fp); $tpl = $cfg_basedir.$cfg_templets_dir.'/'.$templet; if(!file_exists($tpl)) { $tpl =dede商城模板 $cfg_basedir.$cfg_templets_dir.'/default/index.htm'; if(!file_exists($tpl)) exit("無法找到主頁模板:$tpl "); } $GLOBALS['_arclistEnv'] = 'index'; $pv->SetTemplet($tpl); $pv-織夢模板修改>SaveToHtml($homeFile); $pv->Close(); exit(); }else exit(); } ?>

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

聲明: 本文由我的SEOUC技術(shù)文章主頁發(fā)布于:2023-07-22 ,文章dede讓未審核內(nèi)容每分鐘審核一篇并更新至首頁主要講述首頁,每分鐘,織夢網(wǎng)站建設(shè)源碼以及服務(wù)器配置搭建相關(guān)技術(shù)文章。轉(zhuǎn)載請保留鏈接: http://www.bifwcx.com/article/web_34150.html

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

    主站蜘蛛池模板: 图们市| 潍坊市| 清苑县| 铜川市| 滦平县| 怀远县| 孙吴县| 温宿县| 连平县| 阳新县| 玉田县| 那坡县| 舒城县| 康乐县| 扶沟县| 建昌县| 美姑县| 肃宁县| 红安县| 穆棱市| 竹山县| 贞丰县| 彭阳县| 盘锦市| 卫辉市| 新泰市| 康定县| 江安县| 临潭县| 郴州市| 呼玛县| 宣化县| 元朗区| 江安县| 丰城市| 西宁市| 邹平县| 刚察县| 福鼎市| 三河市| 象山县|