assign('autouid',intval($user->uid)); $smarty->assign('user',$user); include_once(ABS_PATH.'/constant.php'); // if (defined('STATISTIC_CODE')){ $smarty->assign('statisticCode',STATISTIC_CODE); } // //location $geo=new geo(); $defaultLocation=$geo->getDefaultLocation(); $defaultChildLocation=$geo->getDefaultChildLocation(); $smarty->assign('defaultChildLocation',$defaultChildLocation); /** * 获取文章里面第一个车型的主页地址 * * @param unknown_type $autoids * @param unknown_type $grade * @return unknown */ function getAutoLinkInArticle($autoids,$grade){ //auto info $autoids=explode(',',$autoids); $firstAutoid=0; if ($autoids){ foreach ($autoids as $autoid){ if (intval($autoid)){ $firstAutoid=$autoid; break; } } if (intval($grade)==1){ if (URL_REWRITE){ return CAR_URL_ROOT.'/brand-'.$firstAutoid.'.html'; }else { return CAR_URL_ROOT.'/brand.php?id='.$firstAutoid; } }else { if (URL_REWRITE){ return CAR_URL_ROOT.'/'.$firstAutoid; }else { return CAR_URL_ROOT.'/g3auto.php?id='.$firstAutoid; } } }else { return ''; } } function foregroundPage($total,$currentPage,$pageSize,$prefix='',$suffix='',$firstPageUrl=''){ if ($pageSize){ if ($total%$pageSize){ $totalPage=intval($total/$pageSize)+1; }else { $totalPage=intval($total/$pageSize); } } $option=''; for ($i=1;$i<$totalPage+1;$i++){ if (intval($currentPage)!=$i){ $option.=''; }else { $option.=''; } } $prePage=$currentPage-1; $nextPage=$currentPage+1; if ($firstPageUrl){ $first='首页'; }else { $first='首页'; } $pre='上一页'; $next='下一页'; $last='尾页'; if ($currentPage==1){ $first=''; $pre=''; } if ($currentPage==$totalPage){ $next=''; $last=''; } if ($totalPage>1){ return '
转到 共'.$total.'条 '.$currentPage.'/'.$totalPage.'页  '.$first.' '.$pre.' '.$next.' '.$last.'
'; }else { return ''; } } function googleMapJs(){ if (loadConfig('system','mapbarApi')){ return ''; }else { return ''; } } function toLogin(){ if (URL_REWRITE){ $loginUrl=MAIN_URL_ROOT.'/signin.do'; }else { $loginUrl=MAIN_URL_ROOT.'/sign?type=signin'; } echo ''; } function smarty404($smarty){ $smarty->assign('statisticCode','');//去除统计代码,防止程序冲突 header("HTTP/1.1 404 Not Found"); $smarty->display('errors/404.tpl'); } ?>
Notice: Use of undefined constant SUB_SKIN - assumed 'SUB_SKIN' in E:\qlauto\auto\include.php on line 8

Fatal error: Class 'cacheCode' not found in E:\qlauto\auto\g2select.php on line 3