<!--#include file="conn.asp"-->
<!--#include file="chkadmin.asp"-->
<!--#include file="inc/char.asp"-->
<%dim id
id=CInt(Trim(Request.QueryString("id")))

dim errmsg,founderr
founderr=false

if chkadmin=false or power(5)="0" then
	founderr=true
	errmsg=errmsg+"<li>您没有删除评论的权限</li>"
end if

if founderr=false then
	conn.execute("delete from review where ID=" & id)
	dim gourl,msg
	gourl=request.ServerVariables("HTTP_REFERER")
	msg="此评论已删除！"
	call ok()
else
	call error()
end if

conn.close
set conn=nothing
%>