home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
BBS
/
WCVFY.ZIP
/
WCVFY.WCX
(
.txt
)
< prev
next >
Wrap
Wildcat! WCX
|
1994-10-11
|
6KB
|
378 lines
'! Decompiled with wccNosy version 4.20f (freeware)
'! Input File: in.wcx 5955 bytes 12/30/122 04:15:50pm
'! Code Segment Size :3022 bytes
'! Data Segment Size :4981 bytes
'! String Segment Size:2933 bytes
'! Compiled with WCC version 4.01
Type Type30
s0 As String*25
s25 As String*15
s40 As String*15
s55 As String*15
s70 As String*10
End Type
Type Type29
Filler0(1 To 6) As Byte
s6 As String*70
Filler76(1 To 14) As Byte
s90 As String*70
Filler160(1 To 14) As Byte
s174 As String*70
Filler244(1 To 20) As Byte
w264 As Word
End Type
Type Type28
Filler0(1 To 6) As Byte
s6 As String*70
Filler76(1 To 14) As Byte
s90 As String*70
Filler160(1 To 14) As Byte
s174 As String*70
Filler244(1 To 20) As Byte
w264 As Word
End Type
Type Type27
Filler0(1 To 6) As Byte
s6 As String*70
Filler76(1 To 14) As Byte
s90 As String*70
Filler160(1 To 14) As Byte
s174 As String*70
Filler244(1 To 20) As Byte
w264 As Word
End Type
Type Type26
Filler0(1 To 6) As Byte
s6 As String*70
Filler76(1 To 14) As Byte
s90 As String*70
Filler160(1 To 14) As Byte
s174 As String*70
Filler244(1 To 20) As Byte
w264 As Word
End Type
Declare Function Func1441(mh65534 As MessageHeader) As Integer
Declare Function Func1636(mh65534 As MessageHeader) As Integer
Declare Function Func1831(mh65534 As MessageHeader) As Integer
Declare Function Func2026(mh65534 As MessageHeader) As Integer
Declare Function Func2221 As Integer
Declare Function Func2465 As Integer
Declare Function Func2572 As Integer
Declare Function Func2817 As Integer
Dim s4463 As String
Dim w4467 As Word
Dim s4469 As String*15
Dim s4484 As String*15
Dim s4499 As String*15
Dim s4514 As String*15
Dim s4529 As String*15
Dim s4544 As String*1
Dim dt4545 As DateTime
Dim d4551 As Date
Dim mh4553 As MessageHeader
Dim s4873 As String
Dim s4877 As String
Dim s4881 As String
Dim s4885 As String
Dim i4889 As Integer
Dim i4891 As Integer
Dim t30_4893 As Type30
Dim s4973 As String*8
CarrierCheck(-1)
CurrentDate d4551
CurrentDateTime dt4545
s4463 = "1.01"
Open "wcvfy.log" For Append As 1
Open "wcvfy.err" For Append As 2
Open "modem.dmp" For Append As 3
Func2465
s4544 = InputMask("Would you like to use wcVFY v" + s4463 + ", the Call-Back Verifier?", "Y", "", 1213417543)
If s4544 = "N" Then
End
End If
197 DisplayFile("wcvfy1.bbs")
Do
Do
206 Locate 19, 5
s4469 = InputMask(" What is your password? ", "XXXXXXXXXXXXXXX", "", 1213417543)
s4484 = InputMask(" Check your password? ", "XXXXXXXXXXXXXXX", "", 1213417543)
If (s4469 <> s4484) = 0 Then GoTo 297
Loop
297 If Len(s4469) < 5 Then
Print " Your password must be at least 5 characters long."
End If
325 Loop Until Len(s4469) >= 5
Print #1, " * User Password: "; s4469
Do
Do
362 w4467 = 0
Locate 21, 5
s4973 = InputMask(" What phone number should I call you at? ", "999-9999", "", 1213417543)
If (Left(s4973, 1) = "9") = 0 Then GoTo 452
Print " This system does not return calls to 9xx-xxxx numbers."
Print " please try your number again."
Loop
452 If (Len(s4973) < 7) = 0 Then GoTo 486
Print " You must enter a full 7-digit phone number."
Loop
486 Func2572
If i4891 = -1 Then
Print ""
Print " @0E@ The Phone Number you have entered is already in use."
Print " You'll either have to select another or leave the SysOp"
Print " a Comment explaining the reason for the duplicate number."
Print ""
Print " @09@Now Returning you to @0F@@BBS@@0E@."
WaitEnter
Print #1, " ! =-=-=-= Duplicate Number Found =-=-=-="
Print #1, " # The Number was : "; s4973; "."
If Func1831(mh4553) Then
s4881 = "wc_badus.msg"
AddMessage(mh4553, s4881, "", 1213417543)
Print #1, " @ BadUser Message Sent successfully"
End If
656 If Func2026(mh4553) Then
s4885 = "wc_badsy.msg"
AddMessage(mh4553, s4885, "", 1213417543)
Print #1, " @ BadSysOp Message Sent successfully"
End If
711 End
End If
712 Cls
Locate 2, 1
Print "@09@ I will now hangup, when I call back be ready to answer"
Print " by typing 'ATA' from your terminal window."
Print " Hit the enter key when you're ready!"
Locate 6, 1
WaitEnter
If Not Local Then
CarrierCheck(0)
HangUp
Func2221
CarrierCheck(-1)
End If
792 Cls
Locate 5, 1
Print "@0E@ This is @BBS@'s callback verifier calling to verify you."
Print ""
WaitEnter
Print #1, " $ Caller Connected!";
Print #1, " at ";
Print #1, FormatTime(dt4545.T, "hh:mm:ss")
Cls
DisplayFile("wcvfy2.bbs")
Locate 7, 1
s4499 = InputMask(" Please enter your callback password now : ", "XXXXXXXXXXXXXXX", "", 1213417543)
If s4469 = s4499 Then
Print " You have now been upgraded to Trial User status!"
Print ""
Print " You now have a valid account for 30-Day's, after that"
Print "time period please concider donating to become a member."
WaitEnter
Else
976 s4514 = InputMask(" Please try your password again : ", "XXXXXXXXXXXXXXX", "", 1213417543)
If s4469 = s4514 Then
Print " You have now been upgraded to Trial User status!"
Print ""
Print " You now have a valid account for 30-Day's, after that"
Print "time period please concider donating to become a member."
WaitEnter
Else
1070 Print "THIS IS YOUR LAST CHANCE!"
s4529 = InputMask(" Enter you password now : ", "XXXXXXXXXXXXXXX", "", 1213417543)
If s4469 = s4529 Then
Print "You finally made it! You are now a Trial User!"
Print ""
Print " You now have a valid account for 30-Day's, after that"
Print "time period please concider donating to become a member."
WaitEnter
Else
1173 HangUp
Stop
End If
End If
End If
1179 User.SecLevel = "TRIAL"
User.Comment(5) = "Verified # " + s4973
User.ExpireDate.Number = d4551.Number + 30
If User.SecLevel = "TRIAL" Then
Func2817
Print #1, " * User Upgraded to Trial Successfully!"
End If
1303 If Func1441(mh4553) Then
s4873 = "wc_user.msg"
AddMessage(mh4553, s4873, "", 1213417543)
Print #1, " @ User Message Sent successfully"
End If
1358 If Func1636(mh4553) Then
s4877 = "wc_sysop.msg"
AddMessage(mh4553, s4877, "", 1213417543)
Print #1, " @ SysOp Message Sent successfully"
End If
1413 Reset
End
'! Called 1 time
Function Func1441(mh65534 As MessageHeader) As Integer
Dim i65530 As Integer
Func1441 = 0
Do
1456 mh65534.From = MakeWild.SysopName
mh65534.To = User.Name
mh65534.Flags = 1
mh65534.Subject = "You've Been Validated!"
i65530 = Trim(mh65534.From + mh65534.To + mh65534.Subject) > ""
If Not i65530 Then
Print #2, "There was an Error creating the Message to the User!"
End If
1609 Loop Until i65530
Func1441 = -1
End Function
'! Called 1 time
Function Func1636(mh65534 As MessageHeader) As Integer
Dim i65530 As Integer
Func1636 = 0
Do
1651 mh65534.From = User.Name
mh65534.To = MakeWild.SysopName
mh65534.Flags = 1
mh65534.Subject = "I've been Validated!"
i65530 = Trim(mh65534.From + mh65534.To + mh65534.Subject) > ""
If Not i65530 Then
Print #2, "There was an Error creating the Message to the SysOp!"
End If
1804 Loop Until i65530
Func1636 = -1
End Function
'! Called 1 time
Function Func1831(mh65534 As MessageHeader) As Integer
Dim i65530 As Integer
Func1831 = 0
Do
1846 mh65534.From = MakeWild.SysopName
mh65534.To = User.Name
mh65534.Flags = 1
mh65534.Subject = "Duplicate Number?"
i65530 = Trim(mh65534.From + mh65534.To + mh65534.Subject) > ""
If Not i65530 Then
Print #2, "There was an Error creating the Message to the User!"
End If
1999 Loop Until i65530
Func1831 = -1
End Function
'! Called 1 time
Function Func2026(mh65534 As MessageHeader) As Integer
Dim i65530 As Integer
Func2026 = 0
Do
2041 mh65534.From = User.Name
mh65534.To = MakeWild.SysopName
mh65534.Flags = 1
mh65534.Subject = "Duplicate Nubmer?"
i65530 = Trim(mh65534.From + mh65534.To + mh65534.Subject) > ""
If Not i65530 Then
Print #2, "There was an Error creating the Message to the SysOp!"
End If
2194 Loop Until i65530
Func2026 = -1
End Function
'! Called 1 time
Function Func2221 As Integer
Dim r65528 As Real
i4889 = 0
Do
2236 i4889 = i4889 + 1
Delay 5
Print #1, " # Now Calling : "; s4973
Print #1, " # Dialing, attempt number : "; i4889
Send "ATDT" + s4973 + Chr(13)
r65528 = Timer
Do
2324 Print #3, InComm;
If Timer - r65528 > 60 Then
Send Chr(13)
GoTo 2378
End If
2369 Loop Until Carrier
2378 If i4889 >= 3 Then
Print #1, " # Too many Rings, aborting."
CarrierCheck(-1)
End
End If
2411 Loop Until Carrier
Delay 1
Do
2428 Loop Until InComm = ""
Close 3
Del "modem.dmp"
End Function
'! Called 1 time
Function Func2465 As Integer
Print #1, "-------------------------------------------------------------------------------"
Print #1, FormatDate(dt4545.D, "mm/dd/yy ");
Print #1, FormatTime(dt4545.T, "hh:mm:ss ");
Print #1, "User Name: "; User.Name;
Print #1, " Calling From: "; User.From
End Function
'! Called 1 time
Function Func2572 As Integer
Dim i65524 As Integer
Dim s65526 As String*8
s65526 = s4973
i4891 = 0
Locate 22, 5
Open "wcvfy.dat" For Random As 4 Len = 80 '! This value should probably be replaced with a "SizeOf" expression
i65524 = 1
2633 Do While Not EOF(4)
i65524 = i65524 + 1
Get 4, i65524, t30_4893 '! 80 bytes
If Right(t30_4893.s25, 8) = s65526 Then
i4891 = -1
Else
2718 If Right(t30_4893.s40, 8) = s65526 Then
i4891 = -1
Else
2761 If Right(t30_4893.s55, 8) = s65526 Then
i4891 = -1
End If
End If
End If
2798 Loop
2804 Close 4
End Function
'! Called 1 time
Function Func2817 As Integer
Open "wcvfy.dat" For Random As 4 Len = 80 '! This value should probably be replaced with a "SizeOf" expression
t30_4893.s0 = User.Name
t30_4893.s25 = User.PhoneNumber
t30_4893.s40 = User.DataNumber
t30_4893.s55 = User.FAXNumber
t30_4893.s70 = User.SecLevel
If t30_4893.s0 <> "" Then
Put 4, LOF(4) + 1, t30_4893 '! 80 bytes
Print #1, " * "; User.Name; "'s data added for Duplicate Checking"
End If
3009 Close 4
End Function