/bbs/room.asp代码页
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%><?xml version="1.0" encoding="utf-8"?>
<%response.buffer=true%>
<%Response.ContentType = "text/vnd.wap.wml; charset=utf-8"%>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<!--#include file="conn.inc"-->
<!--#include file="yksb.asp"--><%
'====================================================================
' 请你保留这段说明,这并不会影响你的速度. 电脑交流:http://www.cnscu.cn
' 程序制作:横云 掌上校园收倾心整理收集于互联网,感谢你的支持!
' 升级时间: 2008-2-5 主页地址:HTTP://wap.cnscu.cn
' E-Mail: cnscu@126.com 客服QQ:554904632 QQ群:30493504 QQ群2:46659883
'====================================================================
%> <%
ppage=cint(request.QueryString("page"))
if ppage="" then ppage="1"
function ubb1(str)
if IsNull(str) then exit function
str=trim(str)
str=replace(str,"&","&")
str=replace(str,"<","<")
str=replace(str,">",">")
str=replace(str,"'","'")
str=replace(str,"""",""")
str=replace(str,"$","$$")
str=replace(str,"¥","*")
str=replace(str," ","")
str=replace(str,"ads.dwap.cn","wapbc.cn")
str=replace(str,"dwap.com","wapbc.cn")
str=replace(str,"dwap.cn","wapbc.cn")
str=replace(str,"wapcool.cn","wapbc.cn")
str=replace(str,"blcn.cn","wapbc.cn")
str=replace(str,"ads.dwap.cn","wapbc.cn")
str=replace(str,"xniao.cn","wapbc.cn")
str=replace(str,"kqian.cn","wapbc.cn")
str=replace(str,"waaap.net.cn","wapbc.cn")
str=replace(str,"草","*")
str=replace(str,"我日","**")
str=replace(str,"法轮功","***")
str=replace(str,"共产党","***")
str=replace(str,"强奸","**")
str=replace(str,"鸡巴","**")
str=replace(str,"我靠","**")
str=replace(str,"我操","**")
str=replace(str,"他妈的","***")
str=replace(str,"滚","*")
str=replace(str,"(br)","<br/>")
str=replace(str,"[date]",""&date&"")
str=replace(str,"[time]",""&time&"")
str=replace(str,"[nc]",""&myni&"")
str=replace(str,"[myid]",""&myid&"")
str=replace(str,"[br]","<br/>")
Set re=new RegExp
re.IgnoreCase =true
re.Global=True
re.pattern="(\(img)\)(.{5,}?)\(/img\)"
str= re.Replace(str,"<img src=""$2"" alt=''/>")
re.pattern="(\[img\])(.[^\[]*)(\[\/img\])"
str= re.Replace(str,"<img src=""$2"" alt=''/>")
set re=Nothing
ubb1=str
end function
dim dlid
ltid=usb(request.QueryString("ltid"))
lttxt=usb(request("lttxt"))
if lttxt<>"" then session("mm")=lttxt
if session("mm")<>"" then session("mm")=session("mm")
session("ltid")=request("ltid")
if ltid="" then ltid="0"
set npp=Server.CreateObject("ADODB.Recordset")
rspl="select * from ltlb where id="<id
npp.open rspl,conn,1,2
if npp.eof then
Response.write "<wml><card title='出错了'><p>无此聊天室!<br/>"
Else
if npp("ltsm")="0" or npp("cjz")=myid or npp("ltsm")=session("mm") or mycjbz<>"0" then
dlname=npp("name")
if session("ssss")="" then ssssss=ubb(npp("sxsj"))
if session("ssss")<>"" then ssssss=session("ssss")
pag=20
sql="update cnscu_gr set z="<id&" Where CStr(id)="&myid
conn.Execute(sql)
if npp("gl")=myid or npp("gl1")=myid then session("nid")=ltid
%>
<wml>
<head>
<meta http-equiv='Cache-Control' content='no-cache'/>
</head>
<card title="<%=dlname%>" ontimer="ROOM.asp?cnscu=<%=cnscu%>&ltid=<%=ltid%>&page=1&ttt=<%=time%>">
<timer value="<%=ssssss%>"/>
<p>
<!--#include file="xxts.asp"-->
<a href="ROOM_add.asp?cnscu=<%=cnscu%>&ltid=<%=ltid%>">发言</a>|<a href="ROOM_BQ.asp?cnscu=<%=cnscu%>&ltid=<%=ltid%>">功能</a>|<a href="ROOM.asp?tt=<%=time%>&cnscu=<%=cnscu%>&ltid=<%=ltid%>">刷新</a>|<a href="ROOM_zx.ASP?tt=<%=time%>&cnscu=<%=cnscu%>&ltid=<%=ltid%>">在线</a><br/>
<%
set rsxl=Server.CreateObject("ADODB.Recordset")
rspl="select * from ltid where CStr(ltid)="<id&" order by id desc"
rsxl.open rspl,conn,1,2
if rsxl.eof then
Response.write "暂无内容!<br/>"
Else
page=cint(request.QueryString("page"))
if page="" or page<1 then page=1
maxpage=int((rsxl.recordcount-1)/pag)+1
if page>maxpage then page=maxpage
rsxl.Move((page-1)*pag)
dim j
j=1
do while ((not rsxl.EOF) and j <=cint(pag))%>
<a href='room_add.asp?ddff=<%=ubb(rsxl("fnc"))%>&cnscu=<%=cnscu%>&ltid=<%=ltid%>'><%=rsxl("fnc")%></a><%=ubb1(rsxl("fnr"))%>(<%=ubb1(rsxl("fsj"))%>)<br/>
<%
rsxl.Movenext
j=j+1
loop
if page*pag<rsxl.recordcount then response.write("<a href='ROOM.asp?cnscu=" & cnscu & "&ltid=" & ltid & "&page=" & page+1 & "'>下一页</a>")
if page>1 then response.write("<a href='ROOM.asp?cnscu=" & cnscu & "&ltid=" & ltid & "&page=" & page-1 & "'>上一页</a>")
if page*pag<rsxl.recordcount or page>1 then response.write("")
if page*pag<rsxl.recordcount then response.write("("& page & "/" & (int(rsxl.recordcount/pag+1)) &"/" & rsxl.recordcount & ")<br/>")
end if
%>
内容:<input name="lttxt" emptyok="true" value=""/><br/>
<anchor title="确定提交">[=快速发言=]
<go href="ROOM_addcl.asp?cnscu=<%=cnscu%>&ltid=<%=ltid%>&dj=<%=dj%>" method="post" accept-charset='utf-8'>
<postfield name="lttxt" value="$(lttxt)"/>
<postfield name="djjg" value="$(djjg)"/>
<postfield name="ldid" value="$(ldid)"/>
<postfield name="idp" value="$(idp)"/>
<postfield name="t" value="<%=t%>"/>
</go>
</anchor><br/>
跳到第<input name="i<%=minute(now)%><%=second(now)%>" title="页码" type="text" format="*N" emptyok="true" size="3" value="<%response.write(page+1)%>" maxlength="3"/>页
<anchor>[GO]
<go href="ROOM.asp?cnscu=<%=cnscu%>&tid=<%=tid%>&ltid=<%=ltid%>" accept-charset='utf-8'>
<postfield name="page" value="$(i<%=minute(now)%><%=second(now)%>)"/>
</go>
</anchor><br/>
<%else%>
<wml><card title='加密聊天室'><p>
请输入密码<br/>
<input name="lttxt" emptyok="true" value=""/><br/>
<anchor title="确定提交">[=验证密码=]
<go href="ROOM.asp?cnscu=<%=cnscu%>&ltid=<%=ltid%>&dj=<%=dj%>" method="post" accept-charset='utf-8'>
<postfield name="lttxt" value="$(lttxt)"/>
</go>
</anchor>
<br/>
<%end if%>
------------<br/>
<a href='ROOMT.asp?cnscu=<%=cnscu%>'>聊天大厅</a> <a href='index.asp?cnscu=<%=cnscu%>'>社区首页</a> <br/>
<%
Response.write "管理:"
set rsez=server.createobject("ADODB.Recordset")
aqlz="select nini,id from cnscu_gr where cstr(id)="&npp("gl")&" or cstr(id)="&npp("gl1")&" order by id desc"
rsez.open aqlz,conn,1,2
z=1
do while not rsez.eof
dim nini
nam=rsez("nini")
if len(nam)>8 then nam=left(nam,8)
Response.write "<a href='gr_zl.asp?id="&rsez("id")&"&cnscu="&cnscu&"'>" & ubb(nam) & "</a> "
z=z+1
rsez.movenext
loop
rsez.close
set rsez=nothing
end if
npp.close
set npp=nothing%><br/>
</p>
</card>
</wml> 对应源码下载地址
相关源码
- /bbs/tb_hylb.asp
- /webadmin/hhh.asp
- /bbs/zszb.asp
- /webadmin/ydlc.asp
- /bbs/gg_view.asp
- /admin/tj_bq.asp
- /admin/piccl.asp
- /bbs/gmtxcl.asp
- /admin/yd_lc.asp
- /bbs/1.asp
- /bbs/tzzd.asp
- /admin/errs.asp
- /admin/cnscu_ad.asp
- /admin/bk_gl.asp
- /admin/bqgl.asp
- /webadmin/admin_pwd.asp
- /bbs/gg_index.asp
- /webadmin/admin_menu.asp
- /admin/tjpic.asp
- /admin/tjgg.asp
- /webadmin/inc/header.inc
- /lyadd.asp
- /bbs/xx_list.asp
- /webadmin/admin_scanshell.asp
- /bbs/qkxx.asp
- /admin/conn.inc
- /ubb.asp
- /soft.asp
- /admin/bg.asp
- /webadmin/admin_db_compact.asp
- /admin/urluft8.asp
- /admin/bj_lycl.asp
- /admin/ymcl.asp
- /admin/lmxg.asp
- /wml.asp
- /bbs/lt_add.asp
- /webadmin/admin_db_executesql.asp
- /soucl.asp
- /admin/hhyy.asp
- /bbs/cnscucsb.asp
- /bbs/add.asp
- /admin/ts_lm.asp



