% Function UserSysInfo(info,Seperator) If InStr(info,";")>0 Then Dim aryUserSysInfo aryUserSysInfo=split(info,";") If UBound(aryUserSysInfo)>=2 Then If InStr(info," Firefox/")>0 Then aryUserSysInfo(1)="Mozilla Firefox" ElseIf InStr(info," Firebird/")>0 Then aryUserSysInfo(1)="Mozilla Firebird" ElseIf InStr(info,"Maxthon")>0 Then aryUserSysInfo(1)="Maxthon" ElseIf InStr(info," MyIE2")>0 Then aryUserSysInfo(1)="MyIE2" ElseIf InStr(info," TencentTraveler")>0 Then aryUserSysInfo(1)="TencentTraveler" ElseIf aryUserSysInfo(1)="U" Then aryUserSysInfo(1)="Mozilla" Else aryUserSysInfo(1)=replace(trim(aryUserSysInfo(1)),"MSIE","Internet Explorer") End If aryUserSysInfo(2)=replace(aryUserSysInfo(2),")","") aryUserSysInfo(2)=replace(aryUserSysInfo(2),"NT 5.2","2003") aryUserSysInfo(2)=replace(aryUserSysInfo(2),"NT 5.1","XP") aryUserSysInfo(2)=replace(aryUserSysInfo(2),"NT 5.0","2000") aryUserSysInfo(2)=replace(aryUserSysInfo(2),"9x","Me") aryUserSysInfo(1)="浏 览 器:" & Trim(aryUserSysInfo(1)) aryUserSysInfo(2)="操作系统:" & Trim(aryUserSysInfo(2)) UserSysInfo=aryUserSysInfo(1) & Seperator & aryUserSysInfo(2) Else UserSysInfo="浏 览 器:未知" & Seperator & "操作系统:未知" End If Else UserSysInfo="未知" & Seperator & "未知" End If End Function Function welcomeInfo(LoginUserName) Dim nowtime,sRslt nowtime=hour(DateAdd("n",serverTimeAdd,now())) If nowtime<5 then sRslt="凌晨好," ElseIf nowtime>=5 and nowtime<12 then sRslt="上午好," ElseIf nowtime>=12 and nowtime<18 then sRslt="下午好," Else sRslt="晚上好," End If welcomeInfo=sRslt & "" & LoginUserName & "!你来自:" & userip End Function If mustUserLogined and u_name="" Then Server.Transfer "userLogin.asp" End If Dim i,n,iSpbCatID,sWhereStr,mailCount,loginTime,forumInfo,cookieSaveTime iSpbCatID=Request.QueryString("cat") If iSpbCatID<>"" And IsNumeric(iSpbCatID) Then iSpbCatID=Fix(iSpbCatID) If iSpbCatID<1 Then iSpbCatID=0 End If Else iSpbCatID=0 End If Call opendb() Call lockedIpCheck() If u_name<>"" Then sql="select count(mailId) from " & SpbStrTabPre & "forumMail where toUserId='" & u_name & "' and mailIsRead=0 and mailOwnerDel=0" rs.open sql,conn,0,1 mailCount=rs(0) rs.close Else mailCount=0 End If Call usertrack(0,"论坛首页") %>
| <%=forumname%> 8 查看主分类上的论坛版块 | <%ElseIf u_name<>"" Then%><%=welcomeinfo(u_name)%> | 您上次访问是在 <%=Request.Cookies(appPrefix & "SpbUser")("lasttime")%> | <%Else%>欢迎您,来自<%=userip%>的游客! | <%End If%>
| 欢迎新加入会员&ntime=<%=ntime%>"><%=application(appPrefix & "lastuser")%>[新进来宾] | 论坛短信(<%if mailCount=0 then%>0 新<%else%><%=mailCount%> 新 |
| 状态 | 论坛 | 信息 |
| 状态 | 论坛 | 信息 |
| <%if trim(forumInfo(5,i))<>"" then Response.Write " <%=forumInfo(4,i)%> 斑竹:<%=showadmins(forumInfo(12,i))%> |
新帖:<%if forumInfo(17,i)<>"" then%>保密 回复:保密<%else%><%=Replace(Replace(Replace(htmlEnc(forumInfo(9,i)),chr(8),""),chr(9),""),chr(23),"")%> 用户:<%if not isnull(forumInfo(10,i)) and trim(forumInfo(10,i))<>"" then Response.Write "" & forumInfo(10,i) & ""%><%end if%> 时间:<% if isdate(forumInfo(11,i)) then if cdate(forumInfo(11,i))>#1/2/1999# then Response.Write forumInfo(11,i) end if end if %> 新帖: <%=forumInfo(18,i)%> / <%=forumInfo(13,i)%> / <%=(forumInfo(13,i) + forumInfo(14,i))%> |
| <%
Response.Write "您的当前IP:" & userip & ", " & UserSysInfo(useragent,", ")
If u_name<>"" then
Response.Write " 上次登录IP:" & Request.Cookies(appPrefix & "SpbUser")("lastip") & ", 上次登录时间:" & Request.Cookies(appPrefix & "SpbUser")("lastTime") & ", Cookie有效期:" cookieSaveTime=Request.Cookies(appPrefix & "SpbUser")("saveTime") if cookieSaveTime="" or not isnumeric(cookieSaveTime) then Response.Write "0 天" else cookieSaveTime=Abs(Fix(cookieSaveTime)) if dateadd("s",cookieSaveTime,#1/1/2000#)>DateAdd("n",serverTimeAdd,now()) then Response.Write datediff("d",DateAdd("n",serverTimeAdd,now()),dateadd("s",cookieSaveTime,#1/1/2000#)) & " 天" else Response.Write "0 天" end if end if end if%> |
| 共有注册会员 <%=application(appPrefix & "usercount")%> 位 主题总数 <%=application(appPrefix & "topicCount")%> 回帖总数 <%=application(appPrefix & "replyCount")%> 访问统计 <%=application(appPrefix & "pageView")%> 今日发帖 <%=application(appPrefix & "todaycount")%> 昨日发帖 <%=application(appPrefix & "yestodaycount")%> 最高日发帖 <%=application(appPrefix & "maxdaytopic")%> 本论坛历史最高在线人数 <%=application(appPrefix & "maxOnlineCount")%> 人, 发生时刻 <%=application(appPrefix & "maxOnlineTime")%>, 当前在线 <%=(onlineRegNum + onlineGuestNum)%> 人, 其中注册会员 <%=fix(onlineRegNum)%> 人, 游客 <%=onlineGuestNum%> 人 |