亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? vbcgi.bas

?? 編寫VB CGI程序所必須的模塊。
?? BAS
?? 第 1 頁 / 共 3 頁
字號(hào):
        n = n + 1                           ' Bump array index
    Loop
    CGI_NumExtraHeaders = n                 ' Fill in global count

End Sub

'---------------------------------------------------------------------------
'
'   GetArgs() - Parse the command line
'
' Chop up the command line, fill in the argument vector, return the
' argument count (similar to the Unix/C argc/argv handling)
'---------------------------------------------------------------------------
Private Function GetArgs(argv() As String) As Integer
    Dim buf As String
    Dim i As Integer, j As Integer, l As Integer, n As Integer

    buf = Trim$(Command$)                   ' Get command line

    l = Len(buf)                            ' Length of command line
    If l = 0 Then                           ' If empty
        GetArgs = 0                         ' Return argc = 0
        Exit Function
    End If

    i = 1                                   ' Start at 1st character
    n = 0                                   ' Index in argvec
    Do While ((i < l) And (n < MAX_CMDARGS)) ' Safety stop here
        j = InStr(i, buf, " ")              ' J -> next space
        If j = 0 Then Exit Do               ' Exit loop on last arg
        argv(n) = Trim$(Mid$(buf, i, j - i)) ' Get this token, trim it
        i = j + 1                           ' Skip that blank
        Do While Mid$(buf, i, 1) = " "      ' Skip any additional whitespace
            i = i + 1
        Loop
        n = n + 1                           ' Bump array index
    Loop

    argv(n) = Trim$(Mid$(buf, i, (l - i + 1))) ' Get last arg
    GetArgs = n + 1                         ' Return arg count

End Function

'---------------------------------------------------------------------------
'
'   GetAcceptTypes() - Create the array of accept type structs
'
' Enumerate the keys in the [Accept] section of the profile file,
' then get the value for each of the keys.
'---------------------------------------------------------------------------
Private Sub GetAcceptTypes()
    Dim sList As String
    Dim i As Integer, j As Integer, l As Integer, n As Integer

    sList = GetProfile("Accept", "") ' Get key list
    l = Len(sList)                          ' Length incl. trailing null
    i = 1                                   ' Start at 1st character
    n = 0                                   ' Index in array
    Do While ((i < l) And (n < MAX_ACCTYPE)) ' Safety stop here
        j = InStr(i, sList, Chr$(0))        ' J -> next null
        CGI_AcceptTypes(n).key = Mid$(sList, i, j - i) ' Get Key, then value
        CGI_AcceptTypes(n).value = GetProfile("Accept", CGI_AcceptTypes(n).key)
        i = j + 1                           ' Bump pointer
        n = n + 1                           ' Bump array index
    Loop
    CGI_NumAcceptTypes = n                  ' Fill in global count

End Sub

'---------------------------------------------------------------------------
'
'   FindExtraHeader() - Get the text from an "extra" header
'
' Given the extra header's name, return the stuff after the ":"
' or an empty string if not there.
'---------------------------------------------------------------------------
Public Function FindExtraHeader(key As String) As String
    Dim i As Integer

    For i = 0 To (CGI_NumExtraHeaders - 1)
        If CGI_ExtraHeaders(i).key = key Then
            FindExtraHeader = Trim$(CGI_ExtraHeaders(i).value)
            Exit Function           ' ** DONE **
        End If
    Next i
    '
    ' Not present, return empty string
    '
    FindExtraHeader = ""

End Function


'----------------------------------------------------------------------
'
' ParseFileValue() - Parse [Form File] value strings -> file tuples
'
'----------------------------------------------------------------------
Private Sub ParseFileValue(buf As String, ByRef t As FileTuple)
    Dim i, j, k, l As Integer
    
    l = Len(buf)
    
    i = InStr(buf, " ")                     ' First delimiter
    t.file = Mid$(buf, 1, (i - 1))          ' [file]
    t.file = Mid$(t.file, 2, Len(t.file) - 2)  ' file
    
    j = InStr((i + 1), buf, " ")            ' Next delimiter
    t.length = CLng(Mid$(buf, (i + 1), (j - i - 1)))
    i = j
    
    j = InStr((i + 1), buf, " ")            ' Next delimiter
    t.type = Mid$(buf, (i + 1), (j - i - 1))
    i = j
    
    j = InStr((i + 1), buf, " ")            ' Next delimiter
    t.encoding = Mid$(buf, (i + 1), (j - i - 1))
    i = j
    
    t.name = Mid$(buf, (i + 1), (l - i - 1)) ' [name]
    t.name = Mid$(t.name, 2, Len(t.name) - 1) ' name

End Sub

'----------------------------------------------------------------------
'
' x2c() - Convert hex-escaped character to ASCII
'
'----------------------------------------------------------------------
Private Function x2c(s As String) As String
    Dim t As String
    
    t = "&H" & s
    x2c = Chr$(CInt(t))

End Function

'----------------------------------------------------------------------
'
' Unescape() - Convert HTTP-escaped string to normal form
'
'----------------------------------------------------------------------
Public Function Unescape(s As String)
    Dim i As Integer, l As Integer
    Dim c As String
    
    If InStr(s, "%") = 0 Then               ' Catch simple case
        Unescape = s
        Exit Function
    End If
    
    l = Len(s)
    Unescape = ""
    For i = 1 To l
        c = Mid$(s, i, 1)                   ' Next character
        If c = "%" Then
            If Mid$(s, i + 1, 1) = "%" Then
                c = "%"
                i = i + 1                   ' Loop increments too
            Else
                c = x2c(Mid$(s, i + 1, 2))
                i = i + 2                   ' Loop increments too
            End If
        End If
        Unescape = Unescape & c
    Next i

End Function

'----------------------------------------------------------------------
'
' PlusToSpace() - Remove plus-delimiters from HTTP-encoded string
'
'----------------------------------------------------------------------
Public Sub PlusToSpace(s As String)
    Dim i As Integer
    
    i = 1
    Do While True
        i = InStr(i, s, "+")
        If i = 0 Then Exit Do
        Mid$(s, i) = " "
    Loop

End Sub

'----------------------------------------------------------------------
'
' Return True/False depending on whether a form field is present.
' Typically used to detect if a checkbox in a form is checked or
' not. Unchecked checkboxes are omitted from the form content.
'
'----------------------------------------------------------------------
Function FieldPresent(key As String) As Integer
    Dim i As Integer

    FieldPresent = False            ' Assume failure

    For i = 0 To (CGI_NumFormTuples - 1)
        If CGI_FormTuples(i).key = key Then
            FieldPresent = True     ' Found it
            Exit Function           ' ** DONE **
        End If
    Next i
                                    ' Exit with FieldPresent still False
End Function

'---------------------------------------------------------------------------
'
'   WebDate - Return an HTTP/1.0 compliant date/time string
'
' Inputs:   t = Local time as VB Variant (e.g., returned by Now())
' Returns:  Properly formatted HTTP/1.0 date/time in GMT
'---------------------------------------------------------------------------
Function WebDate(dt As Variant) As String
    Dim t As Variant
    
    t = CVDate(dt - CGI_GMTOffset)      ' Convert time to GMT
    WebDate = Format$(t, "ddd dd mmm yyyy hh:mm:ss") & " GMT"

End Function

'---------------------------------------------------------------------------
'
'   SendNoOp() - Tell browser to do nothing.
'
' Most browsers will do nothing. Netscape 1.0N leaves hourglass
' cursor until the mouse is waved around. Enhanced Mosaic 2.0
' oputs up an alert saying "URL leads nowhere". Your results may
' vary...
'
'---------------------------------------------------------------------------
Sub SendNoOp()

    Send ("HTTP/1.0 204 No Response")
    Send ("Server: " + CGI_ServerSoftware)
    Send ("")

End Sub

'----------------------------------------------------------------------
'
'  Send() - Shortcut for writing to output file
'
'----------------------------------------------------------------------
Sub Send(s As String)
    Print #CGI_OutputFN, s
End Sub

'----------------------------------------------------------------------
'
'   main() - CGI script back-end main procedure
'
' This is the main() for the VB back end. Note carefully how the error
' handling is set up, and how program cleanup is done. If no command
' line args are present, call Inter_Main() and exit.
'----------------------------------------------------------------------
Sub Main()
    On Error GoTo ErrorHandler

    If Trim$(Command$) = "" Then    ' Interactive start
        Inter_Main                  ' Call interactive main
        Exit Sub                    ' Exit the program
    End If

    InitializeCGI       ' Create the CGI environment

    '===========
    CGI_Main            ' Execute the actual "script"
    '===========

Cleanup:
    Close #CGI_OutputFN
    Exit Sub                        ' End the program
'------------
ErrorHandler:
    Select Case Err                 ' Decode our "user defined" errors
        Case ERR_NO_FIELD:
            ErrorString = "Unknown form field"
        Case Else:
            ErrorString = Error$    ' Must be VB error
    End Select

    ErrorString = ErrorString & " (error #" & Err & ")"
    On Error GoTo 0                 ' Prevent recursion
    ErrorHandler (Err)              ' Generate HTTP error result
    Resume Cleanup
'------------
End Sub

'---------------------------------------------------------------------------
'
'   ErrorHandler() - Global error handler
'
' If a VB runtime error occurs dusing execution of the program, this
' procedure generates an HTTP/1.0 HTML-formatted error message into
' the output file, then exits the program.
'
' This should be armed immediately on entry to the program's main()
' procedure. Any errors that occur in the program are caught, and
' an HTTP/1.0 error messsage is generated into the output file. The
' presence of the HTTP/1.0 on the first line of the output file causes
' NCSA httpd for WIndows to send the output file to the client with no
' interpretation or other header parsing.
'---------------------------------------------------------------------------
Sub ErrorHandler(code As Integer)

    On Error Resume Next     ' Give it a good try!

    Seek #CGI_OutputFN, 1    ' Rewind output file just in case
    Send ("HTTP/1.0 500 Internal Error")
    Send ("Server: " + CGI_ServerSoftware)
    Send ("Date: " + WebDate(Now))
    Send ("Content-type: text/html")
    Send ("")
    Send ("<HTML><HEAD>")
    Send ("<TITLE>Error in " + CGI_ExecutablePath + "</TITLE>")
    Send ("</HEAD><BODY>")
    Send ("<H1>Error in " + CGI_ExecutablePath + "</H1>")
    Send ("An internal Visual Basic error has occurred in " + CGI_ExecutablePath + ".")
    Send ("<PRE>" + ErrorString + "</PRE>")
    Send ("<I>Please</I> note what you were doing when this problem occurred,")
    Send ("so we can identify and correct it. Write down the Web page you were using,")
    Send ("any data you may have entered into a form or search box, and")
    Send ("anything else that may help us duplicate the problem. Then contact the")
    Send ("administrator of this service: ")

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美视频一区二区三区在线观看| 国产一区二区三区四区五区美女 | 在线观看av一区| 欧美日韩色一区| 久久免费精品国产久精品久久久久| 中文字幕av一区二区三区免费看 | 欧美日韩激情一区二区| 精品国产乱码久久久久久闺蜜| 国产精品你懂的在线欣赏| 亚洲国产一区二区三区青草影视| 久久99国内精品| 色婷婷综合五月| 精品久久久久久久久久久久久久久| 国产精品黄色在线观看| 偷拍亚洲欧洲综合| 成人福利电影精品一区二区在线观看| 色婷婷av一区二区三区软件 | 国产精品99久久久久久久vr | 亚洲电影在线免费观看| 老汉av免费一区二区三区| 91亚洲国产成人精品一区二三 | 国产在线播放一区三区四| 色综合久久中文综合久久97| 日韩欧美在线影院| 玉足女爽爽91| 国产精品一区一区| 91精品国产品国语在线不卡| 国产精品久久久一本精品 | 久久日一线二线三线suv| 一级做a爱片久久| 国产宾馆实践打屁股91| 欧美精三区欧美精三区| 中文字幕一区免费在线观看| 另类欧美日韩国产在线| 在线看日韩精品电影| 欧美激情一区三区| 久久99国内精品| 7777精品久久久大香线蕉| 亚洲色图一区二区三区| 国产成人av电影在线播放| 日韩三级.com| 天涯成人国产亚洲精品一区av| 成人蜜臀av电影| 久久久亚洲高清| 久久超级碰视频| 制服视频三区第一页精品| 樱桃视频在线观看一区| 成人性生交大片免费| 2欧美一区二区三区在线观看视频| 亚洲第一福利一区| 在线亚洲精品福利网址导航| 国产精品午夜在线观看| 国产一区二区精品久久99| 欧美精品亚洲一区二区在线播放| 亚洲精品国产a| 97久久精品人人澡人人爽| 国产欧美一区二区精品秋霞影院 | 国产亚洲综合色| 久久99久久99| 精品欧美一区二区在线观看| 免费观看一级特黄欧美大片| 欧美三级日韩三级| 亚洲一区二区欧美| 欧美色精品在线视频| 一区二区三区免费看视频| 91色porny在线视频| 亚洲欧美一区二区三区孕妇| www.性欧美| 亚洲欧美日韩久久| 色噜噜夜夜夜综合网| 一区二区三区四区五区视频在线观看| 99综合影院在线| 亚洲免费观看高清在线观看| 91一区二区在线观看| 亚洲精品久久久蜜桃| 欧美亚洲国产一区二区三区va| 亚洲一区二区在线免费观看视频| 欧美在线观看视频在线| 亚洲chinese男男1069| 欧美日韩1234| 日韩avvvv在线播放| 日韩视频免费观看高清完整版在线观看| 日本欧美一区二区| 日韩免费一区二区| 国产麻豆视频一区二区| 亚洲国产精华液网站w| 91香蕉视频污在线| 夜夜揉揉日日人人青青一国产精品| 欧美三级在线视频| 免费日韩伦理电影| 国产片一区二区| www.视频一区| 亚洲成人先锋电影| 精品国产免费人成电影在线观看四季| 国产乱码一区二区三区| 国产精品久久久久一区二区三区共 | 欧美男同性恋视频网站| 日本亚洲免费观看| 国产日韩欧美a| 日本精品一区二区三区高清| 日韩影院免费视频| 久久综合久久鬼色中文字| 高清beeg欧美| 亚洲国产精品一区二区www在线| 91麻豆精品国产91久久久久久久久| 国产在线观看免费一区| 成人免费视频在线观看| 欧美三级资源在线| 国产一区二区三区四区五区入口| 亚洲人快播电影网| 日韩免费视频线观看| voyeur盗摄精品| 日韩二区在线观看| 国产欧美精品一区二区色综合朱莉| 色狠狠av一区二区三区| 久久精品国产一区二区三 | 色狠狠色狠狠综合| 精品一区二区三区在线播放 | 欧美主播一区二区三区美女| 日本视频在线一区| 成人免费视频在线观看| 日韩欧美在线123| av在线不卡免费看| 蜜臀99久久精品久久久久久软件| 国产精品午夜在线| 在线成人av影院| 91在线精品秘密一区二区| 日韩av电影天堂| 亚洲色图第一区| 久久综合九色综合久久久精品综合| 91麻豆文化传媒在线观看| 久久精品噜噜噜成人av农村| 自拍偷自拍亚洲精品播放| 精品国产一区久久| 欧美在线观看视频一区二区三区| 国产成人综合自拍| 免费看日韩a级影片| 亚洲欧美另类小说| 国产欧美精品日韩区二区麻豆天美| 欧美日本在线一区| 91免费版在线| 东方欧美亚洲色图在线| 免费欧美在线视频| 亚洲国产综合在线| 国产精品乱人伦一区二区| 日韩视频一区二区三区在线播放| 色婷婷av一区二区三区软件| 国产91精品免费| 精品亚洲成a人在线观看| 亚洲成av人片在线观看| 17c精品麻豆一区二区免费| 欧美不卡激情三级在线观看| 在线看国产一区| 99久久精品免费观看| 国产一区二区网址| 九九国产精品视频| 日日夜夜免费精品| 亚洲福利视频一区| 一区二区三区在线高清| 国产精品第五页| 国产精品少妇自拍| 国产亚洲欧美在线| 久久一二三国产| 久久人人97超碰com| 日韩视频在线你懂得| 在线成人免费观看| 欧美夫妻性生活| 在线播放/欧美激情| 欧美日韩高清影院| 欧美视频中文字幕| 欧美日韩一区二区三区免费看| 日本精品裸体写真集在线观看| 91蝌蚪porny九色| 91免费版在线| 色88888久久久久久影院按摩| 91网站视频在线观看| 99国产精品99久久久久久| 成人h动漫精品| 成人精品gif动图一区| 粉嫩一区二区三区在线看| 国产成人鲁色资源国产91色综 | 国产精品久久久久久妇女6080| 国产亚洲一区二区三区四区| 国产亚洲欧美在线| 国产精品久久精品日日| 日韩美女精品在线| 亚洲黄色av一区| 亚洲a一区二区| 麻豆精品国产传媒mv男同 | 国产精品久久久久毛片软件| 国产精品欧美久久久久一区二区| 中文字幕中文字幕一区| 亚洲天堂福利av| 亚洲精品水蜜桃| 午夜精品福利在线| 免费成人在线视频观看| 久久91精品久久久久久秒播| 国产麻豆午夜三级精品| www.综合网.com| 欧美日韩在线一区二区|