<%Response.CacheControl = "Private" response.expires=0 sub newsay(who,towho,secret,room_id,mess,c1,c2,act) say_id=says(current,0)+1 current=current+1 if current>MaxTalk then current=0 says(current,0)=say_id says(current,1)=who says(current,2)=towho says(current,3)=secret says(current,4)=room_id says(current,5)="'"&mess&"','"&who&"','"&towho&"',0,'"&c1&"','"&c2&"',"&act&",'"&time()&"'," end sub application.lock call get_guests call get_maxuser call get_says conn.Execute("DELETE FROM room WHERE not room_keep AND (DATEDIFF('n',room_time,now())>(3000+room_exp))") conn.Execute("update room set room_keep="&true&" where not room_keep and room_exp>"&rsparam("roomkeepexp")) set rs=Server.CreateObject("ADODB.RecordSet") Rs.Open "select id,room_name,room_owner,room_exp from room order by ID",conn,1,1%>
<%dim roomarr redim roomarr(rs.recordcount-1,4) j=0 all_count=0 do while not (rs.bof or rs.eof) count=0 for i=0 to MaxUser if guests(i,0)<>"" and (datediff("s",guests(i,6),now())>300) then if guests(i,4)<>rsparam("superlevel") then call newsay(guests(i,0),"大家",false,guests(i,5),"【默哀】“砰”的一声,##重重地摔下去了!","#3366cc","blue",-2) guests(i,0)="" elseif guests(i,0)<>"" and datediff("n",guests(i,11),now())>rsparam("nosaytime") then if guests(i,4)<>rsparam("superlevel") then call newsay(guests(i,0),"大家",false,guests(i,5),"【默哀】潜水过久的##不幸沉入海底!","#000099","#990000",-2) guests(i,0)="" elseif guests(i,0)<>"" and guests(i,5)=rs("ID") and guests(i,4)<>rsparam("superlevel") then count=count+1 end if next roomarr(j,0)=rs("room_name") roomarr(j,1)=rs("room_owner") roomarr(j,2)=rs("room_exp") roomarr(j,3)=count all_count=all_count+count roomarr(j,4)=rs("ID") j=j+1 rs.movenext loop call put_guests call put_says application.unlock %> 选择房间[刷新]
 房间:[<%=j%>];在线:[<%=all_count%>] <%for i=0 to j-1%>
checked<%end if%> type='radio' name='room' value='' onclick="parent.document.frmLogin.room_id.value=<%=roomarr(i,4)%>"><%=roomarr(i,0)%>[<%=roomarr(i,3)%>] <%next%>
<%rsparam.close set rsparam=nothing conn.close set conn=nothing%>