⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 down_makenew.asp

📁 京云下载系统
💻 ASP
字号:
<%Admin="DownMake"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>程.序:惊.云</title>
<style>
body{font-size:12pt;line-height:140%} 
</style>
</head>
<body>
<!--#include file="check.asp"-->
<!--#include file="config.asp"-->
<!--#include file="zcm.asp"-->
<%
zj=Request.ServerVariables("SERVER_NAME")
zj=left(replace(zj,"www.",""),6)
zj=replace(zj,"0","a")
zj=replace(zj,"1","b")
zj=replace(zj,"2","c")
zj=replace(zj,"3","d")
zj=replace(zj,"4","e")
zj=replace(zj,"5","f")
zj=replace(zj,"6","g")
zj=replace(zj,"7","h")
zj=replace(zj,"8","i")
zj=replace(zj,"9","j")
zj=replace(zj,"a","40")
zj=replace(zj,"b","41")
zj=replace(zj,"c","52")
zj=replace(zj,"d","53")
zj=replace(zj,"e","64")
zj=replace(zj,"f","65")
zj=replace(zj,"g","76")
zj=replace(zj,"h","77")
zj=replace(zj,"i","88")
zj=replace(zj,"j","89")
zj=replace(zj,"k","20")
zj=replace(zj,"l","21")
zj=replace(zj,"m","22")
zj=replace(zj,"n","23")
zj=replace(zj,"o","24")
zj=replace(zj,"p","25")
zj=replace(zj,"q","26")
zj=replace(zj,"r","27")
zj=replace(zj,"s","28")
zj=replace(zj,"t","29")
zj=replace(zj,"u","30")
zj=replace(zj,"v","31")
zj=replace(zj,"w","32")
zj=replace(zj,"x","33")
zj=replace(zj,"y","34")
zj=replace(zj,"z","35")
zj=replace(zj,"-","36")
zj=replace(zj,".","37")
yzcv=zj*(len(zj)+len(zcn&"JyDownH"))
Do While yzcv>10000000000
yzcv=yzcv-10000000000
loop
if yzcv<>zcv then
response.write("<b><font color=""#FF0000"">错误:程序尚未注册,此功能不能使用!</font></b>")
response.end
end if
page=ubound(split(webDownLb,","))+1
pagepath="../new/"
JyDownNewPage=request("JyDownNewPage")
if JyDownNewPage<>"" then
%>
<!--#include file="mdb_path_down.asp"-->
<%
shu=50
if JyDownNewPage="0" then
if webDownLbShuAll<>"" then
shu=Cint(webDownLbShuAll)
end if
sql="select top "&shu&" * from down order by date desc"
pagename=pagepath&"n"&JyDownNewPage&".htm"
title="全部软件"
else
si=cint(JyDownNewPage)-1
if webDownLbShu<>"" then
  LBshu=split(webDownLbShu,",")
  shu=LBshu(si)
end if
if webDownLb<>"" then
  LBname=split(webDownLb,",")
  title=LBname(si)
end if
    if title="在线电影" then
      qttt="gs=1 or gs=2"
    elseif title="精彩动画" then
      qttt="gs=3"
    elseif title="特别软件" then
      qttt="sq='注册' or sq='破解' or sq='零售'"
    else
      qttt="cd='"&title&"'"
    end if
    sql="select top "&shu&" * from down where "&qttt&" order by date desc"
    pagename=pagepath&"n"&JyDownNewPage&".htm"
end if

ttypelist=ttypelist&"<select onchange=""javascript:window.open(this.options[this.selectedIndex].value,'_self')"" name=""select"">"
ttypelist=ttypelist&"<option value="""">"&title&"</option><option value=""n0.htm"">-------</option>"
if webDownLb<>"" then
  webDownLb=split(webDownLb,",")
  for i=0 to ubound(webDownLb)
  ttypelist=ttypelist&"<option value=""n"&i+1&".htm"">"&webDownLb(i)&"</option>"
  next
end if
ttypelist=ttypelist&"<option value=""n0.htm"">全部软件</option></select>"

set rs=server.createobject("adodb.recordset")
set rs_type=server.createobject("adodb.recordset")
'列表内容
rs.open sql,conn,1,1
if not rs.eof then
i=0
do while not rs.eof
if len(month(rs("date")))=1 then
  Dmonth="0"&month(rs("date"))
else
  Dmonth=month(rs("date"))
end if
if len(day(rs("date")))=1 then
  Dday="0"&day(rs("date"))
else
  Dday=day(rs("date"))
end if
lb=lb&"<tr><td width=""420""><font color=""#000000"">["
  rs_type.open "select * from downtype where id="&rs("tid"),conn,1,1
    if not rs_type.EOF then
     TN=split(rs_type("tname"),"|")
     lb=lb&"<a href=""../sort/"&rs("tid")&"_1.htm""><font color=""#000000"">"&TN(ubound(TN)-1)&"</font></a></FONT>"
    end if
    rs_type.close
    lb=lb&"]<FONT color=""#999999""> <a href=""../soft/"&rs("id")&".htm"">"&rs("cxn")&"&nbsp;"&rs("cxv")&"</a></FONT></td>"
    lb=lb&"<td width=""80"" align=""center"">"&year(rs("date"))&"-"&Dmonth&"-"&Dday&"</td>"
    if rs("size")<>"" then
      fsize=rs("size")
    else
      fsize="-"
    end if
    lb=lb&"<td width=""80"" align=""center"">"&fsize&"</td></tr>"
i=i+1
if i>=shu then exit do
rs.movenext
loop
end if
rs.close
'本类TOP10
rs.open ("select top 10 cxn,cxv,id from down where date>Now()-7 order by hits desc"),conn,1,1
if rs.eof then
bztop = "还没有软件"
else
i=0
do while not rs.eof
bztop=bztop&"·<a href=""../soft/"&rs("id")&".htm"">"&rs("cxn")&" "&rs("cxv")&"</a><br>"
i=i+1
if i>=10 then exit do
rs.movenext
loop
end if
rs.close
'读取模板
rs.open ("select down_new from mb"),conn,1,1
pencat=""&rs("down_new")&""
rs.close
set rs_type=nothing
set rs=nothing
conn.close
set conn=nothing
pencat=replace(pencat,"T_TITLE",title)
pencat=replace(pencat,"T_LIST",ttypelist)
pencat=replace(pencat,"T_BZTOP",bztop)
pencat=replace(pencat,"T_LB",lb)
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set fout = fso.CreateTextFile(server.mappath(""&pagename&""))
fout.Write pencat
fout.close
Set fout=nothing
Set fso=nothing
else
if request("pageshu")<>"" then
response.write"成功:共生成[最新更新]页面<font color=""#FF0000"">"&request("pageshu")&"</font>个,总费时<font color=""#FF0000"">"&FormatNumber((timer()-request("D")),2)&"</font>秒,完成时间"&Now()&""
else
response.write"<b><font color=""#FF0000"">正在生成[最新更新]页(Html),请等待......</font></b><span id=showImport></span><IE:Download ID=""oDownload"" STYLE=""behavior:url(#default#download)"" />"
for i=0 to page
response.write"<script>function onDownloadDone(downDate){showImport.innerHTML=downDate}oDownload.startDownload('down_makenew.asp?JyDownNewPage="&i&"',onDownloadDone)</script>"
next
response.write"<meta http-equiv=""refresh"" content=""0;url='down_makenew.asp?pageshu="&page+1&"&d="&timer()&""">"
end if
end if
%>
</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -