⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 webicqread.asp

📁 此程序为网上下载
💻 ASP
字号:
<%@ codepage ="936" %>
<%Response.Expires=0
useronlinename=Application("wsaxhxf_c_useronlinename")
nickname=Session("hxf_u_nickname")
if nickname="" or Session("hxf_u_inthechat")<>"1" or Instr(useronlinename," "&nickname&" ")=0 then Response.Redirect "chaterr.asp?id=001"
n=Year(date())
y=Month(date())
r=Day(date())
s=Hour(time())
f=Minute(time())
m=Second(time())
if len(y)=1 then y="0" & y
if len(r)=1 then r="0" & r
if len(s)=1 then s="0" & s
if len(f)=1 then f="0" & f
if len(m)=1 then m="0" & m
sj=n & "-" & y & "-" & r & " " & s & ":" & f & ":" & m
wbq=Application("wsaxhxf_c_webicq")
wbqub=UBound(wbq)
Dim show(),wbqnew()
xx=0
yy=0
if wbqub>0 then
 for i=1 to wbqub step 4
  if CStr(wbq(i+1))=CStr(nickname) then
   Redim Preserve show(xx+1),show(xx+2),show(xx+3),show(xx+4)
   show(xx+1)=wbq(i)
   show(xx+2)=wbq(i+1)
   show(xx+3)=wbq(i+2)
   show(xx+4)=wbq(i+3)
   if LCase(show(xx+4))="ping agent" then
    ping1=sj
    ping2=wbq(i+2)
    ping3=nickname
    ping4="我的机器配置是:" & Request.ServerVariables("HTTP_USER_AGENT") & "<br>我的IP是:" & Request.ServerVariables("REMOTE_ADDR")
    pingok="1"
    show(xx+4)="^_^"
   end if
   xx=xx+4
  else
   if DateDiff("n",wbq(i),sj)<=10 then
    Redim Preserve wbqnew(yy+1),wbqnew(yy+2),wbqnew(yy+3),wbqnew(yy+4)
    wbqnew(yy+1)=wbq(i)
    wbqnew(yy+2)=wbq(i+1)
    wbqnew(yy+3)=wbq(i+2)
    wbqnew(yy+4)=wbq(i+3)
    yy=yy+4
   end if
  end if
  'show(i+3)=Replace(show(i+3), "<br>", Chr(13) & Chr(10))
 next
 if pingok="1" then
  Redim Preserve wbqnew(yy+1),wbqnew(yy+2),wbqnew(yy+3),wbqnew(yy+4)
  wbqnew(yy+1)=ping1
  wbqnew(yy+2)=ping2
  wbqnew(yy+3)=ping3
  wbqnew(yy+4)=ping4
  yy=yy+4
 end if
 if yy>=4 then
  wbq=wbqnew
 else
  Dim wbqnull(0)
  wbq=wbqnull
 end if
 wbqub=UBound(wbq)
 webicqname=""
 for i=1 to wbqub step 4
  webicqname=webicqname & " " & wbq(i+1)
 next
 webicqname=webicqname&" "
 Application.Lock
  Application("wsaxhxf_c_webicq")=wbq
  Application("wsaxhxf_c_webicqname")=webicqname
 Application.UnLock
end if
%><html>
<head>
<title><%=nickname%>,聊友在呼叫你</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type=text/css>
body{color:black;font-family:宋体;font-size:9pt;background-color:buttonface;}
td{font-family:宋体;font-size:9pt;}
input{font-family:宋体;font-size:9pt;}
textarea{font-family:宋体;font-size:9pt;}
a{font-family:'宋体';color:blue;text-decoration:none}
a:hover{font-family:'宋体';color:blue;text-decoration:underline}
</style>
<bgsound src="readonly/msg.wav" loop="10">
</head>
<body oncontextmenu=self.event.returnValue=false bgcolor=#CCCCCC leftmargin="0" topmargin="0">
<div align="center"> 
<hr><br>
<table width="100%" border="0" cellspacing="0" bordercolorlight="#000000" bordercolordark="#FFFFFF" bgcolor="#D8D0C8" cellpadding="5">
<tr valign="middle" align="center"> 
<td class=p9>共收到 <font color=red><%=int(xx/4)%></font> 条信息(点击消息前的姓名即可进行回复) <font color="009900">[100秒后关闭]</font> 
<table border="1" align="center" cellspacing="0" bordercolorlight="#CCCCFF" bordercolordark="#FFFFFF" width="100%" cellpadding="4"> 
<tr align="center" bgcolor="#CCFFCC">  
<td width="66">姓 名</td>
<td width="120">时 间</td>
<td>消 息</td>
</tr>
<%for i=1 to xx step 4%><tr>
<td class=p9 width="66"><a href="#" onClick="javascript:window.open('webicq.asp?id=<%=Server.URLEncode(show(i+2))%>','hqtwebicq','Status=no,scrollbars=no,resizable=no,width=380,height=168')"><%=show(i+2)%></a></td>
<td class=p9 width="120"><%=show(i)%></td>
<td class=p9><%=show(i+3)%></td>
</tr><%next%>
</table>
</td>
</tr>
</table><br> 
<hr>
<script language="JavaScript"> 
var tid=null;tid=setTimeout('window.close()',100000); 
</script>
</div>
</body> 
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -