网站地图    收藏   

主页 > 入门引导 > 网站问答 >

如何判断用户是否非正常离开聊天室?_编程100

来源:自学PHP网    时间:2015-02-03 17:40 作者: 阅读:

[导读] 如何判断用户是否非正常离开聊天室?...

NEWSZW_HZH_BEGIN-->

如何判断用户是否非正常离开聊天室?

    total = application("AllPeople")

' 聊天总人数.
    aryHuman = split(total,";")
    for i = lbound(aryHuman) to ubound(aryHuman) - 1
    if application("user" & i) = "online" then
    if int(timer) - int(application("TimeBegin" & i)) > 120 then
    application("user" & i) = ""
    temp = aryHuman(i)
    aryName = split(temp,",")
    hrefname =  aryName(0)
    for j = lbound(aryHuman) to ubound(aryHuman) - 1
    if application("user" & j) = "online" then
  application("content" & j) = "<FONT color=#000000>
〖精彩春风之聊天室的系统公告〗"&hrefname&"</FONT>" &"<font  color=#F08000 >"& "掉线了..." & "</font><font color = #000000 class=p9>" & "  <" & time() & "></font><br>" & application
("content" & j)
    end if
    next
    end if
    end if
    next

[1]

NEWSZW_HZH_END-->

自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习

京ICP备14009008号-1@版权所有www.zixuephp.com

网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com

添加评论