ROOM.asp
上传用户:sking1122
上传日期:2020-09-24
资源大小:1005k
文件大小:7k
源码类别:

手机WAP编程

开发平台:

ASP/ASPX

  1. <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%><?xml version="1.0" encoding="utf-8"?>
  2. <%response.buffer=true%>
  3. <%Response.ContentType = "text/vnd.wap.wml; charset=utf-8"%>
  4. <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> 
  5. <!--#include file="conn.inc"-->
  6. <!--#include file="yksb.asp"--><%
  7. '====================================================================
  8. ' 请你保留这段说明,这并不会影响你的速度.   电脑交流:http://www.cnscu.cn
  9. ' 程序制作:横云   掌上校园收倾心整理收集于互联网,感谢你的支持!
  10. ' 升级时间: 2008-2-5   主页地址:HTTP://wap.cnscu.cn
  11. ' E-Mail: cnscu@126.com    客服QQ:554904632 QQ群:30493504 QQ群2:46659883
  12. '====================================================================
  13. %> <%
  14. ppage=cint(request.QueryString("page"))
  15. if ppage="" then ppage="1"
  16. function ubb1(str)
  17. if IsNull(str) then exit function
  18. str=trim(str)
  19. str=replace(str,"&","&amp;")
  20. str=replace(str,"<","&lt;")
  21. str=replace(str,">","&gt;")
  22. str=replace(str,"'","&apos;")
  23. str=replace(str,"""","&quot;")
  24. str=replace(str,"$","$$")
  25.         str=replace(str,"&#xFFE5;","*")
  26. str=replace(str,"&nbsp;","")
  27. str=replace(str,"ads.dwap.cn","wapbc.cn")
  28. str=replace(str,"dwap.com","wapbc.cn")
  29. str=replace(str,"dwap.cn","wapbc.cn")
  30. str=replace(str,"wapcool.cn","wapbc.cn")
  31. str=replace(str,"blcn.cn","wapbc.cn")
  32. str=replace(str,"ads.dwap.cn","wapbc.cn")
  33. str=replace(str,"xniao.cn","wapbc.cn")
  34. str=replace(str,"kqian.cn","wapbc.cn")
  35. str=replace(str,"waaap.net.cn","wapbc.cn")
  36. str=replace(str,"草","*")
  37. str=replace(str,"我日","**")
  38. str=replace(str,"法轮功","***")
  39. str=replace(str,"共产党","***")
  40. str=replace(str,"强奸","**")
  41. str=replace(str,"鸡巴","**")
  42. str=replace(str,"我靠","**")
  43. str=replace(str,"我操","**")
  44. str=replace(str,"他妈的","***")
  45. str=replace(str,"滚","*")
  46. str=replace(str,"(br)","<br/>")
  47. str=replace(str,"[date]",""&date&"")
  48. str=replace(str,"[time]",""&time&"")
  49. str=replace(str,"[nc]",""&myni&"")
  50. str=replace(str,"[myid]",""&myid&"")
  51. str=replace(str,"[br]","<br/>")
  52. Set re=new RegExp
  53. re.IgnoreCase =true
  54. re.Global=True
  55. re.pattern="((img))(.{5,}?)(/img)"
  56. str= re.Replace(str,"<img src=""$2"" alt=''/>")
  57. re.pattern="([img])(.[^[]*)([/img])"
  58. str= re.Replace(str,"<img src=""$2"" alt=''/>")
  59. set re=Nothing
  60. ubb1=str
  61. end function
  62. dim dlid
  63. ltid=usb(request.QueryString("ltid"))
  64. lttxt=usb(request("lttxt"))
  65. if lttxt<>"" then session("mm")=lttxt
  66. if session("mm")<>"" then session("mm")=session("mm")
  67. session("ltid")=request("ltid")
  68. if ltid="" then ltid="0"
  69. set npp=Server.CreateObject("ADODB.Recordset")
  70. rspl="select * from ltlb where id="&ltid
  71. npp.open rspl,conn,1,2
  72. if npp.eof then
  73.    Response.write "<wml><card title='出错了'><p>无此聊天室!<br/>"
  74. Else
  75. if npp("ltsm")="0" or npp("cjz")=myid or npp("ltsm")=session("mm") or mycjbz<>"0" then 
  76. dlname=npp("name")
  77. if session("ssss")="" then ssssss=ubb(npp("sxsj"))
  78. if session("ssss")<>"" then ssssss=session("ssss")
  79. pag=20
  80. sql="update cnscu_gr set z="&ltid&" Where CStr(id)="&myid
  81. conn.Execute(sql)
  82. if npp("gl")=myid or npp("gl1")=myid then session("nid")=ltid
  83. %>
  84. <wml>
  85. <head>
  86. <meta http-equiv='Cache-Control' content='no-cache'/>
  87. </head>
  88. <card title="<%=dlname%>" ontimer="ROOM.asp?cnscu=<%=cnscu%>&amp;ltid=<%=ltid%>&amp;page=1&amp;ttt=<%=time%>">
  89. <timer value="<%=ssssss%>"/>
  90. <p>
  91. <!--#include file="xxts.asp"-->
  92. <a href="ROOM_add.asp?cnscu=<%=cnscu%>&amp;ltid=<%=ltid%>">发言</a>|<a href="ROOM_BQ.asp?cnscu=<%=cnscu%>&amp;ltid=<%=ltid%>">功能</a>|<a href="ROOM.asp?tt=<%=time%>&amp;cnscu=<%=cnscu%>&amp;ltid=<%=ltid%>">刷新</a>|<a href="ROOM_zx.ASP?tt=<%=time%>&amp;cnscu=<%=cnscu%>&amp;ltid=<%=ltid%>">在线</a><br/>
  93. <%
  94. set rsxl=Server.CreateObject("ADODB.Recordset")
  95. rspl="select * from ltid where CStr(ltid)="&ltid&" order by id desc"
  96. rsxl.open rspl,conn,1,2
  97. if rsxl.eof then
  98.    Response.write "暂无内容!<br/>"
  99. Else
  100. page=cint(request.QueryString("page"))
  101. if page="" or page<1 then page=1
  102. maxpage=int((rsxl.recordcount-1)/pag)+1
  103. if page>maxpage then page=maxpage
  104. rsxl.Move((page-1)*pag)
  105. dim j
  106. j=1
  107. do while ((not rsxl.EOF) and j <=cint(pag))%>
  108. <a href='room_add.asp?ddff=<%=ubb(rsxl("fnc"))%>&amp;cnscu=<%=cnscu%>&amp;ltid=<%=ltid%>'><%=rsxl("fnc")%></a><%=ubb1(rsxl("fnr"))%>(<%=ubb1(rsxl("fsj"))%>)<br/>
  109. <%
  110. rsxl.Movenext  
  111. j=j+1
  112. loop
  113. if page*pag<rsxl.recordcount then response.write("<a href='ROOM.asp?cnscu=" & cnscu & "&amp;ltid=" & ltid & "&amp;page=" & page+1 & "'>下一页</a>")
  114. if page>1 then response.write("<a href='ROOM.asp?cnscu=" & cnscu & "&amp;ltid=" & ltid & "&amp;page=" & page-1 & "'>上一页</a>")
  115. if page*pag<rsxl.recordcount or page>1 then response.write("")
  116. if page*pag<rsxl.recordcount then response.write("("& page & "/" & (int(rsxl.recordcount/pag+1)) &"/" & rsxl.recordcount & ")<br/>")
  117. end if
  118. %>
  119. 内容:<input name="lttxt" emptyok="true" value=""/><br/>
  120. <anchor title="确定提交">[=快速发言=]
  121. <go href="ROOM_addcl.asp?cnscu=<%=cnscu%>&amp;ltid=<%=ltid%>&amp;dj=<%=dj%>" method="post" accept-charset='utf-8'>
  122. <postfield name="lttxt" value="$(lttxt)"/>
  123. <postfield name="djjg" value="$(djjg)"/>
  124. <postfield name="ldid" value="$(ldid)"/>
  125. <postfield name="idp" value="$(idp)"/>
  126. <postfield name="t" value="<%=t%>"/>
  127. </go>
  128. </anchor><br/>
  129. 跳到第<input name="i<%=minute(now)%><%=second(now)%>" title="页码" type="text" format="*N" emptyok="true" size="3" value="<%response.write(page+1)%>" maxlength="3"/>页
  130. <anchor>[GO]
  131.     <go href="ROOM.asp?cnscu=<%=cnscu%>&amp;tid=<%=tid%>&amp;ltid=<%=ltid%>" accept-charset='utf-8'>
  132.         <postfield name="page" value="$(i<%=minute(now)%><%=second(now)%>)"/>
  133.     </go>
  134. </anchor><br/>
  135. <%else%>
  136. <wml><card title='加密聊天室'><p>
  137. 请输入密码<br/>
  138. <input name="lttxt" emptyok="true" value=""/><br/>
  139. <anchor title="确定提交">[=验证密码=]
  140. <go href="ROOM.asp?cnscu=<%=cnscu%>&amp;ltid=<%=ltid%>&amp;dj=<%=dj%>" method="post" accept-charset='utf-8'>
  141. <postfield name="lttxt" value="$(lttxt)"/>
  142. </go>
  143. </anchor>
  144. <br/>
  145. <%end if%>
  146. ------------<br/>
  147. <a href='ROOMT.asp?cnscu=<%=cnscu%>'>聊天大厅</a> <a href='index.asp?cnscu=<%=cnscu%>'>社区首页</a> <br/>
  148. <%
  149. Response.write "管理:"
  150. set rsez=server.createobject("ADODB.Recordset")
  151. aqlz="select nini,id from cnscu_gr where cstr(id)="&npp("gl")&" or cstr(id)="&npp("gl1")&" order by id desc"
  152. rsez.open aqlz,conn,1,2
  153. z=1
  154. do while not rsez.eof
  155.  dim nini
  156. nam=rsez("nini")
  157. if len(nam)>8 then nam=left(nam,8)
  158. Response.write "<a href='gr_zl.asp?id="&rsez("id")&"&amp;cnscu="&cnscu&"'>" & ubb(nam) & "</a>&nbsp;"
  159. z=z+1
  160. rsez.movenext
  161. loop
  162. rsez.close
  163. set rsez=nothing
  164. end if
  165. npp.close
  166. set npp=nothing%><br/>
  167. </p>
  168. </card>
  169. </wml>