<!--#include file="setup.asp" -->
<%
if Request.Cookies("username")=empty then error("<li>您还未<a href=login.asp>登录</a>社区")

if Conn.Execute("Select membercode From [BBSXP_Users] where username='"&Request.Cookies("username")&"'")(0)<4 then error("<li>你不是社区区长和管理员，无权删除")


if Request("menu")="out" then
session("pass")=""
response.redirect "Default.asp"
end if
%>
<%id=request.QueryString("id")
act=Request.QueryString("act")
if act="del" then
conn.execute("delete from myshow_photo where ID=" & ID)
end if
	    response.write"<SCRIPT language=JavaScript>alert('成功删除，请按确定返回！');"
        response.write"javascript:history.go(-1)</SCRIPT>"
        response.end
%>