📄 main.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 _MAIN
Inherits System.Web.UI.Page
Implements IHttpHandler, AspToAspX_Interface
Public AspToAspX_Host_Class_Object As Object
Public k
Public rssql,getstring
Public wzcount,wzrep,wzpage,wzpagecount,wzpagerep,boardstr
Public i,bgcolor
Public z
Public layer_1
Public layer_2
Public ftbbs_name
Public ftbbs_bz
Public ftbbs_bbsadmin
Public ftbbs_payuser
Public getcodeoff
Public onlineoff
Public linkoff
Public defaulthome
Public homepage
Public usernum
Public BBS_Cate_Manager_Name
Public str_BBS_Cate
Public rs_BBS_Cate
Public BBS_Cate_Name_1
Public BBS_Cate_Manager_Email
Public BBS_Cate_Topic
Public BBS_Cate_Reply
Public BBS_Cate_Board
Public BBS_Cate_Name_2
Public strqssql
Public strqs
Public qssqlstr1
Public qssql
Public qsrs
Public qsnum
Public qsbbsx1
Public qsbbs1
Public qsarray1
Public qssqlstrx
Public jh
Public tj
Public flag
Public jhtj
Public jhortj
Public order_key
Public searchcontent
Public searchkind
Public jhpage
Public tjpage
Public root
Public pagestr
Public search_str
Public strsql
Public cus
Public stats
Public mainurl
Public jhcss
Public tjcss
Public flagcss
Public fdcss
Public xscss
Public allcss
Public indbdate
Public year1
Public month1
Public day1
Public hour1
Public minute1
Public titlecolor
Public bbstitle
Public title
Public reinfo
Public rearr
Public arrnum
Public replydate
Public replyuser
Public pagefilename
Public htm_ext
Public pagenum
Public page
Public pagehtm
Public linkdb
Public ft
Public ku
Public ckiesdomain
Public conndb
Public ConnectionString
Public userinfo
Public userinfox
Public sql
Public rs As ADODB.Recordset
Public num
Public smsnum
Public ASPX_CONN As _CONN
Public ASPX_FTBBS_NAV As _FTBBS_NAV
Public ASPX_INC_UBBCODE As _INC_UBBCODE
Public ASPX_PAGEFUN As _PAGEFUN
Public ASPX_INC_BBSTAIL_HTM As _INC_BBSTAIL_HTM
#Region "..."
Public Sub AspToAspX_InitIncludeFiles()
ASPX_CONN = New _CONN()
ASPX_CONN.AspToAspX_Host_Class_Object = AspToAspX_Host_Class_Object
ASPX_CONN.AspToAspX_InitIncludeFiles()
ASPX_FTBBS_NAV = New _FTBBS_NAV()
ASPX_FTBBS_NAV.AspToAspX_Host_Class_Object = AspToAspX_Host_Class_Object
ASPX_FTBBS_NAV.AspToAspX_InitIncludeFiles()
ASPX_INC_UBBCODE = New _INC_UBBCODE()
ASPX_INC_UBBCODE.AspToAspX_Host_Class_Object = AspToAspX_Host_Class_Object
ASPX_INC_UBBCODE.AspToAspX_InitIncludeFiles()
ASPX_PAGEFUN = New _PAGEFUN()
ASPX_PAGEFUN.AspToAspX_Host_Class_Object = AspToAspX_Host_Class_Object
ASPX_PAGEFUN.AspToAspX_InitIncludeFiles()
ASPX_INC_BBSTAIL_HTM = New _INC_BBSTAIL_HTM()
ASPX_INC_BBSTAIL_HTM.AspToAspX_Host_Class_Object = AspToAspX_Host_Class_Object
ASPX_INC_BBSTAIL_HTM.AspToAspX_InitIncludeFiles()
End Sub
Public Sub AspToAspX_UnloadIncludeFiles()
ASPX_CONN.AspToAspX_UnloadIncludeFiles()
ASPX_CONN = Nothing
ASPX_FTBBS_NAV.AspToAspX_UnloadIncludeFiles()
ASPX_FTBBS_NAV = Nothing
ASPX_INC_UBBCODE.AspToAspX_UnloadIncludeFiles()
ASPX_INC_UBBCODE = Nothing
ASPX_PAGEFUN.AspToAspX_UnloadIncludeFiles()
ASPX_PAGEFUN = Nothing
ASPX_INC_BBSTAIL_HTM.AspToAspX_UnloadIncludeFiles()
ASPX_INC_BBSTAIL_HTM = 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_FTBBS_NAV.AspToAspX_Page_Init ( )
ASPX_INC_UBBCODE.AspToAspX_Page_Init ( )
ASPX_PAGEFUN.AspToAspX_Page_Init ( )
If AspToAspX_CheckDBNull ( Request ( "exit" ) ) = "yes" Then '6
clearcookie ( ckiesdomain , "bbsuser" ) '7
clearcookie ( ckiesdomain , "name" ) '8
clearcookie ( ckiesdomain , "bz" ) '9
clearcookie ( ckiesdomain , "bbsadmin" ) '10
clearcookie ( ckiesdomain , "payuser" ) '11
clearcookie ( ckiesdomain , "clubuser_password" ) '12
clearcookie ( ckiesdomain , "clubuser_id" ) '13
clearcookie ( ckiesdomain , "bokeer" ) '14
AspToAspX_Response_Redirect ( "default.aspx" ) '16
End If '17
layer_1 = Request ( "layer_1" ) '18
layer_2 = Request ( "layer_2" ) '19
ftbbs_name = getcookie ( "name" ) '20
ftbbs_bz = getcookie ( "bz" ) '21
ftbbs_bbsadmin = getcookie ( "bbsadmin" ) '22
ftbbs_payuser = getcookie ( "payuser" ) '23
If AspToAspX_CheckDBNull ( ftbbs_bz ) = EmptyString.Value Then
ftbbs_bz = 0
End If
'24
FTBBS_HTML_MB ( ft ) '25
getcodeoff = Application ( "FTBBSMB" ) ( 30 , 0 ) '26
onlineoff = Application ( "FTBBSMB" ) ( 33 , 0 ) '27
linkoff = Application ( "FTBBSMB" ) ( 34 , 0 ) '28
defaulthome = Application ( "FTBBSMB" ) ( 31 , 0 ) '29
If AspToAspX_CheckDBNull ( getcookie ( "ftbbstype" ) ) = EmptyString.Value Then '30
Response.Cookies ( "ftbbstype" ).Value = 0 '31
Response.Cookies ( "ftbbstype" ).Expires = ToDay ( ).AddDays ( 7 ) '32
End If '33
homepage = ft_home ( defaulthome ) '34
If AspToAspX_CheckDBNull ( Application ( "onlineuser" ) ) < 0 Or AspToAspX_CheckDBNull ( Application ( "onlineuser" ) ) = EmptyString.Value Then '35
usernum = 0 '36
Else '37
usernum = Application ( "onlineuser" ) '38
End If '39
If AspToAspX_CheckDBNull ( layer_1 ) = EmptyString.Value Then '40
BBS_Cate_Manager_Name = "" '41
End If '42
If AspToAspX_CheckDBNull ( layer_1 ) < > EmptyString.Value Then '43
str_BBS_Cate = "select top 1 BBS_Cate_Name,BBS_Cate_Manager_Name,BBS_Cate_Manager_Email,BBS_Cate_Topic,BBS_Cate_Reply from " & ft & "BBS_Cate where BBS_Cate_ID='" & layer_1 & "' and deleted=0" '45
rs_BBS_Cate = New ADODB.Recordset ( ) '46
rs_BBS_Cate.Open ( str_BBS_Cate , conn , 1 , 1 ) '47
If rs_BBS_Cate.EOF Then '48
Response.Write ( "<center><P><P><P>该论坛已经关闭或不存在...</center>" ) '49
Response.End ( ) '50
End If '51
BBS_Cate_Name_1 = AspToAspX_CheckDBNull(rs_BBS_Cate.Fields ( "BBS_Cate_Name" ) .Value) '52
BBS_Cate_Manager_Name = "版主:" & AspToAspX_CheckDBNull(rs_BBS_Cate.Fields ( "BBS_Cate_Manager_Name" ) .Value) '53
BBS_Cate_Manager_Email = AspToAspX_CheckDBNull(rs_BBS_Cate.Fields ( "BBS_Cate_Manager_Email" ) .Value) '54
BBS_Cate_Topic = AspToAspX_CheckDBNull(rs_BBS_Cate.Fields ( "BBS_Cate_Topic" ) .Value) '55
BBS_Cate_Reply = AspToAspX_CheckDBNull(rs_BBS_Cate.Fields ( "BBS_Cate_Reply" ) .Value) '56
rs_BBS_Cate.Close ( ) '57
End If '58
If AspToAspX_CheckDBNull ( layer_2 ) < > EmptyString.Value Then '59
str_BBS_Cate = "select top 1 BBS_Cate_Name,BBS_Cate_Manager_Name,BBS_Cate_Manager_Email,BBS_Cate_Topic,BBS_Cate_Reply,BBS_Cate_Board from " & ft & "BBS_Cate where BBS_Cate_ID='" & layer_2 & "' and deleted=0" '60
rs_BBS_Cate.Open ( str_BBS_Cate , conn , 1 , 1 ) '61
If rs_BBS_Cate.EOF Then '62
Response.Write ( "<center><P><P><P>该论坛已经关闭或不存在...</center>" ) '63
Response.End ( ) '64
End If '65
BBS_Cate_Board = AspToAspX_CheckDBNull(rs_BBS_Cate.Fields ( "BBS_Cate_Board" ) .Value) '66
BBS_Cate_Name_2 = AspToAspX_CheckDBNull(rs_BBS_Cate.Fields ( "BBS_Cate_Name" ) .Value) '67
BBS_Cate_Manager_Name = "版主:" & AspToAspX_CheckDBNull(rs_BBS_Cate.Fields ( "BBS_Cate_Manager_Name" ) .Value) '68
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -