caching = true; $tpl->cache_lifetime = $cache_seconds; } $cacheid = md5($_SERVER["REQUEST_URI"]); if(!$tpl->isCached($tplfile,$cacheid)){ require './source/module/app.php'; require $widgetfile; } if(isset($cid) && $cid != '' && is_numeric($cid)){ $arr = Mod_Url::firstcid($cid,'infocate'); $category_son = Mod_Info::CategorySon($arr['cid']); $tpl->assign("first_cname",$arr['cname']); }else{ $category_son = Mod_Info::category(); $tpl->assign("first_cname",$LANVAR['news']); } if($cid > 0){ $tpl->assign('cate_banner',$commons->banners($cid,'infocate')); } $tpl->assign("first_cid",$arr['cid']); $tpl->assign("category_son",$category_son); $tpl->assign("runtime",Core_Fun::runtime()); $tpl->assign("LANVAR",$LANVAR); $tpl->display($tplfile,$cacheid);