home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
BBS
/
WCPOST.ZIP
/
WCPOST.WCX
(
.txt
)
< prev
Wrap
Wildcat! WCX
|
1994-10-11
|
3KB
|
228 lines
'! Decompiled with wccNosy version 4.20f (freeware)
'! Input File: in.wcx 3480 bytes 12/30/122 04:12:34pm
'! Code Segment Size :2201 bytes
'! Data Segment Size :5503 bytes
'! String Segment Size:1279 bytes
'! Compiled with WCC version 4.01
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 Func1709 As Integer
Declare Function Func1809(mh65534 As MessageHeader) As Integer
Declare Function Func2005(mh65534 As MessageHeader) As Integer
Dim s4463 As String
Dim s4467 As String
Dim s4471 As String
Dim ur4475 As UserRecord
Dim mh5125 As MessageHeader
Dim s5445 As String
Dim s5449 As String
Dim s5453 As String
Dim s5457 As String
Dim s5461 As String
Dim s5465 As String
Dim s5469 As String
Dim s5473 As String
Dim s5477 As String
Dim s5481 As String
Dim s5485 As String
Dim s5489 As String
Dim s5493 As String
Dim dt5497 As DateTime
CurrentDateTime dt5497
s4463 = "1.01"
Open "wcpost.log" For Append As 1
Open "wcpost.err" For Append As 2
s4467 = ProgPath + "wcpost.cfg"
If Exists(s4467) Then
Open s4467 For Input As 3
141 Do While Not EOF(3)
Input #3, s4471
s4471 = UCase(s4471)
If InStr(s4471, "MSGTOSYSOP1=") = 1 Then
s5445 = RTrim(Mid(s4471, 13, 80))
End If
212 If InStr(s4471, "MSGTOSYSOP2=") = 1 Then
s5449 = RTrim(Mid(s4471, 13, 80))
End If
252 If InStr(s4471, "MSGTOSYSOP3=") = 1 Then
s5453 = RTrim(Mid(s4471, 13, 80))
End If
292 If InStr(s4471, "MSGTOSYSOP4=") = 1 Then
s5457 = RTrim(Mid(s4471, 13, 80))
End If
332 If InStr(s4471, "MSGTOSYSOP5=") = 1 Then
s5461 = RTrim(Mid(s4471, 13, 80))
End If
372 If InStr(s4471, "MSGTOUSERSONLY=") = 1 Then
s5465 = RTrim(Mid(s4471, 16, 80))
End If
412 If InStr(s4471, "MSGTOUSERSONLYSEC=") = 1 Then
s5469 = RTrim(Mid(s4471, 19, 80))
End If
452 If InStr(s4471, "MSGTOUSERS1=") = 1 Then
s5473 = RTrim(Mid(s4471, 13, 80))
End If
492 If InStr(s4471, "MSGTOUSERSNOT1=") = 1 Then
s5477 = RTrim(Mid(s4471, 16, 80))
End If
532 If InStr(s4471, "MSGTOUSERS2=") = 1 Then
s5481 = RTrim(Mid(s4471, 13, 80))
End If
572 If InStr(s4471, "MSGTOUSERSNOT2=") = 1 Then
s5485 = RTrim(Mid(s4471, 16, 80))
End If
612 If InStr(s4471, "MSGTOALL=") = 1 Then
s5489 = RTrim(Mid(s4471, 10, 80))
End If
652 Loop
658 Close 3
Else
669 Print #2, "------------------------------------------------------------------------------"
Print #2, FormatDate(dt5497.D, "mm/dd/yy") + " ";
Print #2, FormatTime(dt5497.T, "hh:mm:ss") + " ";
Print #2, " wcPOST v" + s4463 + " Error Log File"
Print #2, " ! You must create a WCPOST.CFG file to operate"
Print #2, " ! Please See the WCPOST.DOC for More Information"
End
End If
773 Join 0
Func1709
If Func1809(mh5125) Then
If s5445 <> "" Then
AddMessage(mh5125, s5445, "", 1213417543)
Print #1, " ! MSGTOSYSOP1 sent successfully"
End If
847 If s5449 <> "" Then
AddMessage(mh5125, s5449, "", 1213417543)
Print #1, " ! MSGTOSYSOP2 sent sucessfully"
End If
895 If s5453 <> "" Then
AddMessage(mh5125, s5453, "", 1213417543)
Print #1, " ! MSGTOSYSOP3 sent successfully"
End If
943 If s5457 <> "" Then
AddMessage(mh5125, s5457, "", 1213417543)
Print #1, " ! MSGTOSYSOP4 sent successfully"
End If
991 If s5461 <> "" Then
AddMessage(mh5125, s5461, "", 1213417543)
Print #1, " ! MSGTOSYSOP5 send successfully"
End If
End If
1039 s5493 = ""
If s5473 <> "" And s5477 <> "" Then
If GetUser(ur4475, s5493) Then
1094 Do While GetNextUser(ur4475, 1213417543)
If ur4475.SecLevel <> s5477 Then
If Func2005(mh5125) Then
AddMessage(mh5125, s5473, "", 1213417543)
Print #1, " ! MSGTOUSERS1 sent to : "; ur4475.Name; ", sucessfully"
End If
End If
1198 Loop
End If
End If
1204 If s5481 <> "" And s5485 <> "" Then
If GetUser(ur4475, s5493) Then
1250 Do While GetNextUser(ur4475, 1213417543)
If ur4475.SecLevel <> s5485 Then
If Func2005(mh5125) Then
AddMessage(mh5125, s5481, "", 1213417543)
Print #1, " ! MSGTOUSERS2 sent to : "; ur4475.Name; ", successfully"
End If
End If
1354 Loop
End If
End If
1360 If s5465 <> "" And s5469 <> "" Then
If GetUser(ur4475, s5493) Then
1406 Do While GetNextUser(ur4475, 1213417543)
If ur4475.SecLevel = s5469 Then
If Func2005(mh5125) Then
AddMessage(mh5125, s5465, "", 1213417543)
Print #1, " ! MSGTOUSERSONLY sent to : "; ur4475.Name; ", successfully"
End If
End If
1510 Loop
End If
End If
1516 If s5489 <> "" Then
If GetUser(ur4475, s5493) Then
1549 Do While GetNextUser(ur4475, 1213417543)
If Func2005(mh5125) Then
AddMessage(mh5125, s5489, "", 1213417543)
Print #1, " ! MSGTOALL sent to : "; ur4475.Name; ", sucessfully"
End If
1631 Loop
End If
End If
1637 Reset
End
'! Called 1 time
Function Func1709 As Integer
Print #1, "------------------------------------------------------------------------------"
Print #1, FormatDate(dt5497.D, "mm/dd/yy") + " ";
Print #1, FormatTime(dt5497.T, "hh:mm:ss") + " ";
Print #1, " wcPost v" + s4463 + " Log File, the GREAT Message Poster!"
End Function
'! Called 1 time
Function Func1809(mh65534 As MessageHeader) As Integer
Dim i65530 As Integer
Func1809 = 0
Do
1824 mh65534.From = "wcPOST v" + s4463
mh65534.To = MakeWild.SysopName
mh65534.Flags = 1
mh65534.Subject = "Auto-Posting from wcPOST"
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
1978 Loop Until i65530
Func1809 = -1
End Function
'! Called 4 times
Function Func2005(mh65534 As MessageHeader) As Integer
Dim i65530 As Integer
Func2005 = 0
Do
2020 mh65534.From = "wcPOST v" + s4463
mh65534.To = ur4475.Name
mh65534.Flags = 1
mh65534.Subject = "Auto-Posting from wcPOST"
i65530 = Trim(mh65534.From + mh65534.To + mh65534.Subject) > ""
If Not i65530 Then
Print #2, "There wsa an Error creating the Message to the User!"
End If
2174 Loop Until i65530
Func2005 = -1
End Function