iphone azw3怎么打开:如何取得特管理员权限?

来源:百度文库 编辑:高考问答 时间:2024/04/29 16:00:28
主要代码如下:
<%if request.cookies("admincnmai")("max")<>1 then
dim UserName
UserName=request.cookies("admincnmai")("username")
cnmai=request("cnmai")
password2=trim(request("password2"))
set rs = Server.CreateObject("ADODB.RecordSet")
sql="select * from admin where UserName='"&UserName&"'"
rs.open sql,conn,1,3
if cnmai="editchk1" then
if password2="" then
response.write"<SCRIPT language=JavaScript>alert('请填写新的密码');javascript:history.go(-1)</SCRIPT>"
response.end
end if
rs("password")=md5(password2)
rs.update
response.write"<SCRIPT language=JavaScript>alert('密码修改成功');</SCRIPT>"
response.write "<meta http-equiv=refresh content=""1;URL=index.asp"">"
response.end
end if
%>
<div align="center">
<table border="1" width="45%" cellspacing="1" style="border-collapse: collapse" bordercolor="#CCCCCC" height="102">
<tr>
<td align="center" height="25" bgcolor="#FEEEBC"><b>修改<%=rs("username")%>(二级管理员)密码</b></td>
</tr>
<tr>
<td height="75">
<form method="POST" action="admin_add.asp?cnmai=editchk1" style="line-height: 150%; margin-top: 0; margin-bottom: 0">
<p align="center" style="line-height: 200%; ">
新密码:<input name="password2" size="20" maxlength="20" type="password"></p>
<p align="center" style="line-height: 200%; ">
<input type="submit" value="确定修改" name="editchk"></p>
</form>
</td>
</tr>
</table>
</div>
<%
else
%>
<div align="center">
<form method="POST" action="admin_addchk.asp">
<center>
<table style="BORDER-COLLAPSE: collapse" borderColor="#cccccc" height="68" cellSpacing="0" cellPadding="0" width="45%" border="1">
<tr>
<td bgColor="#FEEEBC" height="25">
<p align="center"><b>增加管理员</b></td>
</tr>
<tr>
<td style="BORDER-BOTTOM: medium none" align="middle" height="21"><br>
用户名:<input name="username" size="20" maxlength="20"></td>
</tr>
<tr>
<td style="BORDER-TOP: medium none; BORDER-BOTTOM: medium none" align="middle" height="25">密  码:<input name="password" size="20" maxlength="20"></td>
</tr>
<tr>
<td style="BORDER-TOP: medium none" height="25">
<p align="center">
<input type="submit" value="确定添加" name="B1"></td>
</tr>
</table>