📄 pass.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 _PASS
Inherits System.Web.UI.Page
Implements IHttpHandler, AspToAspX_Interface
Public AspToAspX_Host_Class_Object As Object
Public id
Public userid
Public photo_name
Public pwd
Public sql
Public rs As ADODB.Recordset
Public linkdb
Public ft
Public ku
Public ckiesdomain
Public conndb
Public ConnectionString
Public ASPX_CONN As _CONN
#Region "..."
Public Sub AspToAspX_InitIncludeFiles()
ASPX_CONN = New _CONN()
ASPX_CONN.AspToAspX_Host_Class_Object = AspToAspX_Host_Class_Object
ASPX_CONN.AspToAspX_InitIncludeFiles()
End Sub
Public Sub AspToAspX_UnloadIncludeFiles()
ASPX_CONN.AspToAspX_UnloadIncludeFiles()
ASPX_CONN = 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 ( )
If AspToAspX_CheckDBNull ( Request ( "pwd1" ) ) < > EmptyString.Value Then '3
id = AspToAspX_Int ( Request ( "id" ) ) '4
userid = AspToAspX_Int ( Request ( "userid" ) ) '5
photo_name = Checkstr ( Request ( "photo_name" ) ) '6
pwd = replace ( trim ( AspToAspX_CheckIsNothing ( Request.Form ( "pwd1" ) ) ) , "'" , "''" ) '7
sql = "select * from " & ft & "ftblog_type where sign=2 and userid=" & userid & " and blogtype='" & photo_name & "' and alumpwd='" & pwd & "'" '8
rs = New ADODB.Recordset ( ) '9
rs.Open ( sql , conn , 3 , 1 ) '10
If Not rs.EOF Then '11
Session ( "passok" ) = Request ( "pwd1" ) '12
Session ( "userid" ) = userid '13
AspToAspX_Response_Redirect ( "disphoto.aspx?id=" & id & "&userid=" & userid & "&photo_name=" & photo_name & "&sign=2" ) '14
Else '15
Response.Write ( "<center><br><br><br><br><br>你的密码不正确,请重新输入</center>" ) '16
Response.End ( ) '17
End If '18
End If '19
Response.Write ( vbCrLf )
Response.Write ( "<HTML>" & Chr ( 13 ) ) '21
Response.Write ( "<HEAD>" & Chr ( 13 ) ) '22
Response.Write ( "<TITLE>相册密码确认</TITLE>" & Chr ( 13 ) ) '23
Response.Write ( "<meta http-equiv=""Content-Type"" content=""text/html; charset=utf-8"">" & Chr ( 13 ) ) '24
Response.Write ( "<link rel=""stylesheet"" type=""text/css"" href=""css/ftbbs01.css"">" & Chr ( 13 ) ) '25
Response.Write ( "<script language=""JavaScript"">" & Chr ( 13 ) ) '26
Response.Write ( "function OK(){" & Chr ( 13 ) ) '27
Response.Write ( " var str1="""";" & Chr ( 13 ) ) '28
Response.Write ( " var strurl=document.form1.pwd1.value;" & Chr ( 13 ) ) '29
Response.Write ( " if (strurl=="""")" & Chr ( 13 ) ) '30
Response.Write ( " {" & Chr ( 13 ) ) '31
Response.Write ( " " & Chr ( 9 ) & "alert(""请输入密码!"");" & Chr ( 13 ) ) '32
Response.Write ( "" & Chr ( 9 ) & "document.form1.pwd1.focus();" & Chr ( 13 ) ) '33
Response.Write ( "" & Chr ( 9 ) & "return false;" & Chr ( 13 ) ) '34
Response.Write ( " }" & Chr ( 13 ) ) '35
Response.Write ( " else" & Chr ( 13 ) ) '36
Response.Write ( " { " & Chr ( 13 ) ) '37
Response.Write ( " document.form1.submit()" & Chr ( 13 ) ) '38
Response.Write ( " window.close();" & Chr ( 13 ) ) '39
Response.Write ( " }" & Chr ( 13 ) ) '40
Response.Write ( "}" & Chr ( 13 ) ) '41
Response.Write ( "</script>" & Chr ( 13 ) ) '42
Response.Write ( "</head>" & Chr ( 13 ) ) '43
Response.Write ( "<BODY bgColor=menu topmargin=15 leftmargin=15 >" & Chr ( 13 ) ) '44
Response.Write ( "<form name=""form1"" method=""post"" action="""">" & Chr ( 13 ) ) '45
Response.Write ( "<table width=100% border=""0"" align=""center"" cellpadding=""0"" cellspacing=""2"">" & Chr ( 13 ) ) '46
Response.Write ( " <tr><td>" & Chr ( 13 ) ) '47
Response.Write ( "<FIELDSET align=left>" & Chr ( 13 ) ) '48
Response.Write ( " <LEGEND align=left>密码确认</LEGEND>" & Chr ( 13 ) ) '49
Response.Write ( " <table width=""100%"" border=""0"" align=center cellpadding=""0"" cellspacing=""3"">" & Chr ( 13 ) ) '50
Response.Write ( " <tr> " & Chr ( 13 ) ) '51
Response.Write ( " <td colspan=""2"">密 码: " & Chr ( 13 ) ) '52
Response.Write ( " <input name=""pwd1"" type=""password"" id=""pwd1"" value='' size=10 maxlength=""10"">" & Chr ( 13 ) ) '53
Response.Write ( " <input name=""id"" type=""hidden"" id=""id"" value=""" ) '54
Response.Write ( Request ( "id" ) ) '54
Response.Write ( """>" & Chr ( 13 ) ) '54
Response.Write ( " <input name=""userid"" type=""hidden"" id=""userid"" value=""" ) '55
Response.Write ( Request ( "userid" ) ) '55
Response.Write ( """> " & Chr ( 13 ) ) '55
Response.Write ( " <input name=""photo_name"" type=""hidden"" id=""photo_name"" value=""" ) '56
Response.Write ( Request ( "photo_name" ) ) '56
Response.Write ( """> " & Chr ( 13 ) ) '56
Response.Write ( " </td>" & Chr ( 13 ) ) '57
Response.Write ( " </tr>" & Chr ( 13 ) ) '58
Response.Write ( " </table>" & Chr ( 13 ) ) '59
Response.Write ( "</fieldset>" & Chr ( 13 ) ) '60
Response.Write ( "</td>" & Chr ( 13 ) ) '61
Response.Write ( " <td width=80 align=""center"" valign=""middle""> " & Chr ( 13 ) ) '62
Response.Write ( " <input name=""cmdOK"" type=""button"" id=""cmdOK"" value="" 确定 "" onClick=""OK();"">" & Chr ( 13 ) ) '63
Response.Write ( " </td>" & Chr ( 13 ) ) '64
Response.Write ( " </tr>" & Chr ( 13 ) ) '65
Response.Write ( "</table>" & Chr ( 13 ) ) '66
Response.Write ( "</form>" & Chr ( 13 ) ) '67
Response.Write ( "</body>" & Chr ( 13 ) ) '68
Response.Write ( "</html>" & Chr ( 13 ) ) '69
AspToAspX_UnloadIncludeFiles()
Exit Sub
_AspToAspX_Err:
AspToAspX_WriteLog ("pass_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
End Get
Set(ByVal value)
ASPX_CONN.qs = value
End Set
End Property
Public Property errc
Get
errc = ASPX_CONN.errc
End Get
Set(ByVal value)
ASPX_CONN.errc = value
End Set
End Property
Public Property iii
Get
iii = ASPX_CONN.iii
End Get
Set(ByVal value)
ASPX_CONN.iii = value
End Set
End Property
Public Property nothis
Get
nothis = ASPX_CONN.nothis
End Get
Set(ByVal value)
ASPX_CONN.nothis = value
End Set
End Property
Public Sub makeftbbstree(ByRef ft )
ASPX_CONN.makeftbbstree( ft )
End Sub
Public Sub CloseDb
ASPX_CONN.CloseDb
End Sub
Public Sub SaveToFile( ByVal strBody,ByVal File )
ASPX_CONN.ASPX_ADOSTREAM.SaveToFile( strBody, File )
End Sub
Public Function Checkstr(ByRef AspToAspX_Str )
Return ASPX_CONN.Checkstr( AspToAspX_Str )
End Function
Public Function CheckCharStr(ByRef usernamepsw,ByRef flag )
Return ASPX_CONN.CheckCharStr( usernamepsw,flag )
End Function
Public Function ftbbs_msg(ByRef msg,ByRef reurl )
Return ASPX_CONN.ftbbs_msg( msg,reurl )
End Function
Public Function login_msg(ByRef msg,ByRef reurl )
Return ASPX_CONN.login_msg( msg,reurl )
End Function
Public Function FTBBS_HTML_MB(ByRef ft )
Return ASPX_CONN.FTBBS_HTML_MB( ft )
End Function
Public Function FTBBS_BZ_NAME(ByRef BoardID_1,ByRef ft )
Return ASPX_CONN.FTBBS_BZ_NAME( BoardID_1,ft )
End Function
Public Function FTBBS_BZ_NAME2(ByRef BoardID_1,ByRef BoardID_2,ByRef ft )
Return ASPX_CONN.FTBBS_BZ_NAME2( BoardID_1,BoardID_2,ft )
End Function
Public Function makefilename(ByRef fname )
Return ASPX_CONN.makefilename( fname )
End Function
Public Function GetExtendName(ByRef FileName )
Return ASPX_CONN.GetExtendName( FileName )
End Function
Public Function IsObjInstalled(ByRef strClassString )
Return ASPX_CONN.IsObjInstalled( strClassString )
End Function
Public Function ChkMapPath( ByVal strPath )
Return ASPX_CONN.ChkMapPath( strPath )
End Function
Public Function userlogin(ByRef ft )
Return ASPX_CONN.userlogin( ft )
End Function
Public Function headhtml
Return ASPX_CONN.headhtml
End Function
Public Function GetOpInfo(ByRef AspToAspX_Str,ByRef Flag )
Return ASPX_CONN.GetOpInfo( AspToAspX_Str,Flag )
End Function
Public Function getcode
Return ASPX_CONN.getcode
End Function
Public Function codepass
Return ASPX_CONN.codepass
End Function
Public Function Ftbbs_Time
Return ASPX_CONN.Ftbbs_Time
End Function
Public Function ft_home(ByRef defaulthome )
Return ASPX_CONN.ft_home( defaulthome )
End Function
Public Function chkpost
Return ASPX_CONN.chkpost
End Function
Public Function CodeCookie(ByRef AspToAspX_Str )
Return ASPX_CONN.CodeCookie( AspToAspX_Str )
End Function
Public Function DecodeCookie(ByRef AspToAspX_Str )
Return ASPX_CONN.DecodeCookie( AspToAspX_Str )
End Function
Public Function setcookie(ByRef cookexpires,ByRef cookdomain,ByRef cookneme,ByRef cookvalue )
Return ASPX_CONN.setcookie( cookexpires,cookdomain,cookneme,cookvalue )
End Function
Public Function getcookie(ByRef ckname )
Return ASPX_CONN.getcookie( ckname )
End Function
Public Function clearcookie(ByRef cookdomain,ByRef cookneme )
Return ASPX_CONN.clearcookie( cookdomain,cookneme )
End Function
Public Function LoadFile( ByVal File )
Return ASPX_CONN.ASPX_ADOSTREAM.LoadFile( File )
End Function
#End Region
End Class
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -