📄 sqlink.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 _SQLINK
Inherits System.Web.UI.Page
Implements IHttpHandler, AspToAspX_Interface
Public AspToAspX_Host_Class_Object As Object
Public defaulthome
Public homepage
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_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_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_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 ( )
FTBBS_HTML_MB ( ft ) '4
defaulthome = Application ( "FTBBSMB" ) ( 31 , 0 ) '5
homepage = ft_home ( defaulthome ) '6
Response.Write ( vbCrLf )
Response.Write ( "<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.01 Transitional//EN"">" & Chr ( 13 ) ) '8
Response.Write ( "<html>" & Chr ( 13 ) ) '9
Response.Write ( "<head>" & Chr ( 13 ) ) '10
Response.Write ( "<meta http-equiv=""Content-Type"" content=""text/html; charset=utf-8"">" & Chr ( 13 ) ) '11
Response.Write ( "<title>友情链接</title>" & Chr ( 13 ) ) '12
Response.Write ( "<script language=javascript src=""inc/cookies.js""></script>" & Chr ( 13 ) ) '13
Response.Write ( "<script>" & Chr ( 13 ) ) '14
Response.Write ( "//载入上次cookies记录的样式" & Chr ( 13 ) ) '15
Response.Write ( "var stylecook = getCookie(""STYLESHOW"");" & Chr ( 13 ) ) '16
Response.Write ( "var style;" & Chr ( 13 ) ) '17
Response.Write ( "var strstyle;" & Chr ( 13 ) ) '18
Response.Write ( "if(stylecook=="""")" & Chr ( 13 ) ) '19
Response.Write ( "{" & Chr ( 13 ) ) '20
Response.Write ( " stylecook=1;" & Chr ( 13 ) ) '21
Response.Write ( "}" & Chr ( 13 ) ) '22
Response.Write ( "else" & Chr ( 13 ) ) '23
Response.Write ( "{" & Chr ( 13 ) ) '24
Response.Write ( " stylecook++;" & Chr ( 13 ) ) '25
Response.Write ( "}" & Chr ( 13 ) ) '26
Response.Write ( "style=""main0""+stylecook+"".css"";" & Chr ( 13 ) ) '27
Response.Write ( "strstyle=""<link href=\""css/""+style+""\"" rel=\""stylesheet\"" type=\""text/css\""> "";" & Chr ( 13 ) ) '28
Response.Write ( "document.write(strstyle);" & Chr ( 13 ) ) '29
Response.Write ( "</script>" & Chr ( 13 ) ) '30
Response.Write ( "</head>" & Chr ( 13 ) ) '31
Response.Write ( "<script language=""javascript"">" & Chr ( 13 ) ) '32
Response.Write ( "<!--" & Chr ( 13 ) ) '33
Response.Write ( "function check(form)" & Chr ( 13 ) ) '34
Response.Write ( "" & Chr ( 9 ) & "{" & Chr ( 9 ) & "" & Chr ( 13 ) ) '35
Response.Write ( " if (form.name.value=="""")" & Chr ( 13 ) ) '36
Response.Write ( " " & Chr ( 9 ) & "{" & Chr ( 13 ) ) '37
Response.Write ( " " & Chr ( 9 ) & Chr ( 9 ) & "alert(""网站名称不能为空!"");" & Chr ( 13 ) ) '38
Response.Write ( " " & Chr ( 9 ) & Chr ( 9 ) & "form.name.focus();" & Chr ( 13 ) ) '39
Response.Write ( " " & Chr ( 9 ) & Chr ( 9 ) & "return false;" & Chr ( 13 ) ) '40
Response.Write ( " " & Chr ( 9 ) & "}" & Chr ( 13 ) ) '41
Response.Write ( " if (form.url.value=="""")" & Chr ( 13 ) ) '42
Response.Write ( " " & Chr ( 9 ) & "{" & Chr ( 13 ) ) '43
Response.Write ( " " & Chr ( 9 ) & Chr ( 9 ) & "alert(""网站地址不能为空!"");" & Chr ( 13 ) ) '44
Response.Write ( " " & Chr ( 9 ) & Chr ( 9 ) & "form.url.focus();" & Chr ( 13 ) ) '45
Response.Write ( " " & Chr ( 9 ) & Chr ( 9 ) & "return false;" & Chr ( 13 ) ) '46
Response.Write ( " " & Chr ( 9 ) & "}" & Chr ( 13 ) ) '47
Response.Write ( " return true;" & Chr ( 13 ) ) '48
Response.Write ( "" & Chr ( 9 ) & "}" & Chr ( 13 ) ) '49
Response.Write ( "//-->" & Chr ( 13 ) ) '50
Response.Write ( "</script>" & Chr ( 13 ) ) '51
Response.Write ( "<body>" & Chr ( 13 ) ) '52
If AspToAspX_CheckDBNull ( getcookie ( "ftbbstype" ) ) = 1 Then '54
Response.Write ( headhtml ) '55
End If '56
Response.Write ( vbCrLf )
Response.Write ( "<table width=""99%"" border=""0"" align=""center"" cellpadding=""1"" cellspacing=""1"" class=""maintbbg"">" & Chr ( 13 ) ) '58
Response.Write ( " <tr> " & Chr ( 13 ) ) '59
Response.Write ( " <td height=""26"" colspan=""3"" class=""f12bg""> " ) '60
Response.Write ( userinfo ) '60
Response.Write ( "</td>" & Chr ( 13 ) ) '60
Response.Write ( " </tr>" & Chr ( 13 ) ) '61
Response.Write ( " <tr> " & Chr ( 13 ) ) '62
Response.Write ( " <td height=""25"" colspan=""3"" class=""maintbtr3""> <a href=""" ) '63
Response.Write ( homepage ) '63
Response.Write ( """>论坛首页</a> >> 申请友情链</td>" & Chr ( 13 ) ) '63
Response.Write ( " </tr> " & Chr ( 13 ) ) '64
Response.Write ( " <td height=""150"" class=""maintbtr3""> " & Chr ( 13 ) ) '65
Response.Write ( " <div align=""center"">申请友情链接前,请先在贵站做上本站的文字链接(不做LOGO链接)<br>" & Chr ( 13 ) ) '66
Response.Write ( " 如果在贵站未发现本站文字链接或者贵站不符合本站要求,友情链接将不会生效<br>" & Chr ( 13 ) ) '67
Response.Write ( " <br>" & Chr ( 13 ) ) '68
Response.Write ( " <strong>本站链接代码</strong> <br>" & Chr ( 13 ) ) '69
Response.Write ( " <br>" & Chr ( 13 ) ) '70
Response.Write ( " <textarea name=""textarea"" cols=""50"" rows=""3"" id=""textarea"" onClick=""select()""><a href=""http://www.ftbbs.cn"" title=""飞天论坛"" target=""_blank"">飞天论坛</a></textarea>" & Chr ( 13 ) ) '71
Response.Write ( " </div></td>" & Chr ( 13 ) ) '72
Response.Write ( " </tr>" & Chr ( 13 ) ) '73
Response.Write ( " <tr> " & Chr ( 13 ) ) '74
Response.Write ( " <td valign=""top"" class=""maintbtr3""> <form action=""link.aspx"" method=""post"" name=""myoe"" id=""myoe"" style=""MARGIN-BOTTOM: 0px"" onsubmit=""return check(this)"">" & Chr ( 13 ) ) '75
Response.Write ( " <table width=""100%"" border=""0"" align=""center"" cellpadding=""5"" cellspacing=""0"" class=""maintbtr3"">" & Chr ( 13 ) ) '76
Response.Write ( " <tr > " & Chr ( 13 ) ) '77
Response.Write ( " <td height=""30"" colspan=""2""> " & Chr ( 13 ) ) '78
Response.Write ( " <div align=""center""><strong>申请友情链接</strong></div></td>" & Chr ( 13 ) ) '79
Response.Write ( " </tr>" & Chr ( 13 ) ) '80
Response.Write ( " <tr> " & Chr ( 13 ) ) '81
Response.Write ( " <td width=""31%""> <div align=""right"">链接类型:<font color=""#FF0000"">*</font></div></td>" & Chr ( 13 ) ) '82
Response.Write ( " <td width=""69%""> <input name=""li"" type=""radio"" value=""1"" checked>" & Chr ( 13 ) ) '83
Response.Write ( " 文字链接 " & Chr ( 13 ) ) '84
Response.Write ( " <input type=""radio"" name=""li"" value=""2"">" & Chr ( 13 ) ) '85
Response.Write ( " LOGO链接</td>" & Chr ( 13 ) ) '86
Response.Write ( " </tr>" & Chr ( 13 ) ) '87
Response.Write ( " <tr> " & Chr ( 13 ) ) '88
Response.Write ( " <td> <div align=""right"">网站名称:<font color=""#FF0000"">*</font></div></td>" & Chr ( 13 ) ) '89
Response.Write ( " <td > <input name=""name"" type=""text"" id=""name"" size=""50"" maxlength=""20""></td>" & Chr ( 13 ) ) '90
Response.Write ( " </tr>" & Chr ( 13 ) ) '91
Response.Write ( " <tr> " & Chr ( 13 ) ) '92
Response.Write ( " <td> <div align=""right"">网站地址:<font color=""#FF0000"">*</font></div></td>" & Chr ( 13 ) ) '93
Response.Write ( " <td > <input name=""url"" type=""text"" id=""url"" value=""http://"" size=""50""></td>" & Chr ( 13 ) ) '94
Response.Write ( " </tr>" & Chr ( 13 ) ) '95
Response.Write ( " <tr> " & Chr ( 13 ) ) '96
Response.Write ( " <td> <div align=""right"">LOGO地址:</div></td>" & Chr ( 13 ) ) '97
Response.Write ( " <td > <input name=""logo"" type=""text"" id=""logo"" size=""50""></td>" & Chr ( 13 ) ) '98
Response.Write ( " </tr>" & Chr ( 13 ) ) '99
Response.Write ( " <tr> " & Chr ( 13 ) ) '100
Response.Write ( " <td> <div align=""right"">QQ 号码:</div></td>" & Chr ( 13 ) ) '101
Response.Write ( " <td > <input name=""qq"" type=""text"" id=""zhu22"" size=""50"" maxlength=""11""></td>" & Chr ( 13 ) ) '102
Response.Write ( " </tr>" & Chr ( 13 ) ) '103
Response.Write ( " <tr> " & Chr ( 13 ) ) '104
Response.Write ( " <td> <div align=""right"">邮箱地址:</div></td>" & Chr ( 13 ) ) '105
Response.Write ( " <td > <input name=""mail"" type=""text"" id=""zhu32"" size=""50"" maxlength=""30""></td>" & Chr ( 13 ) ) '106
Response.Write ( " </tr>" & Chr ( 13 ) ) '107
Response.Write ( " <tr> " & Chr ( 13 ) ) '108
Response.Write ( " <td> <div align=""right"">给站长留言:</div></td>" & Chr ( 13 ) ) '109
Response.Write ( " <td > <textarea name=""zhu"" cols=""49"" rows=""7"" id=""zhu""></textarea></td>" & Chr ( 13 ) ) '110
Response.Write ( " </tr>" & Chr ( 13 ) ) '111
Response.Write ( " <tr > " & Chr ( 13 ) ) '112
Response.Write ( " <td height=""50"" colspan=""2"" align=""center""> " & Chr ( 13 ) ) '113
Response.Write ( " <input type=""submit"" name=""Submit"" value=""提交""> " & Chr ( 13 ) ) '114
Response.Write ( " <input type=""reset"" name=""Submit2"" value=""重置"">" & Chr ( 13 ) ) '115
Response.Write ( " </td>" & Chr ( 13 ) ) '116
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -