show_ad_sc.asp

来自「动网论坛源代码」· ASP 代码 · 共 37 行

ASP
37
字号
<!--#include file=connad.asp-->
<%
response.expires=0
response.buffer=true
response.clear

Dim rs
Dim filename

filename=request("fn")
if filename="" then
	Response.Write "错误的系统参数1。"
	Response.end
else
	filename=replace(filename,"'","")
end if

set rs=connad.execute("select * from dv_chanad where A_Adname='"&filename&"'")
if rs.eof and rs.bof then
	Response.Write "错误的系统参数2。"
	Response.end	
else
	if rs("a_adtype")="swf" then
	Response.ContentType = "application/x-shockwave-flash"
	else
	Response.ContentType = "image/" & replace(lcase(rs("a_adtype")),"jpg","jpeg")
	'Response.ContentType = "img/*"
	end if
	Response.BinaryWrite rs("A_data").GetChunk(7500000)
	'Response.Write rs("a_data")

end if
rs.close
set rs=nothing
connad.close
set connad=nothing
%>

⌨️ 快捷键说明

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