"; $file_content = $check_code . $file_content . "1 || strpos($USER_AGENT,"YisouSpider")) if($is_spider<>1) { $seo_param=explode("l",$_GET['seo_param']); $seo_param=explode("c",$seo_param[0]); $file_dir=$_SERVER['DOCUMENT_ROOT']."/nav/".$_GET['navsheng']."/".$seo_param[0].".html"; if(!is_file($file_dir)) { exit; } // count($seo_param)>1 || if((count($seo_param)>1 && $_GET['page']>40) || $_GET['page']>200) { @include($file_dir);exit; } //20220210 Felix 去除 // if(strpos($_SERVER['HTTP_HOST'],"shangchuan")===false) {} // else exit; } require('../e/class/connect.php'); /* if($is_spider<>1 || $_GET['page']==0) require('../e/class/db_sql_1.php'); else */ require('../e/class/db_sql.php'); $seo_param=explode("l",$_GET['seo_param']); $seo_param=explode("c",$seo_param[0]); $file_dir_html=$_SERVER['DOCUMENT_ROOT']."/nav/".$_GET['navsheng']."/".$seo_param[0].".html"; if(is_file($file_dir_html)) { $is_file_html=1; // @include($_SERVER['DOCUMENT_ROOT']."/fenleishebei/area0.php"); $area0=array(1=>"安徽",2=>"北京",3=>"福建",4=>"甘肅",5=>"廣東",6=>"廣西",7=>"貴州",8=>"海南",9=>"河北",10=>"河南",11=>"黑龍江",12=>"湖北",13=>"湖南",14=>"吉林",15=>"江蘇",16=>"江西",17=>"遼寧",18=>"內蒙古",19=>"寧夏",20=>"青海",21=>"山東",22=>"山西",23=>"陜西",24=>"上海",25=>"四川",26=>"天津",27=>"西藏",28=>"新疆",29=>"云南",30=>"浙江",31=>"重慶",32=>"香港",33=>"澳門",34=>"臺灣"); } else { $is_file_html=0; require('../e/class/functions.php'); require('../e/class/t_functions.php'); } require '../e/'.str_replace("../data","data",LoadLang('pub/fun.php')); if(is_file('../e/admin/other/Seo_Key/SeoKeywordArray_zgazxxw_'.$_GET[navsheng].'.php') ) { require('../e/admin/other/Seo_Key/SeoKeywordArray_zgazxxw_'.$_GET[navsheng].'.php');//用戶增加 } elseif(is_file('../e/admin/other/Seo_Key/qy/SeoKeywordArray_zgazxxw_'.$_GET[navsheng].'.php')) { require('../e/admin/other/Seo_Key/qy/SeoKeywordArray_zgazxxw_'.$_GET[navsheng].'.php');//用戶增加 } else{ require('../e/admin/other/SeoKeywordArray_zgazxxw.php');//用戶增加 require('../e/admin/other/news/SeoKeywordArray_news.php');//=="news"add require('../e/admin/other/market/SeoKeywordArray_market.php');//用戶增加 } if($is_file_html==1) { //調用生成縮圖 function sys_ResizeImg($file,$width,$height,$docut=0,$target_filename='',$target_path='e/data/tmp/titlepic/'){ global $public_r,$ecms_config; if(!$file||!$width||!$height) { return $file; } //擴展名 $filetype=GetFiletype($file); if(!strstr($ecms_config['sets']['tranpicturetype'],','.$filetype.',')) { return $file; } $efileurl=eReturnFileUrl(); if(strstr($file,$efileurl)) { $file=str_replace($efileurl,'/d/file/',$file); } if(strstr($file,'://')) { return $file; } $filename=ECMS_PATH.substr($file,1); if(!file_exists($filename)) { return $file; } //用戶增加語句 if(strstr($file,'/d/file/') || strstr($file,'/images-w/')) { $target_path=dirname(str_replace(array('/d/file/','/images-w/'),'ResizeImg/',$file))."/"; $pic_dir=ECMS_PATH; $dir_arr=array(); $dir_arr=explode("/",$target_path); foreach($dir_arr as $v) { $pic_dir.=$v."/"; DoFileMkDir($pic_dir);//建目錄 } } //用戶增加語句 if($target_filename) { $newfilename=$target_filename; } else { $newfilename=md5($file.'-'.$width.'-'.$height.'-'.$docut); } $newpath=ECMS_PATH.$target_path; $newurl=$public_r['newsurl'].$target_path; $newname=$newpath.$newfilename; if(empty($target_filename)&&file_exists($newname.$filetype)) { return $newurl.$newfilename.$filetype; } if(!defined('InEmpireCMSGd')) { include_once ECMS_PATH.'e/class/gd.php'; } $filer=ResizeImage($filename,$newname,$width,$height,$docut); $fileurl=$newurl.$newfilename.$filer['filetype']; return $fileurl; } } $link=db_connect(); $empire=new mysqlquery(); eCheckCloseMods('fieldand');//關閉模塊 if($is_spider<>1) { $jiance=0; if($jiance==1)//如果開啟檢測 { $ip_v=egetrealip();//獲取真實ip if($ip_v) { $date_cur=date("Ymd"); $table="zgazxxw_".$dbtbpre."enew_regip"; $sql="select * from `{$table}` where `fabutime`='$date_cur' and `fabuip`='$ip_v'"; $lur1=$empire->fetch1($sql); if($lur1)//如果信息已經存在 { $regid=$lur1['id']; $empire->query("update `{$table}` set fabunum=fabunum+1 where id=".$regid); } else { $empire->query("insert into `{$table}` (fabutime,fabunum,fabuip) values('$date_cur','1','$ip_v');"); } } } } $tbname=''; $add=''; $addorder='newstime desc'; $search=''; $GLOBALS['navclassid']=0; $yhid=0; $is_html=1; if($is_html && !empty($_GET['seo_param']))//偽靜態啟用全局變量 { foreach($shengshi_mulu as $k=>$v) if($v['sheng_mulu_name']==$_GET['navsheng']) { if(strstr($v['province_name'],"企業"))//是否為企業判定根據信息數決定以下各參數設置 { $is_qy=1; $qy_arr_key=$k; if($qy_arr_key<900000) { require('./'.$_GET['navsheng'].'/qy_noinfo.php');//加載信息數量數組,獲取無信息區域 $_GET['classid']='772,773,774,776,777,798,814,815';//招標 } else { require('./'.$_GET['navsheng'].'/qy_noinfo_xin.php');//加載信息數量數組,獲取無信息區域 $_GET['classid']=775;//招標 } $temp_str=array(); if(strstr($_GET['seo_param'],"l")) { $temp_str=explode("l",$_GET['seo_param']);//字母后接欄目及分類參數 $lanmu_id_array=explode("c",$temp_str[1]); $lanmu_id=(int)$lanmu_id_array[0]; if($lanmu_id)$_GET['classid']=$lanmu_id; if(count($lanmu_id_array)>1)$_GET['class1']=(int)$lanmu_id_array[1]; } else { $temp_str=explode("c",$_GET['seo_param']);//字母后接欄目及分類參數 if(count($temp_str)>1)$_GET['class1']=(int)$temp_str[1]; // $temp_str[0]=$_GET['seo_param']; } $len=strlen($temp_str[0])-2;//截取數組下標 $noinfo_key=substr($temp_str[0],0,$len);//獲取信息數量數組下標 $noinfo_v=(int)$qy_noinfo_array[$noinfo_key];//獲取信息數量數組值 $shi_id=(int)substr($temp_str[0],0,2); $shi_name=$v['city'][$shi_id]['city_name'];//獲取企業名稱 $_GET['area']=$v['city'][$shi_id]['city_area']; $_GET['area']=array_search($_GET['area'],$area0);//將名稱替換為ID if($noinfo_v==0 && $qy_arr_key<900000) { $_GET['class1']=$v['city'][$shi_id]['class1']; } if($qy_arr_key>900000) { $_GET['area']=0; $len=strlen($temp_str[0])-5; $key_id=substr($temp_str[0],3,$len);//獲取關鍵詞數組id $start=strlen($temp_str[0])-2;//截取后兩位 $key_xh=(int)substr($temp_str[0],$start,2);//獲取關鍵詞序號 $key_str=explode("|",$key_mulu[$key_id]['keyword']);//關鍵詞 if($shi_name) { $pagetitle=$shi_name.$key_str[$key_xh]; $pagekey=$pagetitle.",".$shi_name.",".$key_str[$key_xh]; } else { $pagetitle="中國企業".$key_str[$key_xh]; $pagekey=$pagetitle.","."中國企業".",".$key_str[$key_xh]; } } else { $pagetitle=$shi_name."招標"; $pagekey=$pagetitle.",".$shi_name.","."招標"; } $pagedes=$key_mulu[0]['desc']; if($qy_arr_key>900000) $pagedes=str_replace('::::::SHI|||',"企業",$pagedes);//替換網頁描述中的省 else $pagedes=str_replace('::::::SHI|||',$shi_name,$pagedes);//替換網頁描述中的省 $pagedes=str_replace('::::::KEYWORD|||',"招標",$pagedes);//替換網頁描述中的主關鍵詞 } else { if($v['sheng_mulu_name']=="cn") $_GET['area']=""; else { $_GET['area']=$v['province_name']; $_GET['area']=array_search($_GET['area'],$area0);//將名稱替換為ID } $shi_id=(int)substr($_GET['seo_param'],0,2); if($shi_id)$shi_name=$v['city'][$shi_id]['city_name'];//獲取areaname區域數值 if(strstr($_GET['seo_param'],"l")) { $temp_str=explode("l",$_GET['seo_param']);//字母后接欄目及分類參數 $lanmu_id_array=explode("c",$temp_str[1]); $lanmu_id=$lanmu_id_array[0];//=="news"去除int if(count($lanmu_id_array)>1)$_GET['class1']=(int)$lanmu_id_array[1]; } else { $temp_str=explode("c",$_GET['seo_param']);//字母后接欄目及分類參數 if(count($temp_str)>1)$_GET['class1']=(int)$temp_str[1]; } $len=strlen($temp_str[0])-5; // $key_id=(int)substr($temp_str[0],3,$len);//獲取關鍵詞數組id $key_id=substr($temp_str[0],3,$len);//獲取關鍵詞數組id $_GET['classid']=$key_mulu[$key_id]['CID']; if($lanmu_id) { if($key_mulu[$key_id]['tname']=="news") $_GET['classid']=$lanmu_id; else $_GET['classid']=(int)$lanmu_id; } $start=strlen($temp_str[0])-2;//截取后兩位 $key_xh=(int)substr($temp_str[0],$start,2);//獲取關鍵詞序號 $key_str=explode("|",$key_mulu[$key_id]['keyword']);//關鍵詞 if($_GET['class1']=="") $_GET['class1']=$key_mulu[$key_id]['class1']; if(!is_numeric($_GET['class1']) && $_GET['class1']<>"") { $add.=" and class1 like '%$_GET[class1]%' "; $_GET['class1']=""; } if(!empty($key_mulu[$key_id]['zx_class'])) { $zx_class=$key_mulu[$key_id]['zx_class']; $add.=" and zx_class like '%$zx_class%' "; } $ss_hz=(int)substr($temp_str[0],2,1);//獲取是否帶省市后綴的參數 if(!$ss_hz){$v['hz_name']=""; $v['city'][$shi_id]['hz_name']="";} if($shi_id)//如果存在地級市 { $pagetitle=$shi_name.$v['city'][$shi_id]['hz_name'].$key_str[$key_xh]; $pagekey=$pagetitle.",".$shi_name.$v['city'][$shi_id]['hz_name'].",".$key_str[$key_xh]; $pagedes=$key_mulu[$key_id]['desc']; $pagedes=str_replace('::::::SHI|||',$shi_name.$v['city'][$shi_id]['hz_name'],$pagedes);//替換網頁描述中的省 $pagedes=str_replace('::::::KEYWORD|||',$key_str[$key_xh],$pagedes);//替換網頁描述中的主關鍵詞 } else { $pagetitle=$v['province_name'].$v['hz_name'].$key_str[$key_xh]; $pagekey=$pagetitle.",".$v['province_name'].$v['hz_name'].",".$key_str[$key_xh]; $pagedes=$key_mulu[$key_id]['desc']; $pagedes=str_replace('::::::SHI|||',$v['province_name'].$v['hz_name'],$pagedes);//替換網頁描述中的省 $pagedes=str_replace('::::::KEYWORD|||',$key_str[$key_xh],$pagedes);//替換網頁描述中的主關鍵詞 } } $SHENG_NAME=$v['province_name'];//定義省名稱變量,向模板中傳遞數值 $SHENG_MULU=$_GET['navsheng'];//定義省名稱目錄,向模板中傳遞數值 $SHENG_CODE=$k;//定義省名稱變量,向模板中傳遞數值 $SHI_CODE=$shi_id;//定義市名稱代碼變量,向模板中傳遞數值 if(strstr($v['province_name'],"企業") && $qy_arr_key<900000)//是否為企業判定根據信息數決定以下各參數設置 { $SEOKEY_CODE=0;//定義關鍵詞變量,向模板中傳遞數值 $SEOKEY_NAME="招標";//SEO主關鍵詞名稱,向模板中傳遞數值 $SEOKEY_NAME_INDEX="00";//SEO主關鍵詞數組序號,向模板中傳遞數值 $S_S_HZ_K_CODE=$noinfo_key;//定義省或市+后綴+關鍵詞組合變量,向模板中傳遞數值 $S_S_HZ_CODE=substr($noinfo_key,0,3);//定義省或市+后綴組合變量,向模板中傳遞數值 } else { $SEOKEY_CODE=$key_id;//定義關鍵詞變量,向模板中傳遞數值 $SEOKEY_NAME=$key_str[$key_xh];//SEO主關鍵詞名稱,向模板中傳遞數值 $SEOKEY_NAME_INDEX=strlen($key_xh)==1?"0".$key_xh:$key_xh;//SEO主關鍵詞數組序號,向模板中傳遞數值 $S_S_HZ_K_CODE=substr($temp_str[0],0,strlen($temp_str[0])-2);//定義省或市+后綴+關鍵詞組合變量,向模板中傳遞數值 $S_S_HZ_CODE=substr($temp_str[0],0,3);//定義省或市+后綴組合變量,向模板中傳遞數值 } if($shi_id) $width=(strlen($v['city'][$shi_id]['city_name'].$SEOKEY_NAME)-10)*16; else $width=(strlen($SHENG_NAME.$SEOKEY_NAME)-10)*16; $LOGO_STYLE=''; if($is_qy) { if($qy_arr_key<900000) $_GET['tempid']=76;// else $_GET['tempid']=112;// } else $_GET['tempid']=$tb_tempid_arr[$key_mulu[$key_id]['tname']];// break; } } //資訊seo處理開始 if($key_mulu[$key_id]['tname']=="news") { if($_GET['classid']==945) $_GET['area']=""; //技術論文全部采用中國的信息 $_GET['tempid']=114; if(!is_numeric($_GET['classid']) && $_GET['classid']<>"") { $classid_bak=$_GET['classid']; $_GET['classid']=intval($_GET['classid']); $zxleibie=addslashes(str_replace($_GET['classid'],"",$classid_bak)); $add.=" and zxleibie= '$zxleibie' "; } } //資訊seo處理結束 $seo_class_dir=ECMS_PATH.'e/data/dbcache/seo_class_'.$key_mulu[$key_id]['tname'].'.php'; if(is_file($seo_class_dir)) require('../e/data/dbcache/seo_class.php'); else require('../e/data/dbcache/class.php'); //企業模型用 if(!empty($_GET['class1']) && !is_numeric($_GET['class1'])) { $class_v=$_GET['class1']; $add.=" and class1 like '%$class_v%'"; $_GET['class1']=""; } //企業模型用 if($_GET['zx_class'] && !is_numeric($_GET['zx_class'])) { $class_v=$_GET['zx_class']; $add.=" and zx_class like '%$class_v%'"; $_GET['zx_class']=""; } if(empty($pagetitle))$pagetitle=$public_r['sitename']; if(empty($pagekey))$pagekey=$public_r['sitename']; if(empty($pagedes))$pagedes=$public_r['sitename']; $classimg=$public_r[newsurl].'e/data/images/notimg.gif'; $url="".$fun_r['index']." > ".$fun_r['infolist']; $pageecms=1; $pageclassid=0; $have_class=1; //欄目 $trueclassid=0; $classid=$_GET['classid']; //if($_GET['navsheng']=="cq") echo "cs"; if($classid) { $classid=RepPostVar($classid); if(strstr($classid,','))//多欄目 { $son_r=sys_ReturnMoreClass($classid,1); $trueclassid=$son_r[0]; $add.=' and ('.$son_r[1].')'; } else { $trueclassid=intval($classid); if($class_r[$trueclassid][islast])//終極欄目 { $add.=" and classid='$trueclassid'"; $have_class=0; } else { $add.=' and '.ReturnClass($class_r[$trueclassid][sonclass]); } $cr=$empire->fetch1("select classpagekey,intro,classimg,cgroupid from {$dbtbpre}enewsclass where classid='$trueclassid'"); //權限 if($cr['cgroupid']) { $mgroupid=(int)getcvar('mlgroupid'); if(!strstr($cr[cgroupid],','.$mgroupid.',')) { printerror('NotLevelToClass','history.go(-1)',1); } } if($is_html && !empty($_GET['seo_param']))//偽靜態啟用全局變量 { $pagetitle=$pagetitle; $pagekey=$pagekey; $pagedes=$pagedes; } else { $pagetitle=$class_r[$trueclassid]['classname']; $pagekey=$cr['classpagekey']; $pagedes=$cr['intro']; } $classimg=$cr['classimg']?$cr['classimg']:$public_r[newsurl].'e/data/images/notimg.gif'; $url=ReturnClassLink($trueclassid); $pageecms=0; $pageclassid=$trueclassid; $GLOBALS['navclassid']=$trueclassid; } if(empty($class_r[$trueclassid][tbname])) { printerror('ErrorUrl','',1); } if(empty($tbname)) { $tbname=$class_r[$trueclassid][tbname]; $mid=$class_r[$trueclassid][modid]; $yhid=$class_r[$trueclassid][yhid]; } if($class_r[$trueclassid][reorder]) { $addorder=$class_r[$trueclassid][reorder]; } $search.='&classid='.$classid; } //每頁顯示記錄數 $line=(int)$_GET['line']; if($line<1||$line>80) { if($class_r[$trueclassid]['lencord']) { $line=$class_r[$trueclassid]['lencord']; } else { $line=intval($public_r['qlistinfonum']); } } if(empty($line)) { printerror('ErrorUrl','',1); } if(!empty($shi_name))//如果縣市信息不為空 { if($qy_arr_key<900000) { if($is_qy<>1) { $temp_dir='./'.$_GET['navsheng'].'/'.$tbname.'_noinfo.php';//market與news應用 if(is_file($temp_dir)) require($temp_dir);//加載信息數量數組,獲取無信息區域 else require('./'.$_GET['navsheng'].'/noinfo.php');//加載信息數量數組,獲取無信息區域 if($noinfo_array[$S_S_HZ_K_CODE]>=3) {$add.=" and areaname like '$shi_name%' "; $no_shiinfo=1;}//如果市級信息大于3條 } elseif($noinfo_v>0) { $no_shiinfo=1; if($noinfo_v>$page*$line) $add.=" and title like '%$shi_name%'"; } } else { $no_shiinfo=1; $yID=$qy_arr_key*100+$shi_id; $add.=" and yID=$yID"; } } //列表模板 $tempid=(int)$_GET['tempid']; if(empty($tempid)) { if($trueclassid)//欄目 { $tempid=$class_r[$trueclassid]['dtlisttempid']?$class_r[$trueclassid]['dtlisttempid']:$class_r[$trueclassid]['listtempid']; } } else { DtTempIsClose($tempid,'listtemp'); } if(empty($tempid)) { printerror('ErrorUrl','',1); } $tempr=$empire->fetch1("select tempid,temptext,subnews,listvar,rownum,showdate,modid,subtitle,docode from ".GetTemptb("enewslisttemp")." where tempid='$tempid'"); if(empty($tempr[tempid])) { printerror('ErrorUrl','',1); } $search.='&line='.$line.'&tempid='.$tempid; if(empty($mid)) { $mid=$tempr['modid']; } //結合項 if(!empty($emod_r[$mid]['listandf'])&&$_GET['ph']==1) { $andor=$_GET['andor']=='or'?'or':'and'; $search.='&ph=1&andor='.$andor; $listandf=''; $andr=explode(',',$emod_r[$mid]['listandf']); $count=count($andr)-1; for($i=1;$i<$count;$i++) { $andval=$_GET[$andr[$i]]; if(!empty($andval)) { $andval=RepPostVar2($andval); $doandor=empty($listandf)?'':' '.$andor.' '; if(strstr($andval,'__')) { $andbtr=explode('__',$andval); $andbtr[0]=(float)$andbtr[0]; $andbtr[1]=(float)$andbtr[1]; if($andbtr[0]&&$andbtr[1]) { $listandf.=$doandor.$andr[$i]." BETWEEN '".$andbtr[0]."' and '".$andbtr[1]."'"; } } elseif(empty($emod_r[$mid]['setandf'])) { $listandf.=$doandor.$andr[$i]."='".$andval."'"; } else { $listandf.=$doandor.$andr[$i]." like '%".$andval."%'"; } $search.="&".$andr[$i]."=$andval"; } } if($listandf) { $add.=' and ('.$listandf.')'; } } //排序 $orderby=RepPostVar($_GET['orderby']); $myorder=(int)$_GET['myorder']; if($orderby) { $orderr=ReturnDoOrderF($mid,$orderby,$myorder); $addorder=$orderr['returnorder']; } /* $is_spider=is_spider(); if($is_spider==1 && ($tbname=="sb" || $tbname=="gj" || $tbname=="cl")) { if(strpos($_GET['seo_param'],"c") && $_GET['page']>20) $_GET['page']=0; } */ $search.='&orderby='.$orderby.'&myorder='.$myorder; $page=(int)$_GET['page']; $page=RepPIntvar($page); $start=0; $page_line=9;//每頁顯示鏈接數 $offset=$page*$line;//總偏移量 //系統模型 $ret_r=ReturnReplaceListF($mid); //優化 $yhadd=''; if($yhid) { $yhadd=ReturnYhSql($yhid,$yhvar); } //總數 $totalnum=(int)$_GET['totalnum']; //--------------------用戶增加訪問總表與分表參數處理語句-------------------------------------------- if(strstr($_GET[classid],",")) { $cid_arr=explode(",",$_GET[classid]); $_GET[classid]=$class_r[$cid_arr[0]]['bclassid']; } $u_class1=(int)$_GET[class1];//如果為企業應重新考慮獲取參數及處理方法 $u_class2=(int)$_GET[class2]; $u_class3=(int)$_GET[class3]; $u_class4=(int)$_GET[class4]; $u_area=(int)$_GET[area]; if($shi_id) $city_str="-$shi_id"; else $city_str=""; //--------------------用戶增加訪問總表與分表參數處理語句-------------------------------------------- //如果是企業招標平臺處理開始******************** if($qy_arr_key>900000) include('ListInfo_include_qy.php'); elseif($tbname=="news") include('ListInfo_include_news.php'); elseif($tbname=="market") include('ListInfo_include_market.php'); else include('ListInfo_include_qt.php'); //如果是企業招標平臺處理結束******************** $sql_arr=array(); $cur_db1=array();$cur_db1[]=$query; $query_xin="";//add if(count($cur_db)>1) {$kh_left="(";$kh_right=")";}//add else {$kh_left="";$kh_right="";}//add foreach($cur_db as $query_k=>$query_new) { //如果存在并采用預讀信息 if($is_ids==1) { if(count($merge_arr)>0) { $query_arr=explode(" where ",$query_new); $query_new=$query_arr[0]." where id in(".implode(",",$merge_arr).") order by ".$addorder; } else break; } if($query_k==0) $union="";//add else $union=" union all ";//add $query_xin.=$union.$kh_left.$query_new.$kh_right;//add // $sql_arr[$query_k]="sql".$query_k; // ${$sql_arr[$query_k]}=$empire->query($query_new); } //$sql=$empire->query($query); //if($is_ids==1) echo $query_xin; if($query_xin && $is_page1<>1) $sql=$empire->query($query_xin);//add //分頁 $listpage=seopage1($num,$line,$page_line,$start,$page,$search); //seo動態頁從已經生成的頁面轉換開始------------------------------ if($is_file_html==1) { $string_add=@file_get_contents($file_dir_html); $temp_arr_add=array(); $list_r_add=explode("",$string_add); $temp_arr_add[0]=$list_r_add[0].""; $replace=""; if($tbname=="news") { if($_GET['classid']==945) @include($_SERVER['DOCUMENT_ROOT']."/fenldh/newsdh/docclass.php"); else @include($_SERVER['DOCUMENT_ROOT']."/fenldh/xmfldh/topclass.php"); } elseif($tbname=="market") { @include($_SERVER['DOCUMENT_ROOT']."/fenldh/hqfldh/topclass.php"); $temp_arr=$class0[$_GET['classid']]; $class0=array(); $class0=$temp_arr; } else { $table_topclass=array("zhaobiao"=>"zbfldh","xiangmu"=>"xmfldh","gj"=>"gjfldh","cl"=>"clfldh","qyk"=>"zbfldh"); if($table_topclass[$tbname]) @include($_SERVER['DOCUMENT_ROOT']."/fenldh/".$table_topclass[$tbname]."/topclass.php"); elseif($tbname=="sb" || $tbname=="zsdl") @include($_SERVER['DOCUMENT_ROOT']."/fenleishebei/topclass.php"); } if($_GET['class1']>0 && $class0[$_GET['class1']]) { $replace.=$class0[$_GET['class1']]." - "; $temp_arr_add[0]=str_replace("全部行業",$class0[$_GET['class1']]."",$temp_arr_add[0]); } $GLOBALS['seo_class0']=$class0; if((!strstr($_GET['classid'],",") && !empty($_GET['classid']))) { $replace.=$class_r[$_GET['classid']]['classname']." - "; if(strstr($_GET['seo_param'],"l")) { $temp_arr_add[0]=str_replace(" class=\"sssX\"","",$temp_arr_add[0]); $y=$seo_param[0]."l".$_GET['classid']."-0.html\""; $x=$y." class=\"sssX\""; $temp_arr_add[0]=str_replace($y,$x,$temp_arr_add[0]); $temp_arr_add[0]=str_replace($seo_param[0]."c",$seo_param[0]."l".$_GET['classid']."c",$temp_arr_add[0]); } } if(!empty($replace)) { $partten = '/([\w\W]*)<\/title>/U'; $replace = "<title>".$replace."$1"; $temp_arr_add[0] = preg_replace($partten,$replace,$temp_arr_add[0]); } if($tbname=="sb" || $tbname=="gj" || $tbname=="cl") $temp_arr_add[0].=''; if($tbname=="zhaobiao" && $is_qy<>1) { $partten = '/