IsError) { @header("http/1.1 404 not found"); @header("status: 404 not found"); exit; //ParamError(); } $hlxsArr = array(1=>'中式婚礼',2=>'西式婚礼',3=>'主题婚礼'); $hlcdArr = array(1=>'酒店',2=>'教堂',3=>'草坪',4=>'其他'); $hlysArr = array(1=>'紫色',2=>'红色',3=>'绿色',4=>'粉红',5=>'蓝色',6=>'橙色'); $hljjArr = array(1=>'春季',2=>'夏季',3=>'秋季',4=>'冬季'); $viewhltype['1']['font'] = $hlxsArr[$arc->Fields['hltypeArr']]; $viewhltype['1']['num'] = $arc->Fields['hltypeArr']; $viewhltype['2']['font'] = $hlcdArr[$arc->Fields['hlarea']]; $viewhltype['2']['num'] = $arc->Fields['hlarea']; $viewhltype['3']['font'] = $hlysArr[$arc->Fields['hlcolor']]; $viewhltype['3']['num'] = $arc->Fields['hlcolor']; $viewhltype['4']['font'] = $hljjArr[$arc->Fields['hlseason']]; $viewhltype['4']['num'] = $arc->Fields['hlseason']; if(isset($arcID)) $aid = $arcID; $arcID = $aid = (isset($aid) && is_numeric($aid)) ? $aid : 0; if($aid==0) die(" Request Error! "); //301跳转到新地址 $staticUrl = getArcUrl($aid,'',intval($_GET['pageno'])); #if($_GET['andy']==1){echo $_GET['cache'];echo $staticUrl;exit;} $currentUrl = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; //分站资讯请求时处理成静态地址 if(!empty($_GET['city_arg'])){ $currentUrl = "http://".$_GET['city_arg'].".99wed.com/news/view_".$aid."_".intval($_GET['pageno']).".html"; $_SERVER['REQUEST_URI'] = "/news/view_".$aid."_".intval($_GET['pageno']).".html"; } if($currentUrl != $staticUrl ) { Header( "HTTP/1.1 301 Moved Permanently" ) ; header("Location:".$staticUrl); exit; } //标签 $tags = $arc->Fields['tags']; $tagsArr = explode(',',$tags); $samlltitle = $arc->GetPageTitlesDM('default',2); if ($arc->Fields['channel'] == 31) { //网友分享栏目调取商家相关信息 $vipArr = $db_bbs->query("select uid,credit,companys,companyj,vipurl,companynews,address,tel,fatel,credit_n from iforum_trader t left join iforum_trader_details de on t.sid = de.sid where t.isshow = 1 and vipurl in ('".$arc->addTableRow['vipurls']."')"); } if ($arc->Fields['typeid'] == 41) { //珠宝品牌栏目下的文章要调去相关的新品和资讯 $sql = "SELECT arc.*,addf.brand FROM `wed_archives` arc LEFT JOIN `wed_arctype` tp on arc.typeid=tp.id LEFT JOIN `wed_addon_zhubaop` addf ON addf.aid = arc.id WHERE arc.typeid IN (61) And arc.channel = '19' And arc.arcrank > -1 and brand = '".$arc->addTableRow[brand]."' ORDER BY arc.sortrank desc LIMIT 0,6"; $dsql->SetQuery($sql); $dsql->Execute('newbrand'); while($nrow = $dsql->GetArray('newbrand')) { $newbrandArr[] = $nrow; //相关新品 } $sql = "SELECT count(*) as count FROM `wed_archives` arc LEFT JOIN `wed_arctype` tp on arc.typeid=tp.id LEFT JOIN `wed_addon_zhubaop` addf ON addf.aid = arc.id WHERE arc.typeid IN (61) And arc.channel = '19' And arc.arcrank > -1 and brand = '".$arc->addTableRow[brand]."'"; $numsArr = $dsql->GetOne($sql); $nownums = $numsArr['count']; //当季新品个数 $sql = "SELECT arc.*,tp.typedir,tp.typename,tp.corank,tp.isdefault,tp.defaultname,tp.namerule, tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepath ,addf.brand FROM `#@__archives` arc LEFT JOIN `#@__arctype` tp on arc.typeid=tp.id LEFT JOIN `wed_addonarticle` addf ON addf.aid = arc.id WHERE arc.typeid IN (38,39,42,43,40,44,45,46,47,41,137,139,141,61,67) And arc.channel = '1' And arc.arcrank > -1 and brand = '".$arc->addTableRow[brand]."' ORDER BY arc.sortrank desc LIMIT 0,6"; $dsql->SetQuery($sql); $dsql->Execute('newnews'); while($nrow = $dsql->GetArray('newnews')) { $newnewsArr[] = $nrow; //相关新闻 } } $reid = $arc->Fields['reid']; //合肥资讯固定城市信息为合肥 $hftypeid = array(391,392,393); if (in_array($arc->Fields['typeid'],$hftypeid)) { $city_arg = 'hf'; $db_citycn = $city_cn = '合肥'; @include(dirname(__FILE__)."/../../subsite_include/".$city_arg."_config.php"); } if ($arc->Fields['channel'] == -1) { $spacenote = $arc->addTableRow['note']; $noteArr = getspecnote($spacenote); } if ($arc->Fields['channel'] == 30 && $arc->Fields['arcrank'] == -1) { if($arc->Fields['mid'] != $newuid){ die(" Request Error! "); } } //热点资讯 $new_newsArr = getNewsArr(); $newcityArr = array('hf','sy','gz','cd','sh','wh','dl','cs','chongqing','jn','sh','cd','wh','sanya','dl','hz','bj'); if(in_array($city_arg,$newcityArr)){ $cityid = $_newconfig['cityid'][$city_arg]; $goodsArr = getNewGoods($cityid,$city_arg,10); }else{ $cityid = $_newconfig['cityid'][$city_arg]; //$hotpicArr = getGoodsList($cityid,13); $goodsArr2 = getGoods(19,$cityid); $goodsArr3 = getGoods(13,$cityid); $goodsArr4 = getGoods(16,$cityid,6,2); $goodsArr5 = getGoods(15,$cityid,6,1); $goodsArr = array_merge($goodsArr3,$goodsArr2,$goodsArr4,$goodsArr5); } $arc->Display();