📄 system.asp
字号:
<%
'###########################################################################################
' Copyright (C) 2006 FreeLin rights reserved. '
' 本系统由FREELIN工作室独立开发2006.3.20 '
' 版权所有,并保留所有版权,不得修改传播 '
' http://www.yisky.com '
' co_lin@126.com '
'###########################################################################################
%>
<!--#include file="config.asp"-->
<!--#include file="freelin.asp"-->
<!--#include file="md5.asp"-->
<%
'############################################################################
if request.form("admin")<>"" then
olduser = trim(request("olduser"))
newpass1 = trim(request("newpass1"))
newpass2 = trim(request("newpass2"))
if olduser="" or newpass1="" or newpass2="" then xln_showmsg "操作失败","所有项目都不能为空!","system.asp","自动返回"
if newpass2<>newpass1 then xln_showmsg "操作失败","你的输入有误、两次密码不相同!","system.asp","自动返回"
newpass = md5(newpass1)
conn.execute("update admin set username='"&olduser&"',pass='"&newpass&"'")
conn.close
xln_showmsg "操作成功","修改成功,在右边选择你的操作。","body.asp","自动返回"
end if
%>
<table width="60%" border="1" align="center" cellpadding="3" cellspacing="0" bordercolor="#f0f0f0">
<form name="form1" method="post" action="">
<tr>
<td height="30" colspan="2" align="center"><strong>管理员参数设置</strong></td>
</tr>
<tr>
<td width="163" height="25" align="right">管理员:</td>
<td width="291"> <input name=olduser value='<%=Session("user")%>'>
</td>
</tr>
<tr>
<td width="163" height="13" align="right">新密码:</td>
<td> <input name=newpass1 type=password></td>
</tr>
<tr>
<td width="163" height="12" align="right">重复密码:</td>
<td> <input name=newpass2 type=password></td>
</tr>
<tr>
<td height="30" colspan="2" align="center" bgcolor="#fafafa"> <input name=admin type=submit value="修改">
<input name="reset2" type=reset id="reset2" value="取消">
</td>
</tr>
</form>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -