马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
ASP最大的缺点在于网络的安全性和可靠性,企业将经营数据放在开放的平台上,最大的担忧就是如何保证这些数据不被其他人破坏。<SCRIPTLANGUAGE="VBScript"RUNAT="Server">
subApplication_OnStart
DIMchatpoin,roomname,kicklist,chatdata(50,6),onliuser,chatcomm(50)
fori=0to50
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,体系动静,0,一切人,ff0000,0,你好,你是第一名到临的主人"
application.lock
application("roomname")="温馨情缘"
application("onliuser")=""
application("chatpoin")=0
application("kicklist")=""
application("chatdata")=chatdata
application("chatcomm")=chatcomm
application.unlock
endsub
subSession_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
fori=0to50
chatdata(i,4)=(chatdata(i,4)mod4)+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
endsub
</SCRIPT></p>asp是基于web的一种编程技术,可以说是cgi的一种。它可以完成以往cgi程序的所有功能,如计数器、留言簿、公告板、聊天室等等。 |