include_once $funcfile; } } $templet = !empty($seoarr['templetpath']) ? "destination/{$seoarr['templetpath']}/index.htm" : 'main.htm'; //针对不同目的地模板. $templets = $seoarr['templetpath']; if (strpos($templets, 'uploadtemplets') !== false) { $templet = SLINETEMPLATE . '/smore/' . $templets . '/index.htm'; //使用自定义模板 } else { $templet = Helper_Archive::getUseTemplet('dest_index'); //获取系统默认使用模板 $templet = !empty($templet) ? $templet : SLINETEMPLATE . "/" . $cfg_df_style . "/" . "destination/main.htm"; } $pv->SetTemplet($templet); $html_str = $pv->getResult(); file_put_contents($html_file, $html_str); //缓存当前文件. $pv->Display(); exit; function getPiclistArrZ($kindid, $bigtemp = '<img src="{src}" width="725" height="304"/>', $replacetemp = '{src}') { global $dsql; $flag = 0; $sql = "select litpic,piclist from #@__destinations where id={$kindid}"; $row = $dsql->GetOne($sql); if (empty($row['litpic']) && empty($row['piclist'])) { $df_big = getDefaultImage(); $out = str_replace($replacetemp, $df_big, $bigtemp); } else { if (!empty($row['litpic']) && empty($row['piclist'])) {