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

📄 user_editpass.asp

📁 SK信息采集2.0功能介绍: 1.可针对任何静态网页,动态网页进行采集。包括htm,html,shtml,ASP,ASPX,JSP,PHP等。 2.增加自定文件采集.用户可采集网页中的所有文件.
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%option explicit%>
<!--#include file="../Conn.asp"-->
<!--#include file="../SysCls/KS_UserCommonCls.asp"-->
<%
'===================================================================================================================
'软件名称:科汛网站管理系统
'当前版本:科汛网站管理系统 V2.2 SP2 Free
'Copyright (C) 2005-2006 Kesion.Com  All rights reserved.
'产品咨询QQ:9537636,41904294
'技术支持QQ:111394,54004407 
'程序版权:科汛网络
'程序开发:科汛网络开发组(总策划:林文仲)
'E-Mail  :kesioncms@hotmail.com webmaster@kesion.com
'官方网站:http://www.kesion.com  
'演示站点:http://test.kesion.com 
'郑重声明:
'    ①、免费版本请在程序首页保留版权信息,并做上本站LOGO友情连接,商业版本无此要求;
'    ②、任何个人或组织不得在授权允许的情况下删除、修改、拷贝本软件及其他副本上一切关于版权的信息;
'    ③、科汛网络保留此软件的法律追究权利
'===================================================================================================================
Dim KSCls
Set KSCls = New Admin_Index
KSCls.Execute()
Set KSCls = Nothing

