"
if membername<>"" then
response.write " 我参与的主题 | 已被回复的我的发言"
end if
response.write " | "
if Cint(online())>Cint(Maxonline) then
conn.execute("update config set Maxonline="&online()&",MaxonlineDate=Now()")
application("Maxonline")=online()
application("MaxonlineDate")=now()
end if
'ON ERROR RESUME NEXT
if membername<>"" then
call getRe()
if Cint(incept())>Cint(0) then
if openmsg=0 then
response.write " 您有新短消息"
else
response.write ""
end if
end if
end if
response.write " |
您的帖子有人回复了"
end if
rs1.close
set rs1=nothing
end sub
'用户来源
function address(sip)
if isnumeric(left(sip,2)) then
set iprs=server.createobject("adodb.recordset")
if sip="127.0.0.1" then sip="192.168.0.1"
str1=left(sip,instr(sip,".")-1)
sip=mid(sip,instr(sip,".")+1)
str2=left(sip,instr(sip,".")-1)
sip=mid(sip,instr(sip,".")+1)
str3=left(sip,instr(sip,".")-1)
str4=mid(sip,instr(sip,".")+1)
if isNumeric(str1)=0 or isNumeric(str2)=0 or isNumeric(str3)=0 or isNumeric(str4)=0 then
else
num=cint(str1)*256*256*256+cint(str2)*256*256+cint(str3)*256+cint(str4)-1
ipsql="select Top 1 country,city from address where ip1 <="&num&" and ip2 >="&num&""
iprs.open ipsql,conn,1,1
if iprs.eof and iprs.bof then
country="亚洲"
city=""
else
country=iprs("country")
city=iprs("city")
end if
iprs.close
set iprs=nothing
end if
address=country&city
else
address="未知"
end if
end function
conn.close
set conn=nothing
%>