<!-- #include file="setup.asp" -->
<%
if StopOutPost = 1 then
if instr(Request.ServerVariables("http_referer"),"http://"&Request.ServerVariables("server_name")&"") = 0 then error("<li>盗链可耻")
end if

if Request.Cookies("username")=empty then error("<li>您还未<a href=login.asp>登录</a>社区")
if instr(Request.Cookies("username")," ")>0 then:error("<li>非法操作"):end if
Fileid=int(Request("Fileid"))
sql="select * from [upfile] where Fileid="&Fileid&""
Set Rs=Conn2.Execute(sql)
if rs.eof and rs.bof then
Response.Write "该附件已被删除！"
Response.end
end if

filepath="images/upfile/"
fname=filepath &rs("filename")&"."&rs("types")
Response.Redirect fname
rs.close
Set Rs = Nothing
%>

