<!--#include file="../inc/Bll.asp"-->
<!--#include file="../inc/Constant.asp"-->
<!--#include file="../inc/Md5.asp"-->
<!--#include file="../inc/App.asp"-->

<%
dim UID,RV,isHiFi
if Request.QueryString("ac")="UpdateLiveTime" then 
	RS_End
	if Request.QueryString("isHiFi")="" then isHiFi="0"
	if not IsNumeric(Request.QueryString("isHiFi")) then isHiFi="0" else isHiFi=Request.QueryString("isHiFi")
	if cint(isHiFi)>0 then isHiFi="1" else isHiFi="0"
	DB_CONN.EXECUTE("update [i_User_Info] set [i_User_LastLiveTime]='"&now()&"' , [i_User_isHiFi]='"&isHiFi&"' , [i_User_isStop]=0 where [i_User_ID]="&Session(Session_UserID_Arg))
	Rend
end if

if Request.QueryString("ac")="StopLiveTime" then 
	RS_End
	DB_CONN.EXECUTE("update [i_User_Info] set [i_User_isStop]=1 where [i_User_ID]="&Session(Session_UserID_Arg))
	DB_CONN.EXECUTE("update [i_Sys_Room] set [i_Sys_Room_Seat1_UID]=0,[i_Sys_Room_Seat2_UID]=0,[i_Sys_Room_Seat3_UID]=0,[i_Sys_Room_Seat4_UID]=0,[i_Sys_Room_Seat5_UID]=0 where [i_Sys_Room_AdminUserID]="&Session(Session_UserID_Arg))
	Rend
end if
%>