|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
专业性的服务。有的ASP商提供垂直型的应用服务,针对某一特定行业提供应用服务。革新|文件名革新帧:文件名fresh.asp
<%
OptionExplicit
dimmsg,tmsg,ws,action,user,whoto,tcolor,kicklist,chatpoin,chatcomm,chatdata,sendid,i,reciid
dimtsecretly,thidename,dispstr,tchatpoin,tuserpoin,tchatcomm,j
dimsendname,address1,reciname
user=request("user")
whoto=request.form("whoto")
tmsg=request.form("SAYS")
tmsg=replace(tmsg,"","")
tmsg=replace(tmsg,",",",")
tmsg=replace(tmsg,"<","<")屏障一切的Html标志
tmsg=replace(tmsg,"<img","<img")摊开<img标志
tmsg=replace(tmsg,"<b","<b")摊开<b标志
ifrequest.form("ws")="on"then
ws=true
else
ws=false
endif
kicklist=application("kicklist")
是不是被踢用户
ifinstr(kicklist,"#"&user&"")>0then
response.write"<script>parent.top.location=kickout.htm;</script>"
response.end
endif
ifinstr(kicklist,""&Request.ServerVariables("remote_addr")&"")>0then
response.write"<script>parent.top.location=kickout.htm;</script>"
endif
chatpoin=application("chatpoin")谈天室指针
chatcomm=application("chatcomm")谈天室内容
chatdata=application("chatdata")谈天室用户数据
sendid=-1
reciid=-1
fori=0to50
ifchatdata(i,0)=userandchatdata(i,1)=Request.ServerVariables("remote_addr")thensendid=i注重,在些反省IP地点,防备被穿墙
ifchatdata(i,0)=whotothenreciid=i
next
ifsendid=-1then
response.write"用户没有进进谈天室"
response.end
endif
chatdata(sendid,4)=(chatdata(sendid,4)mod104)置标记,防备被主动踢出谈天室
msg=right(time,8)&","&user&","&request.form("action")&","&whoto&","&request.form("color")
ifwsthen
msg=msg&",1"
else
msg=msg&",0"
endif
msg=""&msg&","&tmsg
ifreciid=-1andwhoto"一切人"thenws=true:reciid=sendid:msg=msg&"<fontcolor=red>("&whoto&"不在此谈天室)</font>"
msg=msg&"<br>"
iftmsg""then
ifwsthen私语
ifwhoto"一切人"thenchatdata(sendid,3)=chatdata(sendid,3)&msg
ifreciid-1andsendidreciidthenchatdata(reciid,3)=chatdata(reciid,3)&msg
application.lock
application("chatdata")=chatdata
application.unlock
endif
ifnotwsorwsandwhoto="一切人"then属于全体人的数据
ifchatpoin=49then
chatpoin=0数组转头,轮回挪用
callcheckname
else
chatpoin=chatpoin+1
endif
chatcomm(chatpoin)=msg将内容写进application内
application.lock
application("chatcomm")=chatcomm
application("chatpoin")=chatpoin
application.unlock
endif
endif
%><metahttp-equiv="refresh"content="3;URL=refresh.asp?user=<%=user%>"><%
tsecretly=chatdata(sendid,3)取私聊内容
thidename=chatdata(sendid,5)取埋没名单
dimtmpstr
iftsecretly""then显现私聊内容
response.writethidename
dispstr=""
dimtemps
tsecretly=split(tsecretly,"<br>")
fori=0toubound(tsecretly)-1
tmpstr=split(tsecretly(i),",")
ifinstr(thidename,","&tmpstr(3)&"")<1thendispstr=dispstr&","&replace(tsecretly(i),"<br>","")
next
chatdata(sendid,3)=""清空私聊内容
endif
tuserpoin=chatdata(sendid,2)用户指针
tchatpoin=chatpoin
</p>帮助用户快速实现各种应用服务,ASP商有整合各方面资源的能力,可在短期内为用户提供所需的解决方案。例如,典型的ERP安装,如果要在客户端安装的话需要半年到二年的时间,但是美国的一些ASP商如USI和CORIO能在90—120天内提供ERP应用方案。 |
|