|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
ASP在国内异常流行,因为国内大多使用的是盗版的Windows和盗版的SQLServer,而ASP+COM+SQLServer实际上也是一种不错的搭配,其性能也不输于PHP+MYSQL,特别是Windows系统和SQLServer都有图形界面,比APACHE和MYSQL易于维护,因此对于不重视知识产权的国家来说也是一种不错的选择。谈天室获得措辞内容,并过滤个中的剧本语句
usersays=request.form("says")
ifinstr(usersays,"《script")》0then
usersays=""
endif
判别是不是有发言内容,没有的话就不作处置
iflen(usersays)《》0then
session("whoto")=request.form("whoto")
session("action")=request.form("action")
ifinstr(usersays,chr(39))》0then
usersays=replace(usersays,chr(39),""&chr(39))
endif
ifinstr(usersays,chr(34))》0then
usersays=replace(usersays,chr(34),""&chr(34))
endif
application.lock
界说一个扳谈缓冲区,前面将给人人细心剖析一下
dimchats(20)
forn=1to20
chats(n)=application("chats")(n)
next
username=request.Form("user")
usertime=Time
usertime="("&right(usertime,8)&")"
user_whoto=request.Form("whoto")
user_action=request.Form("action")
ifapplication("counter")》19then
application("counter")=0
endif
不是私语就加一
ifrequest.form("action")《》"私语"then
application("counter")=application("zj_1counter")+1
counter=application("zj_1counter")
用户的举措处置
selectcaserequest.FORM("action")
case"措辞"
ifrequest.FORM("whoto")="ALL"then
chats(counter)="《fontcolor=blue》"&usertime&"《/font》《fontcolor=black》"&username&"《/font》:《fontcolor=#0000aa》"&usersays&"《/font》《BR》《BR》"
else
chats(counter)="《fontcolor=blue》"&usertime&"《/font》《fontcolor=black》"&username&"《/font》《i》与《fontcolor=#00bb00》"&request.FORM("whoto")&"《/font》说《/i》:《fontcolor=#0000aa》"&usersays&"《/font》《BR》《BR》"
endif
case"叫唤"
chats(counter)="《fontcolor=blue》"&usertime&"《/font》《fontcolor=black》"&username&"《/font》《i》冲《fontcolor=#00bb00》"&request.FORM("whoto")&"《/font》大呼《/i》:《B》《fontcolor=#0000aa》"&usersays&"《/font》《/B》《BR》《BR》"
case"亲亲"
chats(counter)="《fontcolor=blue》"&usertime&"《/font》《fontcolor=black》"&username&"《/font》《i》亲了亲《fontcolor=#00bb00》"&request.FORM("whoto")&"《/font》的面颊《/i》:《fontcolor=#0000aa》"&usersays&"《/font》《BR》《BR》"
case"拥抱"
chats(counter)="《fontcolor=blue》"&usertime&"《/font》《fontcolor=black》"&username&"《/font》《i》悄悄的抱着《fontcolor=#00bb00》"&request.FORM("whoto")&"《/font》《/i》:《fontcolor=#0000aa》"&usersays&"《/font》《BR》《BR》"
case"暴怒"
chats(counter)="《fontcolor=blue》"&usertime&"《/font》《fontcolor=black》"&username&"《/font》《i》朝《fontcolor=#00bb00》"&request.FORM("whoto")&"《/font》横眉竖目道《/i》:《fontcolor=#0000aa》"&usersays&"《/font》《BR》《BR》"
case"轻推"
chats(counter)="《fontcolor=blue》"&usertime&"《/font》《fontcolor=black》"&username&"《/font》《i》悄悄地推了推《fontcolor=#00bb00》"&request.FORM("whoto")&"《/font》的胳膊《/i》:《fontcolor=#0000aa》"&usersays&"《/font》《BR》《BR》"
case"傻笑"
chats(counter)="《fontcolor=blue》"&usertime&"《/font》《fontcolor=black》"&username&"《/font》《i》傻兮兮的朝《fontcolor=#00bb00》"&request.FORM("whoto")&"《/font》笑笑《/i》:《fontcolor=#0000aa》"&usersays&"《/font》《BR》《BR》"
case"拳打"
chats(counter)="《fontcolor=blue》"&usertime&"</p>ASP是依赖组件的,能访问数据库的组件好多就有好多种,再有就是你微软的工具可是什么都要收钱的啊! |
|