<%@page contentType="application/xml; charset=UTF-8"%><%@include file="../include/Config.jsp"%><%@include file="../include/DBCon.jsp"%><%String XmlStr="",Source="",FlvTitle="";if(StrFormat.isNum(request.getParameter("id"))){XmlStr="<?xml version=\"1.0\" encoding=\"UTF-8\"?><vcastr><channel>";if(request.getParameter("act").equals("web")){DBSql="select s.dir,f.id,f.title,f.`file` from flv AS f Left Join ser AS s ON f.serid = s.id where f.isbest=1 order by f.id desc";}else{if(request.getParameter("act").equals("type")){DBSql="select s.dir,f.id,f.title,f.`file` from flv AS f Left Join ser AS s ON f.serid = s.id where f.typeid="+request.getParameter("id")+" order by f.id desc";}else{if(request.getParameter("act").equals("home")){DBSql="select s.dir,f.id,f.title,f.`file` from flv AS f Left Join ser AS s ON f.serid = s.id where f.homeid="+request.getParameter("id")+" order by f.id desc";}else{DBSql="select s.dir,f.id,f.title,f.`file` from flv AS f Left Join ser AS s ON f.serid = s.id where f.id="+request.getParameter("id");}}}try{DBStmt = DBCon.createStatement();DBRs=DBStmt.executeQuery(DBSql);int i=0;while(DBRs.next() && i<5){i++;FlvTitle=DBRs.getString("title");Source=DBRs.getString("file");if(FlvTitle.length()>26){FlvTitle=FlvTitle.substring(0,24)+"..";}if(Source.toLowerCase().indexOf("http://") == -1){Source=HostStr+"/"+UpPathStr+"flv/"+DBRs.getString("dir")+"/"+Source;}XmlStr+="<item><source>"+Source+"</source><duration></duration><title>"+FlvTitle+"</title></item>";}XmlStr+="</channel><config><bufferTime>1</bufferTime><contralPanelAlpha>0.8</contralPanelAlpha><controlPanelBgColor>0x1F1F1F</controlPanelBgColor><controlPanelBtnColor>0xFFFFFF</controlPanelBtnColor><contralPanelBtnGlowColro>0x66FF00</contralPanelBtnGlowColro><controlPanelMode>float</controlPanelMode><defautVolume>0.8</defautVolume><isAutoPlay>true</isAutoPlay><isLoadBegin>true</isLoadBegin><isShowAbout>false</isShowAbout><scaleMode>showAll</scaleMode><isRepeat>true</isRepeat></config>";if(!request.getParameter("act").equals("web")){XmlStr+="<plugIns><logoPlugIn><url>"+HostStr+"/play/LogoPlugIn.swf</url><logoText>V.21hong.com</logoText><logoTextAlpha>0.8</logoTextAlpha><logoTextFontSize>28</logoTextFontSize><logoTextLink>"+HostStr+"</logoTextLink><logoTextColor>0x66FF00</logoTextColor><textMargin>10 10 auto auto</textMargin></logoPlugIn></plugIns>";}}finally{if(DBRs!=null)DBRs.close();if(DBStmt!=null)DBStmt.close();}XmlStr+="</vcastr>";}else{XmlStr+="<vcastr></vcastr>";}out.print(XmlStr);%><%@include file="../include/DBConClose.jsp"%>