📄 modpwd.aspx.vb
字号:
' ***************************************************
' * 本程序由AspToAspX风火轮0.99转换生成 *
' * http://Www.AspToAspX.Cn *
' * Q Q : 139227536 *
' * QQ群: 17152722 *
' * MSN : gzliangjianhua@hotmail.com *
' * EMail AspToDll@vip.163.com *
' ***************************************************
Imports Microsoft.VisualBasic
Imports System.Web
Imports System.Math
Imports System.Web.SessionState
Public Class _MODPWD
Inherits System.Web.UI.Page
Implements IHttpHandler, AspToAspX_Interface
Public AspToAspX_Host_Class_Object As Object
Public userid
Public password
Public oldpwd
Public sql
Public rs1
Public AspToAspX_Str
Public msg
Public rs As ADODB.Recordset
Public username
Public userimg
Public homepagetitle
Public cssfile
Public bokeer
Public blogheadimg
Public linkdb
Public ft
Public ku
Public ckiesdomain
Public conndb
Public ConnectionString
Public clubuser_id
Public rs8
Public ASPX_CONN As _CONN
Public ASPX_INC_MD5 As _INC_MD5
Public ASPX_BBSUSER As _BBSUSER
Public ASPX_USERNAV As _USERNAV
Public ASPX_MYHEAD As _MYHEAD
Public ASPX_USERCALOG As _USERCALOG
Public ASPX_TAIL As _TAIL
#Region "..."
Public Sub AspToAspX_InitIncludeFiles()
ASPX_CONN = New _CONN()
ASPX_CONN.AspToAspX_Host_Class_Object = AspToAspX_Host_Class_Object
ASPX_CONN.AspToAspX_InitIncludeFiles()
ASPX_INC_MD5 = New _INC_MD5()
ASPX_INC_MD5.AspToAspX_Host_Class_Object = AspToAspX_Host_Class_Object
ASPX_INC_MD5.AspToAspX_InitIncludeFiles()
ASPX_BBSUSER = New _BBSUSER()
ASPX_BBSUSER.AspToAspX_Host_Class_Object = AspToAspX_Host_Class_Object
ASPX_BBSUSER.AspToAspX_InitIncludeFiles()
ASPX_USERNAV = New _USERNAV()
ASPX_USERNAV.AspToAspX_Host_Class_Object = AspToAspX_Host_Class_Object
ASPX_USERNAV.AspToAspX_InitIncludeFiles()
ASPX_MYHEAD = New _MYHEAD()
ASPX_MYHEAD.AspToAspX_Host_Class_Object = AspToAspX_Host_Class_Object
ASPX_MYHEAD.AspToAspX_InitIncludeFiles()
ASPX_USERCALOG = New _USERCALOG()
ASPX_USERCALOG.AspToAspX_Host_Class_Object = AspToAspX_Host_Class_Object
ASPX_USERCALOG.AspToAspX_InitIncludeFiles()
ASPX_TAIL = New _TAIL()
ASPX_TAIL.AspToAspX_Host_Class_Object = AspToAspX_Host_Class_Object
ASPX_TAIL.AspToAspX_InitIncludeFiles()
End Sub
Public Sub AspToAspX_UnloadIncludeFiles()
ASPX_CONN.AspToAspX_UnloadIncludeFiles()
ASPX_CONN = Nothing
ASPX_INC_MD5.AspToAspX_UnloadIncludeFiles()
ASPX_INC_MD5 = Nothing
ASPX_BBSUSER.AspToAspX_UnloadIncludeFiles()
ASPX_BBSUSER = Nothing
ASPX_USERNAV.AspToAspX_UnloadIncludeFiles()
ASPX_USERNAV = Nothing
ASPX_MYHEAD.AspToAspX_UnloadIncludeFiles()
ASPX_MYHEAD = Nothing
ASPX_USERCALOG.AspToAspX_UnloadIncludeFiles()
ASPX_USERCALOG = Nothing
ASPX_TAIL.AspToAspX_UnloadIncludeFiles()
ASPX_TAIL = Nothing
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
AspToAspXGlobal.Application = Application
AspToAspXGlobal.Server = Server
AspToAspXGlobal.Response = Response
AspToAspXGlobal.Request = Request
AspToAspXGlobal.Session = Session
AspToAspX_Host_Class_Object = Me
AspToAspX_InitIncludeFiles()
AspToAspX_Page_Init()
End Sub
Public Sub AspToAspX_Page_Init()
On Error GoTo _AspToAspX_Err
ASPX_CONN.AspToAspX_Page_Init ( )
ASPX_INC_MD5.AspToAspX_Page_Init ( )
ASPX_BBSUSER.AspToAspX_Page_Init ( )
userid = getcookie ( "clubuser_id" ) '5
If AspToAspX_CheckIsNothing ( Request.Form ( "newpwd1" ) ) < > EmptyString.Value Then '6
password = CheckStr ( AspToAspX_CheckIsNothing ( Request.Form ( "newpwd1" ) ) ) '7
oldpwd = CheckStr ( AspToAspX_CheckIsNothing ( Request.Form ( "oldpwd" ) ) ) '8
sql = "select top 1 clubuser_password from " & ft & "clubuser where clubuser_password='" & md5 ( oldpwd ) & "' and clubuser_id=" & userid '9
rs1 = New ADODB.Recordset ( ) '10
rs1.Open ( sql , conn , 3 , 1 ) '11
If Not rs1.EOF Then '12
AspToAspX_Str = "update " & ft & "clubuser set clubuser_password='" & md5 ( password ) & "' where clubuser_id=" & userid '13
conn.Execute ( AspToAspX_Str ) '14
msg = "(<font color=red>密码修改成功!</font>)" '15
Else '16
msg = "(<font color=red>你的旧密码不正确,修改不成功!</font>)" '17
End If '18
End If '19
sql = "select clubuser_name,clubuser_password,userimg,homepagetitle,cssfile,bokeer from " & ft & "clubuser where clubuser_id=" & userid '20
rs = New ADODB.Recordset ( ) '21
rs.Open ( sql , conn , 3 , 1 ) '22
If Not rs.EOF Then '23
username = AspToAspX_CheckDBNull(rs.Fields ( "clubuser_name" ) .Value) '24
userimg = AspToAspX_CheckDBNull(rs.Fields ( "userimg" ) .Value) '25
homepagetitle = AspToAspX_CheckDBNull(rs.Fields ( "homepagetitle" ) .Value) '26
cssfile = "blogcss/" & AspToAspX_CheckDBNull(rs.Fields ( "cssfile" ) .Value) '27
bokeer = AspToAspX_CheckDBNull(rs.Fields ( "bokeer" ) .Value) '28
If AspToAspX_CheckDBNull ( cssfile ) = "blogcss/" Then
cssfile = "blogcss/2.css"
End If
'29
If IsDBNull ( AspToAspX_CheckDBNull(rs.Fields ( "userimg" ) .Value) ) Then '30
blogheadimg = "blogimages/nophoto.gif" '31
Else '32
blogheadimg = "userheadimg/" & AspToAspX_CheckDBNull(rs.Fields ( "userimg" ) .Value) '33
End If '34
End If '35
Response.Write ( vbCrLf )
Response.Write ( "<html><head><meta http-equiv=content-type content=""text/html; charset=utf-8"">" & Chr ( 13 ) ) '37
Response.Write ( "<title>修改密码</title>" & Chr ( 13 ) ) '38
Response.Write ( "<link rel=""stylesheet"" type=""text/css"" href=""" ) '39
Response.Write ( cssfile ) '39
Response.Write ( """>" & Chr ( 13 ) ) '39
Response.Write ( "</head>" & Chr ( 13 ) ) '40
Response.Write ( "<script language=javascript src=""js/publicfun.js""></script>" & Chr ( 13 ) ) '41
Response.Write ( "<body>" & Chr ( 13 ) ) '42
Response.Write ( "<center>" & Chr ( 13 ) ) '43
ASPX_USERNAV.AspToAspX_Page_Init ( )
ASPX_MYHEAD.AspToAspX_Page_Init ( )
Response.Write ( "<div class=""stage"">" & Chr ( 13 ) ) '46
Response.Write ( "<table width=""100%"" border=""0"" cellspacing=""0"" cellpadding=""0"" id=""layout"">" & Chr ( 13 ) ) '47
Response.Write ( "<tr>" & Chr ( 13 ) ) '48
Response.Write ( "<td width=""22%"" valign=""top"" class=""c2t3"">" & Chr ( 13 ) ) '49
Response.Write ( "<div id=""mod_profile"" class=""mod"" rel=""drag"">" & Chr ( 13 ) ) '50
ASPX_USERCALOG.AspToAspX_Page_Init ( )
Response.Write ( "</div>" & Chr ( 13 ) ) '52
Response.Write ( "</td>" & Chr ( 13 ) ) '53
Response.Write ( "<td width=""78%"" valign=""top"" class=""c2t1"">" & Chr ( 13 ) ) '54
Response.Write ( "<div id=""m_blog"" class=""modbox""><br>" & Chr ( 13 ) ) '55
Response.Write ( " <br>" & Chr ( 13 ) ) '56
Response.Write ( " <br>" & Chr ( 13 ) ) '57
Response.Write ( " <br>" & Chr ( 13 ) ) '58
Response.Write ( " <table width=""80%"" border=""0"" align=""center"">" & Chr ( 13 ) ) '59
Response.Write ( " <form name=""form1"" method=""post"" action="""" onsubmit=""return chkpassword(this)"">" & Chr ( 13 ) ) '60
Response.Write ( " <tr> " & Chr ( 13 ) ) '61
Response.Write ( " <td height=""30""><div align=""center""></div></td>" & Chr ( 13 ) ) '62
Response.Write ( " <td height=""30""><strong>修改密码</strong>" ) '63
Response.Write ( msg ) '63
Response.Write ( "</td>" & Chr ( 13 ) ) '63
Response.Write ( " </tr>" & Chr ( 13 ) ) '64
Response.Write ( " <tr> " & Chr ( 13 ) ) '65
Response.Write ( " <td width=""17%"" height=""30""><div align=""right"">旧密码:</div></td>" & Chr ( 13 ) ) '66
Response.Write ( " <td width=""83%""><input name=""oldpwd"" type=""password"" id=""oldpwd"" value=""" ) '67
Response.Write ( AspToAspX_CheckDBNull(rs.Fields ( "clubuser_password" ) .Value) ) '67
Response.Write ( """></td>" & Chr ( 13 ) ) '67
Response.Write ( " </tr>" & Chr ( 13 ) ) '68
Response.Write ( " <tr> " & Chr ( 13 ) ) '69
Response.Write ( " <td height=""30""><div align=""right"">新密码:</div></td>" & Chr ( 13 ) ) '70
Response.Write ( " <td><input name=""newpwd1"" type=""password"" id=""newpwd1""></td>" & Chr ( 13 ) ) '71
Response.Write ( " </tr>" & Chr ( 13 ) ) '72
Response.Write ( " <tr> " & Chr ( 13 ) ) '73
Response.Write ( " <td height=""30""><div align=""right"">新密码确认:</div></td>" & Chr ( 13 ) ) '74
Response.Write ( " <td><input name=""newpwd2"" type=""password"" id=""newpwd2""></td>" & Chr ( 13 ) ) '75
Response.Write ( " </tr>" & Chr ( 13 ) ) '76
Response.Write ( " <tr> " & Chr ( 13 ) ) '77
Response.Write ( " <td height=""30""><div align=""right""></div></td>" & Chr ( 13 ) ) '78
Response.Write ( " <td><input type=""submit"" name=""Submit"" value=""确认修改""></td>" & Chr ( 13 ) ) '79
Response.Write ( " </tr>" & Chr ( 13 ) ) '80
Response.Write ( " </form>" & Chr ( 13 ) ) '81
Response.Write ( " </table>" & Chr ( 13 ) ) '82
Response.Write ( " <br>" & Chr ( 13 ) ) '83
Response.Write ( " <br>" & Chr ( 13 ) ) '84
Response.Write ( " <br>" & Chr ( 13 ) ) '85
Response.Write ( " <br>" & Chr ( 13 ) ) '86
Response.Write ( " <br>" & Chr ( 13 ) ) '87
Response.Write ( " <br>" & Chr ( 13 ) ) '88
Response.Write ( " <br>" & Chr ( 13 ) ) '89
Response.Write ( " <br>" & Chr ( 13 ) ) '90
Response.Write ( " <br>" & Chr ( 13 ) ) '91
Response.Write ( " </div>" & Chr ( 13 ) ) '92
Response.Write ( "</td>" & Chr ( 13 ) ) '93
Response.Write ( "</tr></table>" & Chr ( 13 ) ) '94
Response.Write ( "</div>" & Chr ( 13 ) ) '95
Response.Write ( "</div>" & Chr ( 13 ) ) '96
Response.Write ( "<br><center>" & Chr ( 13 ) ) '97
Response.Write ( " " ) '98
ASPX_TAIL.AspToAspX_Page_Init ( )
Response.Write ( " </center>" & Chr ( 13 ) ) '99
Response.Write ( "</center>" & Chr ( 13 ) ) '100
Response.Write ( "</body>" & Chr ( 13 ) ) '101
Response.Write ( "</html>" & Chr ( 13 ) ) '102
closedb ( ) '103
Response.Write ( vbCrLf )
AspToAspX_UnloadIncludeFiles()
Exit Sub
_AspToAspX_Err:
AspToAspX_WriteLog ("modpwd_aspx Page_Init:" & Err.Description)
Resume Next
End Sub
#Region "..."
Public Property conn
Get
conn = ASPX_CONN.conn
End Get
Set(ByVal value)
ASPX_CONN.conn = value
End Set
End Property
Public Property qs
Get
qs = ASPX_CONN.qs
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -