📄 man_user_changeinfook.asp
字号:
<%Response.Expires=0%>
<%
if not IsArray(Session("info")) then Response.Redirect "err1.asp?kind=01"
info=Session("info")
if InStr(Application("maninfo"),"," & info(0) & ",")<>0 then Response.Redirect "manyou.asp"
gradeinfo=Application("gradeinfo")
if gradeinfo(info(1),24)<>true then Response.Redirect "err1.asp?kind=20"
name=Trim(Request.Form("name"))
name=Replace(name," ","")
name=Replace(name,"'","")
name=Replace(name,chr(34),"")
name=Server.HTMLEncode(name)
if name="" then Response.Redirect "err.asp?kind=55"
%>
<!--#INCLUDE FILE="config.asp" -->
<%
if name=zzbird_master then Response.Redirect "err.asp?kind=71"
Set Conn=server.createobject("ADODB.CONNECTION")
Conn.Open Application("zzbird_conn")
Set Rs=server.createobject("adodb.recordset")
sql="select * from userinfo where user='"&name&"'"
rs.open sql,conn,1,3
if Rs.Eof and Rs.bof then
Rs.Close
Set Rs=Nothing
Conn.Close
Set Conn=Nothing
Response.Redirect "err.asp?kind=500"
else
pass=Request.Form("pass")
if pass<>"" then
if len(pass)<4 then Response.Redirect "err.asp?kind=08"
oldpass=pass
pass=StrReverse(pass)
lenpass=len(pass)
password=""
firsttime=cstr(Rs("firsttime"))
for i=1 to lenpass
k=int(right(firsttime,1))*(1+0.1*i)-15
if k<2 then k=k+5
password=password+chr(asc(mid(pass,i,1))-int(lenpass*1.5)+int(i*1.1)+k)
next
Rs("pass")=password
end if
if Request.Form("mi")="ON" then
Rs("mi")=true
else
Rs("mi")=false
end if
Rs("email")=server.HTMLEncode(Request.Form("email"))
Rs("tname")=server.HTMLEncode(Request.Form("tname"))
if IsNumeric(Request.Form("oicq")) then Rs("oicq")=Request.Form("oicq")
if IsNumeric(Request.Form("icq")) then Rs("icq")=Request.Form("icq")
Rs("home")=server.HTMLEncode(Request.Form("home"))
Rs("phone")=server.HTMLEncode(Request.Form("phone"))
if IsNumeric(Request.Form("yb")) then Rs("yb")=Request.Form("yb")
Rs("place")=server.HTMLEncode(Request.Form("place"))
Rs("born")=server.HTMLEncode(Request.Form("byear")) & ";" & server.HTMLEncode(Request.Form("bmonth")) & ";" & server.HTMLEncode(Request.Form("bday")) & ";"
Rs("job")=server.HTMLEncode(Request.Form("job"))
Rs.Update
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/edit.gif"><%=Rs("user")%>--个人资料更新成功(<%if Rs("mi")=true then%>保密<%else%>公开<%end if%>)</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="touxian" size="14" value="<%touxian(Rs("touxian"))%>"></td>
<td width="50%">累积分/月积分:<br>
<input readonly type="text" name="value" size="14" value="<%=Rs("value")&"/"&Rs("monthv")%>"></td>
</tr>
<tr>
<td width="50%">等级:<br>
<input readonly name="grade" size="14" value="<%=Rs("grade")%>"></td>
<td width="50%">首次登陆:<br>
<input readonly type="text" name="firsttime" size="14" value="<%=Rs("firsttime")%>"></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="lasttime" size="14" value="<%=Rs("lasttime")%>"></td>
</tr>
<tr>
<td width="50%">最后IP:<br>
<input readonly type="text" name="lasttime1" size="14" value="<%=Rs("lastip")%>"></td>
<td width="50%">密码:<%if pass<>"" then%>(<a href="javascript:alert('<%=oldpass%>')"><font color="red">查看新密码</font></a>)<%end if%><br>
<input readonly type="text" name="pass" size="14" value="**************"></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">
<input type="button" value="返回" name="B1" style="border-style:outset; border-width:1; width: 50; height: 20; color:#000000" onclick=javascript:location.href="man_user_changeinfo.asp";>
<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>
</body>
</html>
<%
Rs.Close
Set Rs=Nothing
Conn.Close
Set Conn=Nothing
end if%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -