📄 edit.asp
字号:
<%
user=Request.cookies("JyDownUserName")
if user<>"" then
user=replace(user," ","+++ close")
else
response.write("<li>您没有进入本页面的权限,本次操作已被记录!<br><li>如果你是本站会员请先<a href=login.asp target=_top>登陆</a>后进入.")
response.end
end if
server_vv=len(Request.ServerVariables("SERVER_NAME"))
server_v1=left(Cstr(Request.ServerVariables("HTTP_REFERER")),server_vv)
server_v2=left(Cstr("http://"&Request.ServerVariables("SERVER_NAME")),server_vv)
if server_v1<>server_v2 and server_v1<>"" and server_v2<>"" then
response.write("<script>alert('错误:禁止从站点外部提交数据!.')</script>")
response.end
end if
%>
<!--#include file="mdb_path_user.asp"-->
<!--#include file="char.inc"-->
<!--#include file="config.asp"-->
<%
pwd=replace(request.form("pwd")," ","+++ close")
set rs=server.CreateObject("ADODB.RecordSet")
rs.open "select * from UserInfo where user='"&user&"'",conn,1,2
if rs.eof then
JyDownMsg="错误:"&user&"用户资料读取错误,请重新登陆!"
else
if request("type")="save" then
if pwd="" then
JyDownMsg="错误:要修改资料必需填写原密码!"
else
if pwd<>rs("pwd") then
JyDownMsg="错误:原密码错误!"
else
qm=htmlencode(request.form("qm"))
if len(qm)>250 then
JyDownMsg="错误:个性签名多于250个字符!"
else
if request.form("pwd1")<>"" or request.form("pwd2")<>"" then
if request.form("pwd1")<>request.form("pwd2") then
JyDownMsg="错误:要修改两次输入密码不相同,密码没被修改;<br><font color=""#4D9CC8"">·</font>"
else
rs("pwd")=request.form("pwd1")
end if
end if
rs("email")=request.form("email")
rs("oicq")=request.form("oicq")
rs("homepage")=request.form("homepage")
rs("sex")=request.form("sex")
rs("face")=request.form("face")
rs("qm")=qm
rs("softurl")=request.form("softurl")
response.cookies("JyDownUserSoftUrl")=request.form("softurl")
JyDownMsg=JyDownMsg&"成功:修改资料完成!"
rs.Update
end if
end if
end if
end if
email=rs("email")
oicq=rs("oicq")
homepage=rs("homepage")
sex=rs("sex")
face=rs("face")
qm=rs("qm")
softurl=rs("softurl")
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<html>
<head>
<title>MyFlash - 修改个人资料</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style>
td{font-size:9pt;line-height:140%}
body{font-size:9pt;line-height:140%}
a:link { color: #0033CC; text-decoration: none }
a:visited { color: #0033CC; text-decoration: none }
a:active { color: #4D9CC8; text-decoration: none }
a:hover { color: #4D9CC8; text-decoration: underline}
</style>
</head>
<body topmargin="0" leftmargin="0">
<script language=javascript src="../in_top2.js"></script>
<form action="edit.asp" method="post">
<input type="hidden" name="type" value="save">
<div align="center">
<center>
<%if request("type")="save" then%>
<table border="0" cellspacing="0" style="border-collapse: collapse" width="500" cellpadding="0">
<tr>
<td width="100%"><font color="#4D9CC8"><%=JyDownMsg%></font> 时间:<%=Now()%></td>
</tr>
</table>
<%end if%>
<table border="0" cellspacing="1" style="border-collapse: collapse" width="500" bgcolor="#cococo">
<tr>
<td width="100%" bgcolor="#4D9CC8">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%">
<tr>
<td width="50%"><font color="#FFFFFF"><b>修改个人资料</b></font></td>
<td width="50%"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF">
用户名:<input disabled name="u" value="<%=user%>" size="15" style="border-style: solid; border-width: 1"></td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF">
原密码:<input name="pwd" size="15" style="border-style: solid; border-width: 1" type="password">
<font color="#4D9CC8">*(必写)</font></td>
</tr>
<tr>
<td width="100%" bgcolor="#F4F4F4">
<b><font color="#000080">修改登陆密码</font></b></td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF">
新密码:<input name="pwd1" size="15" style="border-style: solid; border-width: 1" type="password">
<font color="#808080">不能有空格,不修改请留空</font></td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF">
确认密码:<input name="pwd2" size="15" style="border-style: solid; border-width: 1" type="password"><font color="#808080">
同上</font></td>
</tr>
<tr>
<td width="100%" bgcolor="#F4F4F4">
<font color="#000080"><b>修改其它资料</b></font></td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF">
性别:<select size="1" name="sex">
<option selected value="男">男</option>
<option<%if sex="女" then%> selected<%end if%> value="女">女</option>
</select></td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF">
头像:<select size="1" name="face">
<option<%if face="0" then%> selected<%end if%> selected value="0">0</option>
<option<%if face="1" then%> selected<%end if%> value="1">1</option>
<option<%if face="2" then%> selected<%end if%> value="2">2</option>
<option<%if face="3" then%> selected<%end if%> value="3">3</option>
<option<%if face="4" then%> selected<%end if%> value="4">4</option>
<option<%if face="5" then%> selected<%end if%> value="5">5</option>
<option<%if face="6" then%> selected<%end if%> value="6">6</option>
<option<%if face="7" then%> selected<%end if%> value="7">7</option>
<option<%if face="8" then%> selected<%end if%> value="8">8</option>
<option<%if face="9" then%> selected<%end if%> value="9">9</option>
<option<%if face="10" then%> selected<%end if%> value="10">10</option>
<option<%if face="11" then%> selected<%end if%> value="11">11</option>
<option<%if face="12" then%> selected<%end if%> value="12">12</option>
<option<%if face="13" then%> selected<%end if%> value="13">13</option>
<option<%if face="14" then%> selected<%end if%> value="14">14</option>
<option<%if face="15" then%> selected<%end if%> value="15">15</option>
<option<%if face="16" then%> selected<%end if%> value="16">16</option></select> <font color="#808080">代号请看:[</font><a target="_blank" href="face.asp">头像列表</a><font color="#808080">]</font> “0”为没有头像!</td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF">
OICQ:<input name="oicq" size="15" style="border-style: solid; border-width: 1" value="<%=oicq%>"></td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF">
E-Mail:<input name="email" size="32" style="border-style: solid; border-width: 1" value="<%=email%>"></td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF">
个人主页:<input name="homepage" size="32" style="border-style: solid; border-width: 1" value="<%=homepage%>"></td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF" valign="top">
个性签名:<textarea rows="3" name="qm" cols="59"><%=qm%></textarea><font color="#808080"><br>
250字符内,不支持HTML语言,支持<a target="_blank" href="../help/ubb.htm">ubb</a>语言.</font></td>
</tr>
<tr>
<td width="100%" bgcolor="#F4F4F4">
<font color="#000080"><b>作品添加功能</b></font><font color="#808080">
(有管理作品权限的管理员才使用到此功能)</font></td>
</tr>
<tr>
<td width="100%" bgcolor="#FFFFFF">
作品链接:<input name="softurl" size="35" style="border-style: solid; border-width: 1" value="<%=softurl%>"><font color="#808080">
添加链接地址时默认显示URL</font></td>
</tr>
<tr>
<td width="100%" bgcolor="#DFDFDF">
<p align="center">
<input<%if webuseredit<>"1" then%> disabled<%end if%> name="b1" type="submit" value="确认修改">
<input name="b2" type="reset" value="全部还原"></p>
</td>
</tr>
</table>
</center>
</div>
</form><hr width="760" size="1">
<script language=javascript src=../js/copyright.js></script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -