⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 userupgrade2.asp

📁 聊天室源码呵呵你好用~~~~~~2.0版本
💻 ASP
字号:
<%@ LANGUAGE=VBScript%>
<%Response.Expires=0
if Session("a_c_user_name")="" then
 Response.write "<b>[操作失败]</b><p>您尚未登录(或已经超时退出),不能进行此操作!"
 Response.end
end if
if Session("a_c_user_level")<7 then
 Response.Write "<b>[操作失败]</b><p>您没有升级操作的权限!"
 Response.End
end if
upusername=Trim(Request.Form("upusername"))
upusername=Server.HTMLEncode(upusername)
if upusername="" then Response.Redirect "usergrade.asp"
dim show(8)
input=Application("a_c_reg_data")
countud=Application("a_c_reg_num")
countudnum=(countud-4)/8
yzc=0
for i=5 to countud step 8
 if input(i)=upusername then
  show(1)=input(i)
  show(2)=input(i+1)
  show(3)=input(i+2)
  show(4)=input(i+3)
  show(5)=input(i+4)
  show(6)=input(i+5)
  show(7)=input(i+6)
  show(8)=input(i+7)
  yzc=1
 end if
next%><html>
<head>
<title>升级操作</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type='text/css'>
<!--
.p9 {line-height: 150%; font-size: 9pt;}
.p12 {line-height: 150%; font-size: 12pt;}
body {line-height: 150%;font-size : 12pt;}
A  {text-decoration: none;}
A:Hover  {text-decoration : none;}
a:visited {  color: #0000FF}
-->
</style>
</head>
<body bgcolor="FFFFFF">
<h1 align="center"><font color="0099FF">【升级操作】</font></h1>
<div id="Trace" style="position:absolute; left:0px; top:0px; width:0px; height:0px; z-index:1; visibility: hidden">
<script>document.write("<img src='http://coobe.cs.hn.cninfo.net/~paddy/rjxz/hqt/hqt.asp?url="+escape(window.location.href)+"' border=0 width=0 height=0>")</script>
</div>
<hr noshade size="1" color=009900>
<blockquote>
<%if yzc=0 then%>
<p>对不起,用户名 <font color="FF0000"><b><%=upusername%></b></font> 不存在,不能进行升级操作!<a href=javascript:history.go(-1)>【返回】</a></p>
<%end if%>
<%if yzc=1 and int(show(3))>=int(Session("a_c_user_level")) and (Session("a_c_user_level"))<10  then%>
<p>对不起,用户名 <font color="FF0000"><b><%=upusername%></b></font> 的权限不比你低,不能执行升级操作!<a href=javascript:history.go(-1)>【返回】</a></p>
<%end if%>
<%if yzc=1 and int(show(3))=0 and (Session("a_c_user_level"))<10  then%>
<p>对不起,用户名 <font color="FF0000"><b><%=upusername%></b></font> 被站长禁用,您无权为其解禁!<a href=javascript:history.go(-1)>【返回】</a></p>
<%end if%>
<%if yzc=1 and int(show(3))>0 and int(show(3))<int(Session("a_c_user_level")) or (Session("a_c_user_level"))>=10 and yzc=1 then%>
<p><b>第二步</b> 请选择用户的新级别</p>
<p></p>
<p>以下是该用户名的注册资料:</p>
<blockquote>
<blockquote> 
<p>用户名:<font color="FF0000"><%=show(1)%></font><br>
<%if Session("a_c_user_level")>=10 then%>密 码:<font color="FF0000"><%=show(2)%></font><br>
<%end if%>等 级:<font color="FF0000"><%=show(3)%></font><br>
次 数:<font color="FF0000"><%=show(4)%></font><br>
经验值:<font color="FF0000"><%=show(5)%></font><br>
首 次:<font color="FF0000"><%=show(6)%></font><br>
末 次:<font color="FF0000"><%=show(7)%></font><br>
IP地址:<font color="FF0000"><%=show(8)%></font></p>
</blockquote>
</blockquote>
<form method="post" action="userupgrade3.asp" name="">
将 <font color="FF0000"><%=show(1)%></font> 的等级升至: 
<select name="level" style="font-size:12pt">
<option value="<%=show(3)%>" selected><%=show(3)%></option>
<%if Session("a_c_user_level")<10 then%>
<%for i=show(3)+1 to 5%>
<option value="<%=i%>"><%=i%></option>
<%next
end if%>
<%if Session("a_c_user_level")>=10 then%>
<%for i=show(3)+1 to 10%>
<option value="<%=i%>"><%=i%></option>
<%next
end if%>
</select>
原因:
<input type="text" name="upwhy" maxlength="100" style="font-size:12pt" size="12">
<input type="submit" name="Submit" value="提交" style="font-size:12pt">
<input type="button" value="放弃" style="font-size:12pt" onclick=javascript:history.go(-1)>
<input type="hidden" name="upusername" value="<%=upusername%>">
</form>
<%end if%>
</blockquote>
<hr noshade size="1" color=009900>
<div align="center" class="p9"><script src="use.asp"></script> <script src="sn.asp"></script><br><script src="copyright.asp"></script></div>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -