Global. asa file

Source: Internet
Author: User
<Script language = "VBScript" RUNAT = "Server">
Sub Application_OnStart
DIM chatpoin, roomname, kicklist, chatdata (50, 6), onliuser, chatcomm (50)
For I = 0 to 50
Chatdata (I, 0) = ""
Chatdata (I, 1) = ""
Chatdata (I, 2) = 0
Chatdata (I, 3) = ""
Chatdata (I, 4) = 0
Chatdata (I, 5) = ""
Chatcomm (I) = ""
Next
Chatcomm (0) = "'00: 00: 00, system message, 0, all, ff0000, 0, Hello, you are the first guest to visit '"

Application. lock
Application ("roomname") = "warmth"
Application ("onliuser") = ""
Application ("chatpoin") = 0
Application ("kicklist") = ""
Application ("chatdata") = chatdata
Application ("chatcomm") = chatcomm
Application. unlock
End sub
Sub Session_onEnd
Ip = session ("userip ")
Id = session ("userid ")
Chatdata = application ("chatdata ")
Application. lock
Application ("kicklist") = replace (application ("kicklist"), ", '" & chatdata (id, 1 )&"'","")
Application ("kicklist") = replace (application ("kicklist"), ", '#" & chatdata (id, 0 )&"'","")
Application ("onliuser") = replace (application ("onliuser"), ", '" & chatdata (id, 0 )&"'","")
Application. unlock
For I = 0 to 50
Chatdata (I, 4) = (chatdata (I, 4) mod 4) + 4
Next
Chatdata (id, 0) = ""
Chatdata (id, 1) = ""
Chatdata (id, 2) = ""
Chatdata (id, 3) = ""
Chatdata (id, 4) = ""
Chatdata (id, 5) = ""
Application. lock
Appliation ("chatdata") = chatdata
Application. unlock
End sub
</SCRIPT>
Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.