<% response.expires=0 application.lock myid=Session("myid") myname=Session("myname") if myid="" then response.end call get_guests call get_votes errstr="" if (votes(0)=0) then errstr="投票已经终止了!" elseif (not guests(myid,8)) then errstr="你没有投票权利,可能理由:你投过了或你是在事件产生后才进来的!" elseif not (myname<>"" and myname=guests(myid,0) AND Session("mytemp")=guests(myid,1) and (guests(myid,14) or request.cookies("vtime")=cstr(Session("mytemp"))) ) then errstr="对不起:身份验证失败!" elseif votes(0)>1 then if request("agree")="1" then votes(2)=votes(2)+1 guests(myid,8)=false elseif request("agree")="0" then votes(3)=votes(3)+1 guests(myid,8)=false end if errstr="当前共有"&votes(2)&"票赞成"&votes(3)&"票反对!" end if call put_guests call put_votes application.unlock if errstr<>"" then response.write ""%>