<!--#include file="../lib/base.asp"-->
<!--#include file="theme.asp"-->
<%
	if not(eycms.is_weixin) and wx_follow=0 then
		eycms.go webroot&"weixin/follow.asp"
		eycms.die
	end if
	dim id:id=eycms.getint(eycms.fget("id",0),0)
	dim rsshow,errormsg,cateid,tempid,content
	set rsshow=eycms.db.exedb("select top 1 * from wx_master where id="&id&" and islock=1")
	if rsshow.eof then
		errormsg="内容不存在"
		eycms.show theme_404,""
	else
		content=rsshow("content")
		cateid=rsshow("cid")
		tempid=rsshow("tid")
		if tempid>0 then
			dim data:data=eycms.db.dbload(1,"header,footer,piclist","wx_master_temp","id="&tempid,"")
			if ubound(data)>=0 then
				content=data(0,0) & content & data(1,0)
			end if
		end if
		eycms.db.dbupdate "wx_master","id="&id&"",array(array("hits",rsshow("hits")+1,10,0))
		eycms.show theme_show,""
	end if
	rsshow.close
	set rsshow=nothing
	eycms.db.dbclose
%>