home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
BBS
/
CYBRFY24.ZIP
/
PLOGON11.ZIP
/
LOGON410.ZIP
/
LOGON.WCX
(
.txt
)
Wrap
Wildcat! WCX
|
1995-05-17
|
5KB
|
263 lines
'! Decompiled with wccNosy version 4.20f (freeware)
'! Input File: in.wcx 4508 bytes 12/30/122 05:43:48pm
'! Code Segment Size :3340 bytes
'! Data Segment Size :4601 bytes
'! String Segment Size:1168 bytes
'! Compiled with WCC version 4.10
Declare Function Func3189(l65534 As Long) As String
Dim dt4465 As DateTime
Dim s4471 As String
Dim i4475 As Integer
Dim s4477 As String
Dim i4481 As Integer
Dim s4483(1 To 24) As String
Dim i4579 As Integer
Dim i4581 As Integer
Dim s4587 As String
Dim s4591 As String
Dim i4595 As Integer
Dim s4597 As String
Dim l65526_ As Long
Dim i65530_ As Integer
Dim l65532_ As Long
CurrentDateTime dt4465
i4475 = 0
If Exists("PWRLOGON.KEY") Then
Open "PWRLOGON.KEY" For Input As 1
Input #1, s4471
Close 1
GoSub 2289
If i4475 = -1 Then
Print "@0E@Executing @0F@POWER LOGON! @07@v1.1@0E@ Registered to @0F@@SYSOP@"
End If
129 Else
135 i4475 = 0
Print "@0E@Executing @0F@POWER LOGON!@07@ v1.1@8C@ -Unregistered-@0E@"
Delay 1
End If
158 Delay 0.5
If i4475 = 0 And User.Name = MakeWild.SysopName Then
Print ""
Print "@0E@Press [@0F@!@0E@] to register, or [@0F@SPACEBAR@0E@] to continue"
Do
222 i4481 = i4481 + 1
Delay 0.5
s4477 = InKey(1213417543)
If s4477 = " " Then
GoTo 307
End If
279 Loop Until s4477 = "!" Or i4481 = 5
307 If s4477 = "!" Then
GoSub 2102
End If
End If
330 If Not Exists("PWRLOGON.CFG") Then
Print "@0E@@CLS@PWRLOGON.CFG not found, continuing with normal logon..."
Delay 2
ActivityLog "ERROR! PWRLOGON.CFG Not found!"
ActivityLog "Read PWRLOGON.DOC for details on creating a PWRLOGON.CFG"
DisplayGroupFiles
HelloFiles
BulletinMenu
CheckNewsletter
QuoteOfTheDay
CheckMailAtLogon
Else
403 Open "PWRLOGON.CFG" For Input As 1
423 Do While Not EOF(1)
i4579 = i4579 + 1
Input #1, s4483(i4579)
Loop
492 i4581 = i4579
Close 1
531 For i4579 = 1 To i4581 Step 1
If Trim(UCase(s4483(i4579))) = "GREETING" Then
GoSub 2398
End If
639 If Trim(UCase(s4483(i4579))) = "BIRTHDAY" Then
GoSub 2563
End If
697 If Trim(UCase(s4483(i4579))) = "CHKSYSOP" Then
GoSub 2695
End If
755 If Trim(UCase(s4483(i4579))) = "CLS" Then
Print "@CLS@"
End If
816 If Trim(UCase(s4483(i4579))) = "CR" Then
Print ""
End If
877 If Trim(UCase(s4483(i4579))) = "PAUSE" Then
Print "@PAUSE@"
End If
938 If Trim(UCase(s4483(i4579))) = "NOPAUSE" Then
Print "@NOPAUSE@"
End If
999 If Trim(UCase(s4483(i4579))) = "STOP" Then
Print "@STOP@"
End If
1060 If Trim(UCase(s4483(i4579))) = "NOSTOP" Then
Print "@NOSTOP@"
End If
1121 If Trim(UCase(s4483(i4579))) = "ENTER" Then
WaitEnter
End If
1176 If Trim(UCase(s4483(i4579))) = "LOGOFF" Then
HangUp
End If
1231 If Trim(UCase(s4483(i4579))) = "FASTLOGON" Then
GoSub 3002
End If
1289 If Trim(UCase(s4483(i4579))) = "HELLO" Then
HelloFiles
End If
1344 If Trim(UCase(s4483(i4579))) = "BULLETINS" Then
BulletinMenu
End If
1399 If Trim(UCase(s4483(i4579))) = "CHKMAIL" Then
CheckMailAtLogon
End If
1454 If Trim(UCase(s4483(i4579))) = "GROUPFILES" Then
DisplayGroupFiles
End If
1509 If Trim(UCase(s4483(i4579))) = "NEWFILES" Then
GoSub 3037
End If
1567 If Trim(UCase(s4483(i4579))) = "QUOTES" Then
QuoteOfTheDay
End If
1622 If Trim(UCase(s4483(i4579))) = "QUOTES" Then
QuoteOfTheDay
End If
1677 If Trim(UCase(s4483(i4579))) = "POSTRIP" Then
GoSub 2780
End If
1735 If Trim(UCase(s4483(i4579))) = "BEEP" Then
Beep
End If
1790 If Trim(Left(UCase(s4483(i4579)), 4)) = "QUES" Then
GoSub 2637
End If
1853 If Trim(Right(UCase(s4483(i4579)), 3)) = "BAT" Then
GoSub 2799
End If
1916 If Trim(Right(UCase(s4483(i4579)), 3)) = "WCX" Then
GoSub 2918
End If
1979 If Trim(Right(UCase(s4483(i4579)), 3)) = "BBS" Then
DisplayFile(s4483(i4579))
End If
2073 Next
2096 GoTo 3065
2102 Print "@0E@@NOPAUSE@"
s4587 = InputMask("@0C@-Choice- @0E@[@0F@R@0E@]egister Power Logon!, or [@0F@Q@0E@]uit? ", "X", "", 1213417543)
s4587 = UCase(s4587)
If s4587 = "R" Then
Print ""
Print "Enter your registration code, or [@0F@ENTER@0E@] to quit: @0F@";
Input s4471
If s4471 > "" Then
GoSub 2289
If i4475 Then
Print ""
Print "@0E@Thank you for registering @0F@POWER LOGON!@0E@"
Open "PWRLOGON.KEY" For Output As 1
Print #1, s4471
Close 1
Print ""
WaitEnter
End If
End If
End If
2288 Return
2289 If i4475 = 0 Then
s4591 = Str(Asc(Left(UCase(MakeWild.SysopName), 1)) * (Len(MakeWild.SysopName) + Len(MakeWild.BBSName)))
If s4471 = s4591 Then
i4475 = -1
Else
2391 i4475 = 0
End If
End If
2397 Return
2398 SubText 1, Func3189(NodeInfo.CallerNum)
l65532_ = dt4465.T.Number Div 60
If l65532_ >= 0 And l65532_ <= 719 Then
DisplayPrompt 1365
Else
2472 If l65532_ >= 720 And l65532_ <= 1079 Then
DisplayPrompt 1366
Else
2512 If l65532_ >= 1080 And l65532_ <= 1440 Then
DisplayPrompt 1367
GoTo 2552
End If
End If
End If
2552 Print
Delay 1
Return
2563 If FormatDate(dt4465.D, "mm/dd") = FormatDate(User.BirthDate, "mm/dd") Then
If Not DisplayFile("birthday") Then
Beep
Print
Print "Happy birthday @FIRST@!"
End If
2628 ActivityLog "Birthday Greeting Displayed"
End If
2636 Return
2637 i4595 = Val(Trim(Right(s4483(i4579), 1)))
Questionnaire i4595
Return
2695 If User.Name = MakeWild.SysopName Then
If i4475 = 0 Then
Print ""
Print "@0E@Sorry @0F@@FIRST@, @0E@The @0F@CHKSYSOP@0E@ command only works"
Print "with the registered version of Power Logon."
WaitEnter
GoTo 2779
End If
2773 Else
2779 Return
2780 If RIPDetected Then
DisplayFile("POSTRIP")
End If
2798 Return
2799 s4597 = MakeWild.DoorFilePath
s4597 = s4597 + s4483(i4579)
If Exists(s4597) Then
Shell s4483(i4579), MakeWild.DoorFilePath
End If
2917 Return
2918 If Exists(s4483(i4579)) Then
Run s4483(i4579), ""
End If
3001 Return
3002 If FastLogonChar = "!" Or FastLogonChar = "*" Then
Else
3036 Return
3037 If InputYesNo("Check for new files since your last visit? @0E@", 1213417543) Then
ListFilesDate 1213417543
End If
3064 Return
End If
End If
End If
3065
'! Called 1 time
Function Func3189(l65534 As Long) As String
Dim i65524 As Integer
Dim s65526 As String
s65526 = Str(l65534)
i65524 = Len(s65526) - 2
3228 Do While i65524 > 1
s65526 = Left(s65526, i65524 - 1) + "," + Right(s65526, Len(s65526) - i65524 + 1)
i65524 = i65524 - 3
Loop
3317 Func3189 = s65526
End Function