www.pudn.com > wap-wscs.rar > guatest.asp, change:2014-08-10,size:2379b


<!--#include file="conn.asp"--> 
<% 
Set usinfo =New userinfo 
userid=usinfo.usinfo(gsid,"userid")'ID 
Set usinfo=Nothing  
 
monid=request.querystring("id")'获取怪物ID 
Call myhead("正在跳转") 
	guatask=getgua(userid,"id") 
	If guatask<>0 Then  
	types=getgua(userid,"types")'挂机类型 
	gtime=getgua(userid,"guatime")'挂机时间 
	Select Case types 
	Case 0'半小时 
	gtime=datediff("s",gtime,now()) 
	gtime=(1800-gtime) 
		If gtime>0 Then  
		Call echo("距离挂机完成时间还有">ime&"秒",1) 
		Else 
		Call echo("你的挂机时间已经到了,可以开启新的挂机任务",1) 
		conn.execute "delete from gua where userid="&userid 
		End If  
 
	Case 1'一小时 
	gtime=datediff("s",gtime,now()) 
	gtime=(3600-gtime) 
		If gtime>0 Then  
		Call echo("距离挂机完成时间还有">ime&"秒",1) 
		Else 
		Call echo("你的挂机时间已经到了,可以开启新的挂机任务",1) 
		conn.execute "delete from gua where userid="&userid 
		End If  
 
	Case 2'二小时 
	gtime=datediff("s",gtime,now()) 
	gtime=(7200-gtime) 
		If gtime>0 Then  
		Call echo("距离挂机完成时间还有">ime&"秒",1) 
		Else 
		Call echo("你的挂机时间已经到了,可以开启新的挂机任务",1) 
		conn.execute "delete from gua where userid="&userid 
		End If  
 
	Case 3'三小时 
	gtime=datediff("s",gtime,now()) 
	gtime=(10800-gtime) 
		If gtime>0 Then  
		Call echo("距离挂机完成时间还有">ime&"秒",1) 
		Else 
		Call echo("你的挂机时间已经到了,可以开启新的挂机任务",1) 
		conn.execute "delete from gua where userid="&userid 
		End If  
	End Select  
 
	If gtime>0 Then  
	t=datediff("s","1970-1-1",now()) 
	Call echo("你已经存在正在工作的挂机队列!",1) 
	Call echo("正在跳转到挂机页面",1) 
	Call echo("<meta http-equiv=""refresh"" content=""2;url=../action/huntfight.asp?id="&monid&"&gsid="&gsid&"&t="&t&""">",0) 
	Call myend() 
	End If  
	End If  
Call echo("<meta http-equiv=""refresh"" content=""2;url=gua.asp?id="&monid&"&gsid="&gsid&"&t="&t&""">",0) 
Call echo("提示:如果一直停留在本页,说明你的浏览器不支持挂机",1) 
Call echo("如使用UC等非自带浏览器,请关闭中转(云加速)以及压流等代理浏览功能",1) 
Call echo(urlencode("../action/hunt.asp","返回地图"),1) 
Call echo(urlencode("../index.asp","返回首页"),1) 
Call myend() 
%>