$dsql->ExecuteNoneQuery("Delete From `#@__arccache` "); } $reurl = ''; //更新数组所记录的栏目 if (!empty($tid)) { if (!isset($cfg_Cs[$tid])) { showmsg('没有该栏目数据, 可能缓存文件(/data/cache/inc_catalog_base.inc)没有更新, 请检查是否有写入权限'); exit; } if ($cfg_Cs[$tid][1] > 0) { require_once DEDEINC . "/arc.listview.class.php"; $lv = new ListView($tid); $position = MfTypedir($lv->Fields['typedir']); } else { require_once DEDEINC . "/arc.sglistview.class.php"; $lv = new SgListView($tid); } //$lv->CountRecord(); if ($lv->TypeLink->TypeInfos['ispart'] == 0 && $lv->TypeLink->TypeInfos['isdefault'] != -1) { $ntotalpage = $lv->TotalPage; } else { $ntotalpage = 1; } if ($cfg_remote_site == 'Y' && $isremote == "1") { if ($serviterm != "") { list($servurl, $servuser, $servpwd) = explode(',', $serviterm); $config = array('hostname' => $servurl, 'username' => $servuser, 'password' => $servpwd, 'debug' => 'TRUE'); } else { $config = array(); } if (!$ftp->connect($config)) {
ShowMsg("<b>完成栏目更新任务!完成所有更新任务!</b>", "close::tgtable"); exit; } $topids = explode(',', GetTopids($typeid)); if (empty($curpage)) { $curpage = 0; } $tid = $topids[$curpage]; if (isset($cfg_Cs[$tid]) && $cfg_Cs[$tid][1] > 0) { require_once DEDEINC . "/arc.listview.class.php"; $lv = new ListView($tid); $lv->MakeHtml(); $lv->Close(); } else { require_once DEDEINC . "/arc.sglistview.class.php"; $lv = new SgListView($tid); $lv->MakeHtml(); $lv->Close(); } if ($curpage >= count($topids) - 1) { if (!empty($doposttmp)) { $jumpurl = preg_replace("#doposttmp|nextdotmp#", 'del', $jumpurl); $jumpurl .= "&dopost={$doposttmp}&nextdo={$nextdotmp}"; ShowMsg("完成栏目:{$tid} 更新!<br /><b>完成栏目更新任务,继续执行后续任务...</b>", $jumpurl, 0, 500); exit; } else { ShowMsg("完成栏目:{$tid} 更新!<br /><b>完成栏目更新任务,完成所有更新任务!</b>", "close::tgtable"); exit; } } else { $curpage++;
if ($pageno == 0 && $mkpage == 1) { $dsql->ExecuteNoneQuery("Delete From `#@__arccache` "); } $reurl = ''; //更新数组所记录的栏目 if (!empty($tid)) { if (!isset($_Cs[$tid])) { showmsg('没有该栏目数据, 可能缓存文件(/data/cache/inc_catalog_base.inc)没有更新, 请检查是否有写入权限'); exit; } if ($_Cs[$tid][1] > 0) { require_once DEDEINC . "/arc.listview.class.php"; $lv = new ListView($tid); } else { require_once DEDEINC . "/arc.sglistview.class.php"; $lv = new SgListView($tid); } if ($lv->TypeLink->TypeInfos['ispart'] == 0 && $lv->TypeLink->TypeInfos['isdefault'] != -1) { $ntotalpage = $lv->TotalPage; } else { $ntotalpage = 1; } //如果栏目的文档太多,分多批次更新 if ($ntotalpage <= $maxpagesize || $lv->TypeLink->TypeInfos['ispart'] != 0 || $lv->TypeLink->TypeInfos['isdefault'] == -1) { $reurl = $lv->MakeHtml(); $finishType = true; } else { $reurl = $lv->MakeHtml($mkpage, $maxpagesize); $finishType = false; $mkpage = $mkpage + $maxpagesize; if ($mkpage >= $ntotalpage + 1) {