- 阀门制造设备展示类网站...
- 生态水果蔬菜商城类网站...
- 中国风古典园林假山工程...
- 宠物兽医门诊医院类网站...
- 新闻博客资讯类网站织梦...
- 律师事务所网站织梦模板...
- 艺考培训类网站织梦模板...
- 苗木草坪种植绿化类网站...
- 五金水槽挂架类网站织梦...
- 甲醛检测空气污染治理类...
- 金融理财投资类网站织梦...
- PPT素材下载类网站织梦模...
- 五金配件加工机械设备类...
- QQ个性空间日志资讯类网...
- 水性工业漆类企业网站织...
- 餐饮美食类网站织梦模板...
- 电脑机箱配件类网站织梦...
- 微商货源网店代理类网站...
- 服装定制设计类网站织梦...
- 财经新闻资讯类网站织梦...
打开/dede/inc/inc_archives_functions.php文件
在最后增加以下代码
/*火车头采集自动更新主页*/function MakeIndex(){global $dsql,$cfg_basedir,$cfg_templets_dir,$cfg_df_style;require_once(DEDEINC.'/arc.partview.class.php');$envs = $_sys_globals = array();$envs['aid'] = 0;$pv = new PartView();$row = $pv->dsql->GetOne('SELECT * FROM `dede_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("无法更新网站主页到:$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("无法找到主页模板:$tpl ");}$GLOBALS['_arclistEnv'] = 'index';$pv->SetTemplet($tpl);$pv->SaveToHtml($homeFile);$pv->Close();}/*火车头采集自动更新栏目*/function MakeParentType($typeid){global $dsql;$typediarr = array();array_push($typediarr,$typeid);$row3 = $dsql->GetOne("Select reid,topid From `dede_arctype` where id=".$typeid);if(!in_array($row3['reid'],$typediarr) and $row3['reid']!=0) array_push($typediarr,$row3['reid']);if(!in_array($row3['topid'],$typediarr) and $row3['topid']!=0) array_push($typediarr,$row3['topid']);require_once(DEDEDATA."/cache/inc_catalog_base.inc");require_once(DEDEINC."/channelunit.func.php");require_once(DEDEINC."/arc.listview.class.php");foreach($typediarr as $typeid){$lv = new ListView($typeid);$lv->MakeHtml(1,$maxpagesize);}}/*火车头采集自动更新上下篇*/function MakePreNext($aid,$typeid){global $dsql;require_once(DEDEINC.'/arc.archives.class.php');$aid = intval($aid);$preRow = $dsql->GetOne("SELECT id FROM `dede_arctiny` WHERE id<$aid AND arcrank>-1 AND typeid='$typeid' ORDER BY id DESC");$nextRow = $dsql->GetOne("SELECT id FROM `dede_arctiny` WHERE id>$aid AND arcrank>-1 AND typeid='$typeid' ORDER BY id ASC");if(is_array($preRow)){$envs['aid'] = $preRow['id'];$arc = new Archives($preRow['id']);$arc->MakeHtml();}if(is_array($nextRow)){$envs['aid'] = $nextRow['id'];$arc = new Archives($nextRow['id']);$arc->MakeHtml();}}
找到function GetUpdateTest()方法在 return $revalue;前调用上面加入
MakePreNext($arcID,$typeid);MakeIndex();MakeParentType($typeid);return $revalue;