Source Code <%@ Language=vbscript%>
<%
'*****************************
User=split (Application ("Onlineuser"), ",",-1) ' Get online user list
For i=0 to UBound (user) Gets a non-empty list of online users
If user (i) <> "" Then
Number of nowcount=nowcount+1 ' statistics online
If trim (temp) = "" Then
Temp=user (i)
Else
Temp=temp+ "," +user (i)
End If
End If
Next
If Trim (temp) <> "" Then
Application.Lock
Application ("Onlineuser") =temp ' rearrange the online users list
Application.UnLock
End If
%>
<%
Dim quit
'**************************
' Start to analyze the information in the paging message queue and split it up with your own information
If Trim (Application ("message")) <> "then"
Msg=split (Application ("message"), "&") ' Splits the paging information area and saves it to the array
For i=0 to UBound (msg)
If InStr (1,trim (MSG (i)), Trim (Session ("userid")) >=1 Then
Mymsg=split (msg (i), "$") ' Split to get detailed information for each paging information area
If Trim (mymsg (0)) =trim (Session ("UserID")) Then ' This paging message is sent to me!
Msgok=1 ' Someone calls me for 1
From=trim (mymsg (2)) ' Get details of paging
Content=trim (mymsg (1))
Sendto=trim (mymsg (0))
End If
End If
Next
End If
'****************************
Quit=0
if (Trim ("UserID") = "" Or InStr (1,application ("Onlineuser"), Session ("UserID")) <1) and Trim (Session (" UserID ") <>" Guest "then
Quit=1
Else
If Trim (Application ("Onlineuser")) = "" Then
Counts=0
Else
Counts=ubound (Split (Application ("Onlineuser"), ",")) +1
End If
End If
%>
<HTML>
<HEAD>
<meta http-equiv= "Refresh" content= "60; Url=bbsautosearch.asp "charset=gb2312 >
<script language=javascript>
function Window_onload ()
{
//**************
This is where the "Show Paging Information" page is called to display the information
<%if msgok=1 then%>
mail= "Network pager \ n" + "<%=from%>" + "to you said: \ n" + "<%=content%>";
Sendinfo=window.open ("Bbssendinfo.asp?userid=<%=session" ("userid")%> "," Sendinfo "," toolbar=no,top=0,left=0 ");
<%end if%>
//**************
If the current user times out, kick out the system
<%if quit=1 then%>
Alert ("Do not use the system due to timeout or illegal operation, please login again!");
Document.kickout.target= "_top";
Document.kickout.submit ();
<%end if%>
}
</script>
</HEAD>
<body onload= "Javascript:window_onload ()" >
<%if quit=1 then%>
<center>
Timeout or illegal operation!
<%else%>
<%if session ("UserID") <> "Guest" then%>
Currently Online users: <font color=red><b><%=counts%></b></font> people
<br>
<br>
Welcome: <%=session ("userid")%>
<br>
<br>
Please do not close this window before <font color=red> exit! </font>
<%else%>
Registered users can publish articles.
<%end if
End If%>
<form name=kickout method=post action= "bbslogin.htm" ></form>
<a href= "bbssendbegin.asp" target= "_blank" ></a>
<a href= "bbscheckout.asp" ></a>
</cente