getChannelByIndex('pingce'); $channelID=$thisChannel->id; // require_once(ABS_PATH.'/'.CAR_DIR.'/include.php'); $smarty->assign('bigTabs',autoBigTabs('comment')); //prices include_once(ABS_PATH.'/constant/prices.arr.php'); $smarty->assign('pricesArr',$pricesArr); /*****page caches start*****/ $pageCacheIndex='pingceIndex'; $cacheCode=new cacheCode(); if ($cacheCode->isExist($pageCacheIndex)){ global $autoDB,$permanentCache; foreach ($pricesArr as $p) { $permanentCache->remove('autoContentsOfChannel'.$channelID.'ByPrice'.$p['min'].'_'.$p['max'].'p1c0');//$cms->getAutoContentsByPrice(*******) } $autoDB->query('DELETE FROM '.AUTO_TABLE_PREFIX.'cache WHERE enname=\''.$pageCacheIndex.'\''); } /*****page caches end*****/ //最新評測 $newContents=$cms->getAutoContentsByChannelID($channelID); $newPicContents=array(); $newTxtContents=array(); if ($newContents){ $i=0; $j=0; foreach ($newContents as $c){ $link=getAutoLinkInArticle($c->autoid,$c->autograde); $newContents[$j]->autoLink=$link; if ($c->thumb&&$i<6){ $c->thumb=str_replace('.jpg','_big.jpg',$c->thumb); $c->autoLink=$link; array_push($newPicContents,$c); $i++; }else { array_push($newTxtContents,$c); } $j++; } } $smarty->assign('newContents',$newContents); $smarty->assign('newPicContents',$newPicContents); $smarty->assign('newTxtContents',$newTxtContents); //按價格 $i=0; $contentsByPrices=array(); foreach ($pricesArr as $p){ $contentsByPrices[$i]['min']=$p['min']; $contentsByPrices[$i]['max']=$p['max']; $contentsByPrices[$i]['contents']=$cms->getAutoContentsByPriceNCat($channelID,$thisChannel->pagesize,'comment',$p['min'],$p['max']); $i++; } $smarty->assign('contentsByPrices',$contentsByPrices); // include_once(ABS_PATH.'/extension/autoRank.php'); /***********meta************/ if (file_exists(ABS_PATH.'/meta/'.META_DIR.'/pingce/index.php')){ include_once(ABS_PATH.'/meta/'.META_DIR.'/pingce/index.php'); } $smarty->display('pingce/index.html'); ?>十或更好5手救援彩金 排列三走势图500图表网 广告推送赚钱 七乐彩复式投注速查表 31选7走势图福建省31体彩走势图 曾道人马会资料 销售卖衣服赚钱吗 彩乐乐11选5 快速赛车计划 重庆时时乐开奖号码 平民超市卖什么赚钱 养鹅干赚钱吗 十一选五网上怎么投注 顺风车远途单赚钱 赛车pk10永久稳赢技巧 写笔记赚钱 山东群英会最新开奖两码遗漏