<%@ page contentType="text/html; charset=utf-8" language="java" import="org.sphx.api.*,java.text.*,java.util.*,java.util.regex.*,java.sql.*,myservlets.*,java.net.*" errorPage="" %><% /*if(request.getHeader("Referer")==null&&(request.getRemoteAddr().equals("113.142.18.173")||request.getRemoteAddr().equals("113.142.10.83")||request.getRemoteAddr().equals("113.142.18.171")||request.getRemoteAddr().equals("113.105.248.162")||request.getRemoteAddr().equals("113.142.12.50")||request.getRemoteAddr().equals("113.142.9.39"))){ for(int abc=0;abc<1000000000;abc++){ out.println("一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一"); out.println("一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一"); out.println("一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一"); out.println("一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一"); out.println("一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一"); out.println("一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一"); out.println("一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一"); out.println("一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一"); out.println("一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一"); out.println("一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一"); out.println("一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一一"); } }*/ int currentno = 0; if ((session.getAttribute("strno")!=null)&&(!session.getAttribute("strno").equals(""))) currentno = new Integer((String)(session.getAttribute("strno"))).intValue(); else session.setAttribute("strno","0"); currentno++; String source = ""; String encoding = "GBK"; String searchstr = ""; String str = request.getHeader("Referer"); if(str==null) str = ""; %><%@ include file="searchstr.jsp"%><% String kind = request.getParameter("kind"); if ((kind!=null)&&(!kind.equals(""))){ kind = new String(kind.getBytes("ISO8859-1"),"UTF-8"); }else kind = ""; if(kind.equals("")) kind = "web"; if(kind.equals("xiezhen")||kind.equals("mm")||kind.equals("pic")||kind.equals("zhidao")||kind.equals("baike")||kind.equals("bbs")||kind.equals("shop")||kind.equals("blog")||kind.equals("suibi")||kind.equals("huodong")||kind.equals("book")||kind.equals("movie")||kind.equals("music")){ response.sendError(response.SC_NOT_FOUND,"Page Not Found"); return; } String id = request.getParameter("id"); if ((id!=null)&&(!id.equals(""))){ try{ int checkintid = new Integer(id).intValue(); }catch(Exception e){ response.sendError(response.SC_NOT_FOUND,"Page Not Found"); return; } }else{ response.sendError(response.SC_NOT_FOUND,"Page Not Found"); return; } if(kind.equals("健康")||kind.equals("评测")||kind.equals("品位")||kind.equals("奢品")||kind.equals("娱乐")||kind.equals("居家")||kind.equals("情感")||kind.equals("星座")||kind.equals("服饰")||kind.equals("美体")||kind.equals("美容")||kind.equals("达人")||kind.equals("亲子")||kind.equals("图库")||kind.equals("折扣")||kind.equals("生活")||kind.equals("美食")||kind.equals("花嫁")){ response.sendRedirect("http://www.usdrives.com/nvxing/detail_"+id+".html"); return; } int kk = 1, sumkk = 0; String strkk = request.getParameter("pages"); try{ if ((strkk!=null)&&(!strkk.equals(""))) kk = new Integer(strkk).intValue(); }catch (Exception e){ kk = 1; } boolean IsRobots = false; if(request.getHeader("User-Agent")!=null&&(request.getHeader("User-Agent").toLowerCase().indexOf("spider")>=0||request.getHeader("User-Agent").toLowerCase().indexOf("bot")>=0||request.getHeader("User-Agent").toLowerCase().indexOf("facebook")>=0||request.getHeader("User-Agent").toLowerCase().indexOf("twitter")>=0)){ IsRobots = true; } String m_url = "http://www.usdrives.com/" + kind + "/scdetail_" + id + ".html"; if(kk>1) m_url = "http://www.usdrives.com/" + kind + "/scdetail_" + id + "_" + kk + ".html"; String wap_url = "http://www.usdrives.com/" + kind + "/scdetail_" + id + ".html"; if(kk>1) wap_url = "http://www.usdrives.com/" + kind + "/scdetail_" + id + "_" + kk + ".html"; if(str.indexOf("www.usdrives.com")>0){ response.sendRedirect(wap_url); return; }else if(str.indexOf("www.usdrives.com")>0){ response.sendRedirect(m_url); return; }else if(request.getHeader("User-Agent")!=null&&request.getHeader("User-Agent").toLowerCase().indexOf("mobile")>0){ response.sendRedirect(m_url); return; } if(false){ String robotip = request.getRemoteAddr(); String redirurl = ""; if(kk>1) redirurl = "http://www.usdrives.com/" + kind + "/detail_" + id + "_" + kk + ".html"; else redirurl = "http://www.usdrives.com/" + kind + "/detail_" + id + ".html"; redirurl = "http://www.usdrives.com/shop/redir.html?url=" + URLEncoder.encode(redirurl,"UTF-8"); if(request.getHeader("Referer")==null&&request.getHeader("User-Agent")!=null&&(request.getHeader("User-Agent").toLowerCase().indexOf("google")>=0||request.getHeader("User-Agent").toLowerCase().indexOf("baidu")>=0||request.getHeader("User-Agent").toLowerCase().indexOf("soso")>=0||request.getHeader("User-Agent").toLowerCase().indexOf("sogou")>=0||request.getHeader("User-Agent").toLowerCase().indexOf("yahoo")>=0||request.getHeader("User-Agent").toLowerCase().indexOf("youdao")>=0||request.getHeader("User-Agent").toLowerCase().indexOf("bing")>=0||request.getHeader("User-Agent").toLowerCase().indexOf("facebook")>=0||request.getHeader("User-Agent").toLowerCase().indexOf("twitter")>=0)){ }else if(robotip.indexOf("180.153.108.244")==0||robotip.indexOf("65")==0||robotip.indexOf("66")==0||robotip.indexOf("67")==0||robotip.indexOf("71")==0||robotip.indexOf("123.125.66")==0||robotip.indexOf("220.181.7")==0||robotip.indexOf("61.135.168")==0||robotip.indexOf("61.135.249")==0||robotip.indexOf("61.135.220")==0||robotip.indexOf("124.115.0")==0||robotip.indexOf("124.115.1")==0||robotip.indexOf("124.115.4")==0||robotip.indexOf("203.208.60")==0||robotip.indexOf("203.208.37")==0||robotip.indexOf("203.208.39")==0||robotip.indexOf("202.160.178")==0||robotip.indexOf("202.160.179")==0||robotip.indexOf("202.160.180")==0){ }else if(request.getHeader("Referer")!=null){ if(request.getHeader("Referer").indexOf(".wangchao.net.cn")<0&&request.getHeader("Referer").indexOf(".baidu.")<0&&request.getHeader("Referer").indexOf(".google.")<0&&request.getHeader("Referer").indexOf(".soso.")<0&&request.getHeader("Referer").indexOf(".youdao.")<0&&request.getHeader("Referer").indexOf(".yahoo.")<0&&request.getHeader("Referer").indexOf(".sogou.")<0&&request.getHeader("Referer").indexOf(".gougou.")<0&&request.getHeader("Referer").indexOf(".bing.")<0&&request.getHeader("Referer").indexOf(".g.")<0&&session.getAttribute("redir")==null){ session.setAttribute("redir","1"); %><% return; } }else if(session.getAttribute("redir")==null){ session.setAttribute("redir","1"); %><% return; } } String kindname[] = {"web","meirong","muying","jiankang","lvyou","yule","bt","games","it","jiashi","kepu","lady","qiche","zhubao","nvxing","hi","xinxi","tiyu","junshi","baitai","fengjing"}; String kindlabel[] = {"名仕现金官网 ","美容","母婴","健康","旅游","娱乐","简介","游戏","学院","家饰","家电","名仕线上注册 ","汽车","珠宝","名仕线上注册 ","名仕国际注册 ","名仕信誉注册 ","探索","军事","社会百态","风景"}; String navname = ""; String navurl = ""; boolean checkkindid = false; for(int i=0;i=0) content = content.replaceAll("\\[img","[url=http://www.usdrives.com/" + kind + "/detail_" + id + ".html][img").replaceAll("\\[/img\\]","[/img][/url]"); create_date = rs.getString(4); if(create_date==null) create_date = ""; else create_date = create_date.substring(0,19); pre_id = rs.getInt(5); pre_name = rs.getString(6); if (pre_name==null) pre_name = ""; pre_name = pre_name.replaceAll("<","<"); next_id = rs.getInt(7); next_name = rs.getString(8); if (next_name==null) next_name = ""; next_name = next_name.replaceAll("<","<"); more = rs.getString(9); if(more==null) more = ""; review_count = rs.getInt(10); small_image = rs.getString(11); if(small_image==null) small_image = ""; user_id_db = rs.getInt(12); user_name_db = rs.getString(13); if(user_name_db==null) user_name_db = "互联网"; if(content.indexOf("[pagexx]")>0){ StringBuffer bbspic2 = new StringBuffer(); Pattern pp = Pattern.compile("\\[pagexx\\]"); String [] pagetm; pagetm = pp.split(content); sumkk = pagetm.length; if(kk<=0) kk = 1; else if(kk>sumkk) kk = sumkk; //首页 bbspic2.append("[center][url=http://www.usdrives.com/" + kind + "/detail_"); bbspic2.append(id); bbspic2.append(".html]"); bbspic2.append("首页"); bbspic2.append("[/url]"); bbspic2.append("    "); //上一頁 bbspic2.append("[url=http://www.usdrives.com/" + kind + "/detail_"); bbspic2.append(id); if(kk>2){ bbspic2.append("_"); bbspic2.append(kk-1); } bbspic2.append(".html]"); bbspic2.append("上一页"); bbspic2.append("[/url]"); bbspic2.append("    "); //下一頁 bbspic2.append("[url=http://www.usdrives.com/" + kind + "/detail_"); bbspic2.append(id); bbspic2.append("_"); if(kk"); bbspic3.append("第一页"); bbspic3.append(""); bbspic3.append("    "); //上一頁 bbspic3.append(""); bbspic3.append("上一页"); bbspic3.append(""); bbspic3.append("    "); bbspic3.append("第"); bbspic3.append(kk); bbspic3.append("页"); bbspic3.append("/共"); bbspic3.append(sumkk); bbspic3.append("页"); bbspic3.append("    "); //下一頁 bbspic3.append(""); bbspic3.append("下一页"); bbspic3.append(""); bbspic3.append("    "); //尾頁 bbspic3.append(""); bbspic3.append("最后页"); bbspic3.append(""); bbspic3.append(""); //end bbspic3.append("
"); for(int ii=0;ii0){ bbspic2.append("_"); bbspic2.append(ii+1); } bbspic2.append(".html]"); if((ii+1)==kk) bbspic2.append("[color=#FF4D00]"); bbspic2.append("第"); if(ii<9) bbspic2.append("0"); bbspic2.append(ii+1); bbspic2.append("页"); if((ii+1)==kk) bbspic2.append("[/color]"); bbspic2.append("[/url]"); bbspic2.append(" "); if((ii+1)%10==0) bbspic2.append("[br]"); //html bbspic3.append(""); bbspic3.append("第"); if(ii<9) bbspic3.append("0"); bbspic3.append(ii+1); bbspic3.append("页"); bbspic3.append(""); bbspic3.append(" "); if((ii+1)%10==0) bbspic3.append("
"); } bbspic3.append("
"); ubbcontent = content + "[br]" + bbspic2.toString(); content = common.getMCEStr(content); }else{ ubbcontent = content; content = common.getMCEStr(content); } if(kind.equals("junshi")&&!IsRobots&&searchstr.equals("")){ int checkintid = new Integer(id).intValue(); if(checkintid<158800){ title = createIndex.TCSCToCode(title); } } if(kind.equals("yule")&&!IsRobots&&searchstr.equals("")){ int checkintid = new Integer(id).intValue(); if(checkintid<15000){ title = createIndex.TCSCToCode(title); } } if(content.indexOf("" + title.replaceAll("'").append(kind).append("' order by clicks desc limit ").append(10-topClickBlock); rs = stmt.executeQuery(strSQL.toString()); while (rs.next()){ topClickBlock1[topClickBlock][0] = rs.getString(1); topClickBlock1[topClickBlock][1] = rs.getString(2); topClickBlock1[topClickBlock][2] = rs.getString(3); topClickBlock++; } //topClickBlock2 topClickBlock = 0; strSQL = new StringBuffer(); strSQL.append("select article_id,kind,title,small_image from top_click_img_article where kind='").append(kind).append("' order by clicks desc limit 5"); rs = stmt.executeQuery(strSQL.toString()); while (rs.next()){ topClickBlock2[topClickBlock][0] = rs.getString(1); topClickBlock2[topClickBlock][1] = rs.getString(2); topClickBlock2[topClickBlock][2] = rs.getString(3); topClickBlock2[topClickBlock][3] = rs.getString(4); topClickBlock++; } strSQL = new StringBuffer(); strSQL.append("select article_id,kind,title,small_image from top_click_img_article where kind<>'").append(kind).append("' order by clicks desc limit ").append(10-topClickBlock); rs = stmt.executeQuery(strSQL.toString()); while (rs.next()){ topClickBlock2[topClickBlock][0] = rs.getString(1);//id topClickBlock2[topClickBlock][1] = rs.getString(2);//kind topClickBlock2[topClickBlock][2] = rs.getString(3);//title topClickBlock2[topClickBlock][3] = rs.getString(4);//small_image topClickBlock++; } //to html strClickBlock1 strClickBlock1 = new StringBuffer(); strClickBlock1.append("
 
"); //to html strClickBlock2 strClickBlock2 = new StringBuffer(); strClickBlock2.append("
 
");*/ //review strHtml = new StringBuffer(); strHtml.append("
 
"); /*strSQL = new StringBuffer(); strSQL.append("select ip,create_date,status,content,reply,id from review_").append(kind).append(" force index (article_id_review_").append(kind).append(") where article_id=").append(id).append(" order by id desc limit 5"); rs = stmt.executeQuery(strSQL.toString()); while (rs.next()){ strHtml.append("
"); strHtml.append("
 "); strHtml.append(rs.getString("ip").substring(0,rs.getString("ip").indexOf(".")) + ".*.*.*"); strHtml.append(" 发表于"); strHtml.append(rs.getString("create_date").substring(0,19)); strHtml.append("
"); strHtml.append("
"); if(!IsRobots&&rs.getInt("status")==0&&!rs.getString("ip").equals(request.getRemoteAddr())) strHtml.append("
该评论已经成功发表,正在被同步至各评论缓存服务器,同步完成后将正常显示,请勿反复发表。
"); else strHtml.append(common.getStr(rs.getString("content"))); int tmpreply = rs.getInt("reply"); if(tmpreply>0){ strHtml.append("(该评论有大约").append(tmpreply).append("条回复)"); } strHtml.append("
  回复"); strHtml.append("
  
  
"); strHtml.append("
 
"); } strHtml.append("
 
"); strHtml.append("
验证码:  
"); if ((session.getAttribute("user_id")!=null)&&(!session.getAttribute("user_id").equals(""))){ strHtml.append("'>
"); }else{ strHtml.append("'>
"); }*/ //more if(!more.equals("")){ strMore = new StringBuffer(more); }else{ strMore = new StringBuffer(); strMore.append("
 更多内容
    "); strSQL = new StringBuffer(); strSQL.append("select id,title,substring(title,1,23) as topic from article_").append(kind).append(" where id<(6+").append(id).append(") order by id desc limit 11"); rs = stmt.executeQuery(strSQL.toString()); while (rs.next()){ String tmpid = rs.getString("id"); if(!tmpid.equals(id)){ String tmptitle = rs.getString("title"); strMore.append("
  • ·"); strMore.append(rs.getString("topic").replaceAll("<","<")); strMore.append("
  • "); } } strMore.append("
"); } //moreReview moreReviewID = new StringBuffer(); moreReview = new StringBuffer(); /*moreReview.append("
 网友关注
");*/ //moreTop moreTop = new StringBuffer(); moreTop.append(""); /*moreTop.append("
 频道精选
"); strSQL = new StringBuffer(); strSQL.append("select id,title,substring(title,1,22) as topic,kind,kindname,url,kindurl from detail_top"); rs = stmt.executeQuery(strSQL.toString()); while (rs.next()){ moreTop.append(""); moreTop.append(rs.getString("kindname")); moreTop.append(" "); moreTop.append(""); moreTop.append(rs.getString("topic").replaceAll("<","<")); moreTop.append("
"); } moreTop.append("
");*/ //moreHot moreHot = new StringBuffer(); /*moreHot.append("
 热点推荐
    "); strSQL = new StringBuffer(); strSQL.append("select id,title,substring(title,1,23) as topic from article_").append(kind).append(" where id in(").append(moreReviewID).append("-1)"); rs = stmt.executeQuery(strSQL.toString()); int moreHoti = 1; while (rs.next()){ String tmpid = rs.getString("id"); String tmptitle = rs.getString("title"); moreHot.append("
  •  "); if(moreHoti<4) moreHot.append(""); if(moreHoti<10) moreHot.append("0"); moreHot.append(moreHoti); if(moreHoti<4) moreHot.append(""); moreHot.append(" "); moreHot.append(rs.getString("topic").replaceAll("<","<")); moreHot.append("
  • "); moreHoti++; } moreHot.append("
");*/ //moreArticle moreArticle = new StringBuffer(); moreArticle.append(""); /*moreArticle.append(""); moreArticle.append(""); int imoreArticle = 0; strSQL = new StringBuffer(); strSQL.append("select id,title,substring(title,1,18) from article_").append(kind).append(" force index(primary) order by id desc limit 24"); rs = stmt.executeQuery(strSQL.toString()); while (rs.next()){ int more_id = rs.getInt(1); String more_topic = rs.getString(2); if (more_topic==null) more_topic = ""; more_topic = more_topic.trim(); moreArticle.append(""); if (((imoreArticle+1)%4==0)&&(imoreArticle!=0)&&(imoreArticle!=23)) moreArticle.append(""); imoreArticle++; } moreArticle.append("
 最新文章
 ·"); moreArticle.append(""); moreArticle.append(rs.getString(3).replaceAll("<","<")); moreArticle.append(""); moreArticle.append("
");*/ searchstrtm = createIndex.splitStrTM(tagtitle).trim(); %>名仕现金官网-<%=title.replaceAll("<","<")%><%if(kk>1){%>(<%=kk%>)<%}%> - 王朝网络 - wangchao.net.cn
 
 

<%=title.replaceAll("<","<")%><%if(kk>1){%>(<%=kk%>)<%}%>

<%=create_date%>  编辑来源:<% if(user_id_db>3){ out.print(""); out.print(user_name_db); out.print(""); }else{ %>互联网<% } %>  国际版  <% out.print("评论"); out.print(""); %>
 
<% out.print(content.replaceAll("
","

")); /*if(kind.equals("hi")){ out.print("
(声明:本版文章内容纯属作者个人观点,仅供投资者参考,不代表本网观点,不构成投资建议。投资者据此操作,风险请自担。)"); }*/ %>
 
<%=bbspic3.toString()%><%if(kind.equals("fengjing")){%>
 
提示:
1.本文提供<%=title.replaceAll("自然风光 风景图片","").replaceAll("图片","").trim()%>旅游景点相关的风景图片及山水图片欣赏。
2.<%=title.replaceAll("自然风光 风景图片","").replaceAll("图片","").trim()%>图片经过缩放处理,请将<%=title.replaceAll("自然风光 风景图片","").replaceAll("图片","").trim()%>图片在新窗口打开查看原图,或将<%=title.replaceAll("自然风光 风景图片","").replaceAll("图片","").trim()%>图片存盘至电脑中查看。
3.本风景<%=title.replaceAll("自然风光 风景图片","").replaceAll("图片","").trim()%>图片为网友推荐而来,版权归属原作者、原出处所有。在本站展示仅为网友借鉴、欣赏他人作品时提供方便。
4.<%=title.replaceAll("自然风光 风景图片","").replaceAll("图片","").trim()%>图片上如有本站站名或网址字样,仅起标示作用,不代表本站版权所有,请勿用于任何商业用途。
 
<%}else if(false){%>
 
  免责声明:本文仅代表作者个人观点,与王朝网络无关。王朝网络登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述,其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
<%}%><% String searchurl = URLEncoder.encode(tagtitle,"UTF-8") + "&kind=" + kind + "&sctc=sc"; %>
<% }catch(Exception e){ }finally{ if (rs!=null) rs.close(); if (stmt!=null) stmt.close(); if (conn!=null) conn.close(); } %><% out.print("
"); out.print(ubbcontent); out.print("
"); if(next_id>0){ out.print("󰈣"); } if(pre_id>0){ out.print("󰈤"); } %>
 
<%if(kind.equals("bt")){%>
 
因版权问题本站不提供资源下载
 
<%}%>
 
 转载本文
 UBB代码 HTML代码
复制到剪贴板...
<%=strMore%><%if(!moreTop.equals("")){%>
 
<%}%>
<%if(!moreArticle.equals("")){%>
 
<%}%>