<!--#include file="conn.asp"-->
<!--#include file="chk_logs.asp"-->
<%
id=request("id")
lb=request("lb")
set rs=server.createobject("adodb.recordset")
rs.open "select * from product where id="&id&"",conn,1,3
xtp=rs("xtp")
 if trim(xtp)<>"" then
   mappath=server.mappath("../")+"\web\"+xtp
   mappath=replace(mappath,"/","\")
   'response.Write mappath
   'response.end
   set fso=createobject("scripting.filesystemobject333")
   if fso.fileexists(mappath) then
   set pohot=fso.getfile(mappath)
   pohot.delete
   set pohot=nothing
   else
   response.write ""
   end if
   set fso=nothing
end if
rs.delete
rs.update
rs.close
set rs=nothing
response.Redirect"product.asp?lb="&lb
%>

