<!--#include file="../lib/base.asp"-->
<!--#include file="theme.asp"-->
<%
	sub likedb()
		dim id:id=eycms.getint(eycms.fget("id",0),0)
		if id=0 then
			eycms.echo "参数错误"
			exit sub
		end if
		if eycms.loadcookie("like_"&id)<>"" then
			eycms.echo "谢谢亲"
			exit sub
		end if
		dim data:data=eycms.db.dbload(1,"likenum","wx_master","id="&id&" and islock=1","")
		if ubound(data)<0 then
			eycms.echo "参数错误"
			exit sub
		else
			eycms.db.dbupdate "wx_master","id="&id&"",array(array("likenum",data(0,0)+1,10,0))
			eycms.echo "1"
			eycms.setcookie "like_"&id,id
		end if
	end sub

	dim act:act=eycms.enhtml(eycms.fget("act",1))
	select case act
		case "like":likedb
	end select
%>