<!--#include file="../conn.asp"-->
<!-- #include file="../admin/check_master.asp" -->
<!--#include file="../admin/check_admin_qs.asp" -->
<%
id=request("id")
pic=request("pic")
sign=request("sign")
if sign="" then
   FiLePaTh = Server.MapPath("../")& "/"&pic
   Set fso = CreateObject("Scripting.FileSystemObject")
   If fso.FileExists(FiLePaTh) = True Then
      fso.DeleteFile(FiLePaTh)
   end if
   Set fso = nothing 
   sql="delete from ftbbs_upload where id="&id
   conn.execute(sql)
else
   sql="update ftbbs_upload set sign="&sign&" where id="&id
   conn.execute(sql)
end if
conn.close
set conn=nothing
response.redirect request.servervariables("http_referer")
%>