📄 seeinfo.asp
字号:
<%Response.Expires = 0%>
<%
If Not IsArray(Session("info")) Then Response.Redirect "err1.asp?kind=01"
username = Trim(Request("user"))
username = Replace(username," ","")
username = Replace(username,"'","")
username = Replace(username,";","")
username = Replace(username,chr(34),"")
If username = "" Then Response.Redirect "err1.asp?kind=02"
info = Session("info")
If InStr(Application("maninfo"),"," & info(0) & ",") <> 0 Then Response.Redirect "manyou.asp"
gradeinfo = Application("gradeinfo")
Set Conn = Server.CreateObject("ADODB.CONNECTION")
Conn.Open Application("zzbird_conn")
Set Rs = Server.CreateObject("adodb.recordset")
sql = "select * from userinfo where user='" & username & "'"
Rs.Open sql,Conn,3,3
If Rs.Eof And Rs.Bof Then
Rs.Close
Set Rs = Nothing
Conn.Close
Set Conn = Nothing
Response.Redirect "err1.asp?kind=03"
Else
If Rs("lastmonth") <> Month(date) Then
Rs("lastmonth") = month(date)
Rs("monthv") = 0
Rs.UpDate
End If
If username <> info(0) And gradeinfo(info(1),24) <> True Then
If Rs("mi") = True Then
Rs.Close
Set Rs = Nothing
Conn.Close
Set Conn = Nothing
Response.Redirect "err1.asp?kind=04"
End if
If InStr(Rs("unfriend"),"," & info(0) & ",") <> 0 Then
Rs.Close
Set Rs=Nothing
Conn.Close
Set Conn=Nothing
Response.Redirect "err1.asp?kind=05"
End If
End If
ip_num = gradeinfo(info(1),8)
If ip_num > 3 Or username = info(0) Then
ip=Rs("lastip")
ElseIf ip_num = 0 Then
ip="***.***.***.***"
Else
theip = Split(Rs("lastip"),".")
Select Case ip_num
Case 1 ip = theip(0) & ".***.***.***"
Case 2 ip = theip(0) & "." & theip(1) & ".***.***"
Case 3 ip = theip(0) & "." & theip(1) & "."&theip(2) & ".***"
End Select
End If
Function lockuser(v)
If v = True Then
Response.Write "是"
Else
Response.Write "否"
End If
End Function
Function touxian(v)
If v="" Then
Response.Write "(暂无)"
Else
Response.Write v
End If
End Function
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>查看用户资料</title>
<style>
<!--
input { border-style:inset; border-width:1; background-color: buttonface; width:120; height:18; color:#0000FF }
-->
</style>
</head>
<body oncontextmenu=self.event.returnValue=false style="border: 3px double buttonface; font-size:10pt" bgcolor="buttonface">
<fieldset style="padding: 2">
<legend><font color="#A20000"><img border="0" src="images/show.gif"><%=Rs("user")%>--详细资料<%if Rs("mi")=true then Response.Write "(保密)"%></font></legend>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; font-size: 10pt" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="50%">头衔:<br>
<input readonly type="text" name="value" size="14" value="<%touxian(Rs("touxian"))%>"></td>
<td width="50%">累积分/月积分:<br>
<input readonly type="text" name="monthv" size="14" value="<%=Rs("value") & "/" & Rs("monthv")%>"></td>
</tr>
<tr>
<td width="50%">永久保留:<br>
<input readonly type="text" name="lockuser" size="14" value="<%lockuser(Rs("lockuser"))%>"></td>
<td width="50%">等级:<br>
<input readonly name="grade" size="14" value="<%=Rs("grade")%>"></td>
</tr>
<tr>
<td width="50%">登陆次数:<br>
<input readonly type="text" name="times" size="14" value="<%=Rs("times")%>"></td>
<td width="50%">首次登陆:<br>
<input readonly type="text" name="firsttime" size="14" value="<%=Rs("firsttime")%>"></td>
</tr>
<tr>
<td width="50%">最后IP:<br>
<input readonly type="text" name="lastip" size="14" value="<%=ip%>"></td>
<td width="50%">最后登陆:<br>
<input readonly type="text" name="lasttime" size="14" value="<%=Rs("lasttime")%>"></td>
</tr>
<tr>
<td width="50%">电子邮箱:<br>
<input readonly type="text" name="email" size="14" value="<%=Rs("email")%>"></td>
<td width="50%">真实姓名:<br>
<input readonly type="text" name="tname" size="14" value="<%=Rs("tname")%>"></td>
</tr>
<tr>
<td width="50%">OICQ号码:<br>
<input readonly type="text" name="oicq" size="14" value="<%=Rs("oicq")%>"></td>
<td width="50%">邮政编码:<br>
<input readonly type="text" name="yb" size="14" value="<%=Rs("yb")%>"></td>
</tr>
<tr>
<td width="50%">ICQ号码:<br>
<input readonly type="text" name="icq" size="14" value="<%=Rs("icq")%>"></td>
<td width="50%">所在地:<br>
<input readonly type="text" name="place" size="14" value="<%=Rs("place")%>"></td>
</tr>
<tr>
<td width="50%">个人主页:<br>
<input readonly type="text" name="home" size="14" value="<%=Rs("home")%>"></td>
<td width="50%">出生日期:<font style="font-size:8pt">(年/月/日)</font><br>
<%born=Split(Rs("born"),";")%>
<select disabled size="1" name="byear" style="font-size: 8pt; width: 46; height: 46; background-color:buttonface">
<option><%=born(0)%></option>
</select><select disabled size="1" name="bmonth" style="font-size: 8pt; width: 35; background-color:buttonface">
<option><%=born(1)%></option>
</select><select disabled size="1" name="bday" style="font-size: 8pt; width: 35; background-color:buttonface">
<option><%=born(2)%></option>
</select></td>
</tr>
<tr>
<td width="50%">电话/传呼:<br>
<input readonly type="text" name="phone" size="14" value="<%=Rs("phone")%>"></td>
<td width="50%">从事职业:<br>
<input readonly type="text" name="job" size="14" value="<%=Rs("job")%>"></td>
</tr>
</table>
</fieldset><div align="center">
<%
If username = info(0) Then
%>
<input type="button" value="更改" name="B1" onclick="javascript:location.href='changeinfo.asp';" style="border-style:outset; border-width:1; width: 50; height: 20; color:#000000">
<%
ElseIf gradeinfo(info(1),24) = True Then
%>
<input type="button" value="更改" name="B1" onclick="javascript:location.href='man_user_changeinfo.asp?name=<%=username%>';" style="border-style:outset; border-width:1; width: 50; height: 20; color:#000000">
<%
Else
%>
<input type="button" value="更改" name="B1" disabled style="border-style:outset; border-width:1; width: 50; height: 20; color:#000000">
<%
End If
%>
<input type="button" value="关闭" name="B3" style="border-style:outset; border-width:1; width: 50; height: 20; color:#000000" onclick="javascript:window.close();"></div>
<div align="right">
<a href="http://aspxer.com/go.aspx?action=nowchat" target="_blank"><font style="font-size: 8pt" color="#808080">NowChat 2.2 - Powered by 喳喳鸟</font></a></div>
<script Language=JavaScript>
window.resizeTo(300,430);
</script>
</body>
</html>
<%
Rs.Close
Set Rs = Nothing
Conn.Close
Set Conn = Nothing
End If
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -