home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form AliasForm
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- BorderStyle = 3 'Fixed Dialog
- Caption = "HotList Manager"
- ClientHeight = 3435
- ClientLeft = 555
- ClientTop = 885
- ClientWidth = 4635
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 3840
- Icon = "ALIASFOR.frx":0000
- Left = 495
- LinkTopic = "Form2"
- ScaleHeight = 3435
- ScaleWidth = 4635
- Top = 540
- Width = 4755
- Begin VB.CommandButton DeleteButton
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "&Delete"
- Height = 495
- Left = 0
- TabIndex = 6
- Top = 2760
- Width = 1455
- End
- Begin VB.ComboBox SiteBox
- Appearance = 0 'Flat
- Height = 315
- Left = 1680
- Sorted = -1 'True
- TabIndex = 1
- Top = 360
- Width = 2895
- End
- Begin VB.TextBox StartingDirBox
- Appearance = 0 'Flat
- Height = 285
- Left = 1680
- TabIndex = 5
- Top = 2280
- Width = 2895
- End
- Begin VB.TextBox PasswordBox
- Appearance = 0 'Flat
- Height = 285
- Left = 1680
- TabIndex = 4
- Top = 1800
- Width = 2895
- End
- Begin VB.TextBox UserNameBox
- Appearance = 0 'Flat
- Height = 285
- Left = 1680
- TabIndex = 3
- Top = 1320
- Width = 2895
- End
- Begin VB.TextBox HostAddressBox
- Appearance = 0 'Flat
- Height = 285
- Left = 1680
- TabIndex = 2
- Top = 840
- Width = 2895
- End
- Begin VB.CommandButton CancelButton
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "&Cancel"
- Height = 495
- Left = 3120
- TabIndex = 8
- Top = 2760
- Width = 1455
- End
- Begin VB.CommandButton SaveButton
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "&Save"
- Height = 495
- Left = 1560
- TabIndex = 7
- Top = 2760
- Width = 1455
- End
- Begin VB.Label Label5
- Alignment = 1 'Right Justify
- Appearance = 0 'Flat
- BackColor = &H00FFFFFF&
- BackStyle = 0 'Transparent
- Caption = "Starting Dir"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00000000&
- Height = 375
- Left = 0
- TabIndex = 12
- Top = 2280
- Width = 1575
- End
- Begin VB.Label Label4
- Alignment = 1 'Right Justify
- Appearance = 0 'Flat
- BackColor = &H00FFFFFF&
- BackStyle = 0 'Transparent
- Caption = "Password"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00000000&
- Height = 375
- Left = 120
- TabIndex = 11
- Top = 1800
- Width = 1455
- End
- Begin VB.Label Label3
- Alignment = 1 'Right Justify
- Appearance = 0 'Flat
- BackColor = &H00FFFFFF&
- BackStyle = 0 'Transparent
- Caption = "User Name"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00000000&
- Height = 375
- Left = 120
- TabIndex = 10
- Top = 1320
- Width = 1455
- End
- Begin VB.Label Label2
- Alignment = 1 'Right Justify
- Appearance = 0 'Flat
- BackColor = &H00FFFFFF&
- BackStyle = 0 'Transparent
- Caption = "Host Address"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00000000&
- Height = 375
- Left = 120
- TabIndex = 9
- Top = 840
- Width = 1455
- End
- Begin VB.Label Label1
- Alignment = 1 'Right Justify
- Appearance = 0 'Flat
- BackColor = &H00FFFFFF&
- BackStyle = 0 'Transparent
- Caption = "Site Name"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00000000&
- Height = 375
- Left = 0
- TabIndex = 0
- Top = 360
- Width = 1575
- End
- Attribute VB_Name = "AliasForm"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Private Sub CancelButton_Click()
- Unload AliasForm
- End Sub
- Private Sub DeleteButton_Click()
- If HotListRecords > 1 Then
- For x = SiteBox.ListIndex + 1 To HotListRecords
- For Y = 1 To 5
- AliasDB(x, Y) = AliasDB(x + 1, Y)
- Next Y
- Next x
- HotListRecords = HotListRecords - 1
- x = SaveAliasDB()
- Else
- Kill "ftpalias.dat"
- End If
- End Sub
- Private Sub Form_Load()
- If HotListRecords > 0 Then
- For x = 1 To HotListRecords
- SiteBox.AddItem AliasDB(x, 1)
- Next x
- End If
- End Sub
- Private Function SaveAliasDB()
- FileName = "ftpalias.dat"
- Open FileName For Output As #1
-
- Write #1, HotListRecords
-
- For x = 1 To HotListRecords
- For Y = 1 To 5
- Write #1, AliasDB(x, Y)
- Next Y
- Next x
-
- Close #1
- End Function
- Private Sub SaveButton_Click()
- HotListRecords = HotListRecords + 1
- AliasDB(HotListRecords, 1) = SiteBox
- AliasDB(HotListRecords, 2) = HostAddressBox
- AliasDB(HotListRecords, 3) = UserNameBox
- AliasDB(HotListRecords, 4) = PasswordBox
- AliasDB(HotListRecords, 5) = StartingDirBox
- x = SaveAliasDB()
- Load MainForm.FTPSite(HotListRecords)
- MainForm.FTPSite(HotListRecords).Caption = SiteBox
- Unload AliasForm
- End Sub
- Private Sub SiteBox_Click()
-
- x = SiteBox.ListIndex + 1
- If x = 0 Then Exit Sub
- HostAddressBox = AliasDB(x, 2)
- UserNameBox = AliasDB(x, 3)
- PasswordBox = AliasDB(x, 4)
- StartingDirBox = AliasDB(x, 5)
- End Sub
- Private Sub SiteBox_KeyPress(KeyAscii As Integer)
- Select Case KeyAscii
- Case 0
- 'Null - triggered by DropDown Event
- Case 8
- If Len(UserInput) > 0 Then
- UserInput = Left$(UserInput, Len(UserInput) - 1)
- Else
- HostAddressBox = ""
- UserNameBox = ""
- PasswordBox = ""
- StartingDirBox = ""
- SiteBox.Text = ""
- Exit Sub
- End If
- Case Is > 31
- UserInput = UserInput + Chr$(KeyAscii)
- Case Else
- Exit Sub
- End Select
- For x = 1 To HotListRecords
-
- If StrComp(Left$(AliasDB(x, 1), Len(UserInput)), UserInput, 1) = 0 Then
- MaintenanceHostName = AliasDB(x, 1)
- SiteBox.SelStart = 0
- SiteBox.SelLength = Len(UserInput)
-
- HostAddressBox = AliasDB(x, 2)
- UserNameBox = AliasDB(x, 3)
- PasswordBox = AliasDB(x, 4)
- StartingDirBox = AliasDB(x, 5)
- Exit Sub
- Else
- MaintenanceHostName = UserInput
-
- End If
- Next x
- HostAddressBox = ""
- UserNameBox = ""
- PasswordBox = ""
- StartingDirBox = ""
- End Sub
- Private Sub SiteBox_KeyUp(KeyCode As Integer, Shift As Integer)
- If UserInput = "" Then Exit Sub
- SiteBox.Text = MaintenanceHostName
- SiteBox.SelStart = 0
- SiteBox.SelLength = Len(UserInput)
- End Sub
-