Class Admin_Index
        Private KSCMS,KSUser
		Private Sub Class_Initialize()
		  Set KSCMS=New CommonCls
		  Set KSUser = New UserCls
		End Sub
        Private Sub Class_Terminate()
		 Set KSCMS=Nothing
		 Set KSUser=Nothing
		End Sub
		Public Sub Execute()
		
		IF Cbool(KSUser.UserLoginChecked)=false Then
		  Response.Write "<script>location.href='Login.asp';</script>"
		  Exit Sub
		End If
		KSUser.LoadHead()
		%>

		<TABLE height="380" cellSpacing=0 width=770 align=center border=0>
		<TR>
		<TD vAlign=top bgColor=#FFFFFF>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="32">&nbsp;当前位置 >> <a href="<%=KSCMS.GetConfig("WebUrl")%>"><%=KSCMS.GetConfig("WebName")%></a> >> 会员中心首页</td>
          </tr>
          <tr>
            <td>
			<%
			KSUser.LoadMenu()
			%>
			</td>
          </tr>
        </table>
		  <table width="770" height="460" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td>
				<script language = "JavaScript">
				function CheckForm()
				{
				if (document.myform.oldpassword.value=="")
				  {
					alert("请输入旧密码!");
					document.myform.oldpassword.focus();
					return false;
				  }
				if (document.myform.newpassword.value=="")
				  {
					alert("请输入新密码!");
					document.myform.newpassword.focus();
					return false;
				  }
				if (document.myform.renewpassword.value=="")
				  {
					alert("请再输入一次新密码!");
					document.myform.renewpassword.focus();
					return false;
				  }
				  
				if (document.myform.newpassword.value!=document.myform.renewpassword.value)
				{
					alert("两次输入的密码不一致!");
					document.myform.newpassword.focus();
					return false;
				}
				  return true;  
				}
				</script>


          <%IF KSCMS.G("Action")="Save" Then
		     Dim RS
		     Dim Oldpassword:Oldpassword=KSCMS.ReplaceBadChar(KSCMS.G("Oldpassword"))
			 Dim NewPassWord:NewPassWord=KSCMS.ReplaceBadChar(KSCMS.G("NewPassWord"))
			 Dim ReNewPassWord:ReNewPassWord=KSCMS.G("ReNewPassWord")
			 If Oldpassword = "" Then
				 Response.Write("<script>alert('请输入旧登录密码!');history.back();</script>")
				 Response.End
              End IF
			 If NewPassWord = "" Then
				 Response.Write("<script>alert('请输入登录密码!');history.back();</script>")
				 Response.End
			 ElseIF ReNewPassWord="" Then
				 Response.Write("<script>alert('请输入确认密码');history.back();</script>")
				 Response.End
			 ElseIF NewPassWord<>ReNewPassWord Then
				 Response.Write("<script>alert('两次输入的密码不一致');history.back();</script>")
				 Response.End
			 End If
			 
			 OldPassWord =KSCMS.MD5(OldPassWord,16)
			 NewPassWord =KSCMS.MD5(NewPassWord,16)
			 
             Set RS=Server.CreateObject("Adodb.RecordSet")
			  RS.Open "Select PassWord From KS_User Where UserName='" & KSUser.Get_UserName & "' And PassWord='" & OldPassWord & "'",Conn,1,3
			  IF RS.Eof And RS.Bof Then
			  	 Response.Write("<script>alert('您输入的旧密码有误!');history.back();</script>")
				 Response.End
			  Else
			     RS(0)=NewPassWord
				 Response.Cookies(KSCMS.SiteSn)("PassWord") = NewPassWord
				 RS.Update
			  End if
		    %>
          <table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="8" valign="bottom" bgcolor="#EAEAEA"><table width="742" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td height="4" bgcolor="#FFFFFF"></td>
                  </tr>
              </table></td>
            </tr>
          </table>
          <table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td></td>
            </tr>
            <tr>
              <td bgcolor="#EAEAEA"><table width="742" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td valign="top" bgcolor="#FFFFFF"><table width="96%"  border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                          <td width="40%" height="50" align="right"><img src="images/dsd.gif" width="29" height="28" /></td>
                          <td width="47%" valign="middle"><table cellspacing="1" cellpadding="1">
                              <tr>
                                <td height="24" valign="bottom"><span class="style5">会员密码修改成功</span></td>
                              </tr>
                          </table></td>
                        </tr>
                      </table>
                        <table bordercolor="#dddddd" cellspacing="1" cellpadding="0" width="96%" align="center" border="1">
                          <tbody>
                            <tr>
                              <td height="42" align="center" bordercolor="#eeeeee" class="style6">您的会员登录密码修改成功!新密码 <font color=red><%=KSCMS.ReplaceBadChar(KSCMS.G("NewPassWord"))%></font> 请牢记。 </td>
                            </tr>
                          </tbody>
                        </table>
                      <table width="96%"  border="0" align="center" cellpadding="0" cellspacing="0">
                          <tr>
                            <td height="4" bgcolor="#999999"></td>
                          </tr>
                      </table>
                      <table width="96%"  border="0" align="center" cellpadding="0" cellspacing="0">
                          <tr>
                            <td>&nbsp;</td>
                          </tr>
                      </table></td>
                  </tr>
              </table></td>
            </tr>
          </table>
		  	<table width="745"  border="0" align="center" cellpadding="0" cellspacing="0">
						<tr>
						  <td height="4" bgcolor="#EEEEEE">
						  </td>
						</tr>
			    </table>
			<%
           Else
		   %>
			<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
			  <tr>
				<td height="8" valign="bottom" bgcolor="#EAEAEA"><table width="742" border="0" align="center" cellpadding="0" cellspacing="0">
				  <tr>
					<td height="4" bgcolor="#FFFFFF">		</td>
				  </tr>
				</table></td>
			  </tr>
			</table>

			<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
			 <form name="myform" method="post" action="?Action=Save" onSubmit="return CheckForm();">
			  <tr>
				<td bgcolor="#EAEAEA"><table width="742" border="0" align="center" cellpadding="0" cellspacing="0">
				  <tr>
					<td valign="top" bgcolor="#FFFFFF"><table width="96%"  border="0" align="center" cellpadding="0" cellspacing="0">
					  <tr>
						<td width="40%" height="50" align="right"> <img src="images/dsd.gif" width="29" height="28"></td>
						<td width="47%" valign="middle"> <table cellspacing="1" cellpadding="1">
						  <tr>
							<td height="24" valign="bottom"><span class="style5">会员密码修改</span></td>
						  </tr>
						</table> </td>
					  </tr>
					</table>          
			
					  <TABLE borderColor=#dddddd cellSpacing=1 cellPadding=0 width="96%" align=center border=1>
						<TBODY>
						  <TR>
							<TD width="40%" height=22 align="right" borderColor=#eeeeee bgColor=#EAEAEA class="gb style6"> 输入旧密码: </TD>
							<TD width="60%" borderColor=#eeeeee bgColor=#f5f5f5><input type="password" name="oldpassword" size="20"></TD>
						  </TR>
						</TBODY>
					  </TABLE>
					  <TABLE borderColor=#dddddd cellSpacing=1 cellPadding=0 width="96%" align=center border=1>
						<TBODY>
						  <TR>
							<TD width="40%" height=22 align="right" borderColor=#eeeeee bgColor=#EAEAEA class="style6"> <span class="gb style6">输入新密码</span>:</TD>
							<TD width="60%" borderColor=#eeeeee bgColor=#f5f5f5><input type="password" name="newpassword" size="20"></TD>
						  </TR>
						</TBODY>
					  </TABLE>
					  <TABLE borderColor=#dddddd cellSpacing=1 cellPadding=0 width="96%" align=center border=1>
						<TBODY>
						  <TR>
							<TD width="40%" height=22 align="right" borderColor=#eeeeee bgColor=#EAEAEA class="style6"> 请确认密码:</TD>
							<TD width="60%" borderColor=#eeeeee bgColor=#f5f5f5><input type="password" name="renewpassword" size="20"></TD>
						  </TR>
						</TBODY>
					  </TABLE>
					  <TABLE borderColor=#dddddd cellSpacing=1 cellPadding=0 width="96%" align=center border=1>
						<TBODY>
						  <TR>
							<TD width="33%" height=42 align="right" borderColor=#eeeeee bgColor=#F5F5F5 class="style6">&nbsp; </TD>
							<TD width="67%" borderColor=#eeeeee bgColor=#f5f5f5>
							<input name="Submit" type="submit" class="button2" value="修 改">
							  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							  <input name="Submit2" type="reset" class="button2" value="重 填"> </TD>
						  </TR>
						</TBODY>
					  </TABLE>
					  <table width="96%"  border="0" align="center" cellpadding="0" cellspacing="0">
						<tr>
						  <td height="4" bgcolor="#999999">
						  </td>
						</tr>
					  </table>
					  <table width="96%"  border="0" align="center" cellpadding="0" cellspacing="0">
						<tr>
						  <td>&nbsp;</td>
						</tr>
					  </table>          </td>
				  </tr>
				</table></td>
			  </tr>
			</table>
							  <table width="745"  border="0" align="center" cellpadding="0" cellspacing="0">
						<tr>
						  <td height="4" bgcolor="#EEEEEE">
						  </td>
						</tr>
						</form>
					  </table>
		  	 <%End IF%> 			  
			  <br />
			  </td>
            </tr>
          </table>
		  <%
       KSUser.LoadFoot()
  End Sub
End Class
%>

⌨️ 快捷键说明

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