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

📄 bbspoll.aspx.vb

📁 本程序修改自飞天BBS 7.0 将原来的ASP语法迁移为ASP.NET并封装成DLL ASP.NET相对ASP有更快的执行效率以及更高的并发访问量 基于ASP.NET的DLL可以运行在支持ASP
💻 VB
📖 第 1 页 / 共 3 页
字号:
' ***************************************************
' *        本程序由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 _BBSPOLL
    Inherits System.Web.UI.Page
    Implements IHttpHandler, AspToAspX_Interface

    Public AspToAspX_Host_Class_Object As Object

Public url
Public upfiletype
Public upfilesize
Public getcodeoff
Public htm_ext
Public pollvalue
Public cookiesname
Public clubuser_id
Public topqs
Public homepage
Public BoardID_1
Public BoardID_2
Public BBS_Cate_QS1
Public BBS_Cate_QS2
Public postqs
Public page
Public vfname
Public Random
Public filename
Public BBS_Back_Url
Public strsql
Public rsr_BBS_Cate
Public j
Public AspToAspX_Str
Public rs_BBS_Cate
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 defaulthome
    Public ASPX_CONN As _CONN
    Public ASPX_BBSUSER As _BBSUSER
    Public ASPX_FTBBS_NAV As _FTBBS_NAV
    Public ASPX_TOUXIANFUN As _TOUXIANFUN
    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_BBSUSER = New _BBSUSER()
        ASPX_BBSUSER.AspToAspX_Host_Class_Object = AspToAspX_Host_Class_Object
        ASPX_BBSUSER.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_TOUXIANFUN = New _TOUXIANFUN()
        ASPX_TOUXIANFUN.AspToAspX_Host_Class_Object = AspToAspX_Host_Class_Object
        ASPX_TOUXIANFUN.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_BBSUSER.AspToAspX_UnloadIncludeFiles()
        ASPX_BBSUSER = Nothing
        ASPX_FTBBS_NAV.AspToAspX_UnloadIncludeFiles()
        ASPX_FTBBS_NAV = Nothing
        ASPX_TOUXIANFUN.AspToAspX_UnloadIncludeFiles()
        ASPX_TOUXIANFUN = 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_BBSUSER.AspToAspX_Page_Init ( )
    ASPX_FTBBS_NAV.AspToAspX_Page_Init ( )
    ASPX_TOUXIANFUN.AspToAspX_Page_Init ( )
    Response.Write ( "<script language=javascript src=""js/resetcode.js""></script>" & Chr ( 13 ) ) '5
    Response.Write ( "<script language=javascript src=""inc/cookies.js""></script>" & Chr ( 13 ) ) '6
    Response.Write ( "<script>" & Chr ( 13 ) ) '7
    Response.Write ( "var stylecook = getCookie(""STYLESHOW"");" & Chr ( 13 ) ) '8
    Response.Write ( "var style;" & Chr ( 13 ) ) '9
    Response.Write ( "var strstyle;" & Chr ( 13 ) ) '10
    Response.Write ( "if(stylecook=="""")" & Chr ( 13 ) ) '11
    Response.Write ( "{" & Chr ( 13 ) ) '12
    Response.Write ( " stylecook=1;" & Chr ( 13 ) ) '13
    Response.Write ( "}" & Chr ( 13 ) ) '14
    Response.Write ( "else" & Chr ( 13 ) ) '15
    Response.Write ( "{" & Chr ( 13 ) ) '16
    Response.Write ( " stylecook++;" & Chr ( 13 ) ) '17
    Response.Write ( "}" & Chr ( 13 ) ) '18
    Response.Write ( "style=""main0""+stylecook+"".css"";" & Chr ( 13 ) ) '19
    Response.Write ( "strstyle=""<link href=\""css/""+style+""\""  rel=\""stylesheet\"" type=\""text/css\""> "";" & Chr ( 13 ) ) '20
    Response.Write ( "document.write(strstyle);" & Chr ( 13 ) ) '21
    Response.Write ( "</script>" & Chr ( 13 ) ) '22
    FTBBS_HTML_MB ( ft ) '24
    url = Application ( "FTBBSMB" ) ( 10 , 0 ) '25
    upfiletype = Application ( "FTBBSMB" ) ( 12 , 0 ) '26
    upfilesize = Application ( "FTBBSMB" ) ( 13 , 0 ) '27
    getcodeoff = Application ( "FTBBSMB" ) ( 30 , 0 ) '28
    htm_ext = Application ( "FTBBSMB" ) ( 32 , 0 ) '29
    pollvalue = Application ( "FTBBSMB" ) ( 55 , 0 ) '30
    cookiesname = getcookie ( "name" ) '31
    clubuser_id = getcookie ( "clubuser_id" ) '32
    If AspToAspX_CheckDBNull ( pollvalue ) = 0 Then '33
        topqs = 1 '34
    Else '35
        topqs = jingyuantoqs ( clubuser_id , pollvalue , ft ) '36
    End If '37
    If AspToAspX_CheckDBNull ( htm_ext ) = EmptyString.Value Then
htm_ext = ".htm"
End If
    '38
        homepage = ft_home ( defaulthome ) '39
        BoardID_1 = Request ( "layer_1" ) '40
        BoardID_2 = Request ( "layer_2" ) '41
        If AspToAspX_CheckDBNull ( BoardID_1 ) < > EmptyString.Value Then '42
            FTBBS_BZ_NAME ( BoardID_1 , ft ) '43
            BBS_Cate_QS1 = Application ( "BBS_Cate_QS1" ) '44
        End If '45
        If AspToAspX_CheckDBNull ( BoardID_2 ) < > EmptyString.Value Then '46
            FTBBS_BZ_NAME2 ( BoardID_1 , BoardID_2 , ft ) '47
            BBS_Cate_QS2 = Application ( "BBS_Cate_QS2" ) '48
        End If '49
        If ( AspToAspX_CheckDBNull ( getcookie ( "bz" ) ) < > 1 And AspToAspX_CheckDBNull ( getcookie ( "bbsadmin" ) ) < > 1 ) And ( AspToAspX_CheckDBNull ( BBS_Cate_QS1 ) = 4 Or AspToAspX_CheckDBNull ( BBS_Cate_QS1 ) = 5 Or AspToAspX_CheckDBNull ( BBS_Cate_QS2 ) = 4 Or AspToAspX_CheckDBNull ( BBS_Cate_QS2 ) = 5 ) Or AspToAspX_CheckDBNull ( topqs ) = 0 Then '50
        postqs = "disabled" '51
    End If '52
    page = Request ( "page" ) '53
    Session ( "filename" ) = "" '54
    vfname = makefilename ( DateAndTime.Now ) '55
    Randomize ( ) '56
    Random = AspToAspX_Int ( ( 1000 - 100 + 1 ) * AspToAspX_Rnd + 100 ) '57
    filename = vfname & "a" & Random & htm_ext '58
    Session ( "filename" ) = filename '59
    BBS_Back_Url = "main.aspx?Page=" & page & "&BoardID_1=" & BoardID_1 & "&BoardID_2=" & BoardID_2 '60
    Response.Write ( vbCrLf )
    Response.Write ( "<body leftmargin=""0"" topmargin=""2"">" & Chr ( 13 ) ) '62
    If AspToAspX_CheckDBNull ( getcookie ( "ftbbstype" ) ) = 1 Then '64
        Response.Write ( headhtml ) '65
    End If '66
    Response.Write ( vbCrLf )
    Response.Write ( "<table border=""0"" width=""99%"" align=""center"" cellpadding=""2"" cellspacing=""1"" class=""maintbbg"">" & Chr ( 13 ) ) '68
    Response.Write ( "  <tr> " & Chr ( 13 ) ) '69
    Response.Write ( "    <td height=""25"" colspan=""3"" class=""f12bg"">&nbsp;" ) '70
    Response.Write ( userinfo ) '70
    Response.Write ( "</td>" & Chr ( 13 ) ) '70
    Response.Write ( "  </tr>" & Chr ( 13 ) ) '71
    Response.Write ( "  <tr> " & Chr ( 13 ) ) '72
    Response.Write ( "    <td height=""25"" colspan=""3"" class=""maintbtr3"">&nbsp;<a href=""" ) '73
    Response.Write ( homepage ) '73
    Response.Write ( """>论坛首页</a> " & Chr ( 13 ) ) '73
    Response.Write ( "      >> 发布话题</td>" & Chr ( 13 ) ) '74
    Response.Write ( "  </tr>" & Chr ( 13 ) ) '75
    Response.Write ( "</table>" & Chr ( 13 ) ) '76
    Response.Write ( "<table width=""99%"" border=""0"" align=""center"" cellpadding=""0"" cellspacing=""1"">" & Chr ( 13 ) ) '77
    Response.Write ( "  <tr> " & Chr ( 13 ) ) '78
    Response.Write ( "    <td height=5><spacer height=""5"" type=""block""></td>" & Chr ( 13 ) ) '79
    Response.Write ( "  </tr>" & Chr ( 13 ) ) '80
    Response.Write ( "</table>" & Chr ( 13 ) ) '81
    Response.Write ( "  <table width=""99%"" border=""0"" cellspacing=""1"" cellpadding=""1"" align=""center"" class=""listborder"">" & Chr ( 13 ) ) '82
    Response.Write ( "<form name=""myform"" method=""POST"" action=""bbspollact.aspx"" onsubmit=""return CheckPollForm(this);"" style=""MARGIN-BOTTOM: 0px"">" & Chr ( 13 ) ) '83
    Response.Write ( "    <TR class=""f12bg""> " & Chr ( 13 ) ) '84
    Response.Write ( "      <TD height=""26"" colspan=""2""> " & Chr ( 13 ) ) '85
    Response.Write ( "        <div align=""center""><b>论 坛 话 题 发 布</b></div></TD>" & Chr ( 13 ) ) '86
    Response.Write ( "    </TR>" & Chr ( 13 ) ) '87
    Response.Write ( "" & Chr ( 9 ) & "" ) '88
    If AspToAspX_CheckDBNull ( BoardID_1 ) = EmptyString.Value Or AspToAspX_CheckDBNull ( BoardID_2 ) = EmptyString.Value Then '88
    Response.Write ( vbCrLf )

⌨️ 快捷键说明

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