home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Equalizer BBS
/
equalizer-bbs-collection_2004.zip
/
equalizer-bbs-collection
/
BBS-PCBOARD-STUFF
/
BCNUK080.ZIP
/
MAIN.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1994-12-23
|
42KB
|
2,957 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 3.O1 (Encryption type I) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Boolean BOOLEAN001
Boolean BOOLEAN002
Boolean BOOLEAN003
Boolean BOOLEAN004
Boolean BOOLEAN005
Boolean BOOLEAN006
Boolean BOOLEAN007
Boolean BOOLEAN008
Boolean BOOLEAN009
Boolean BOOLEAN010
Boolean BOOLEAN011
Boolean BOOLEAN012
Boolean BOOLEAN013
Boolean BOOLEAN014
Boolean BOOLEAN015
Boolean BOOLEAN016
Boolean BOOLEAN017
Boolean BOOLEAN018
Boolean BOOLEAN019
Boolean BOOLEAN020
Boolean BOOLEAN021
Boolean BOOLEAN022
Boolean BOOLEAN023
Boolean BOOLEAN024
Boolean BOOLEAN025
Boolean BOOLEAN026
Boolean BOOLEAN027
Boolean BOOLEAN028
Boolean BOOLEAN029
Boolean BOOLEAN030
Boolean BOOLEAN031
Boolean BOOLEAN032
Boolean BOOLEAN033
Boolean BOOLEAN034
Boolean BOOLEAN035
Boolean BOOLEAN036
Boolean BOOLEAN037
Boolean BOOLEAN038
Integer INTEGER001
Integer INTEGER002
Integer INTEGER003
Integer INTEGER004
Integer INTEGER005
Integer INTEGER006
Integer INTEGER007
Integer INTEGER008
Integer INTEGER009
Integer INTEGER010
Integer INTEGER011
Integer INTEGER012
Integer INTEGER013
Integer INTEGER014
Integer INTEGER015
Integer INTEGER016
Integer INTEGER017
Integer INTEGER018
Integer INTEGER019
Integer INTEGER020
Integer INTEGER021
Integer INTEGER022
Integer INTEGER023
Integer INTEGER024
Integer INTEGER025
Integer INTEGER026
Integer INTEGER027
Integer INTEGER028
Integer INTEGER029
Integer INTEGER030
String STRING001
String STRING002
String STRING003
String STRING004
String STRING005
String STRING006
String STRING007
String STRING008
String STRING009
String STRING010
String TSTRING011(5)
String TSTRING012(60)
String STRING013
String STRING014
String STRING015
String STRING016
String STRING017
String STRING018
String STRING019
String STRING020
String STRING021
String STRING022
String STRING023
String STRING024
String STRING025
String STRING026
String STRING027
String STRING028
String STRING029
String TSTRING030(3)
String STRING031
String STRING032
String STRING033
String TSTRING034(20)
String TSTRING035(20)
String STRING036
String STRING037
String STRING038
String STRING039
String STRING040
String STRING041
String STRING042
String STRING043
String STRING044
String STRING045
String STRING046
String TSTRING047(15)
String TSTRING048(15)
String STRING049
String STRING050
String STRING051
String STRING052
String STRING053
String STRING054
String STRING055
String STRING056
String STRING057
String STRING058
String TSTRING059(60)
String STRING060
String STRING061
String STRING062
String STRING063
String TSTRING064(8)
String STRING065
String STRING066
String STRING067
String STRING068
Int INT001
Int INT002
Int INT003
Int INT004
Int INT005
Int INT006
Int INT007
Int INT008
Int INT009
Int INT010
Int TINT011(20)
Int TINT012(20)
Int INT013
Int INT014
Int INT015
Int INT016
Int INT017
Int INT018
Int INT019
Int INT020
Int INT021
Int INT022
Int INT023
Int INT024
BigStr TBIGSTR001(8)
Double DOUBLE001
;------------------------------------------------------------------------------
INT001 = String(PCBMac("@NUMDIR@"))
STRING008 = ReadLine(PCBDat(), 46)
STRING013 = ReadLine(PCBDat(), 33)
STRING018 = PPEPath() + "graph\text"
STRING015 = PPEPath() + "nuke.cfg"
TSTRING030(0) = ReadLine(STRING018, 15)
TSTRING030(1) = ReadLine(STRING018, 16)
TSTRING030(2) = ReadLine(STRING018, 17)
TSTRING030(3) = ReadLine(STRING018, 18)
STRING003 = ReadLine(STRING018, 6)
STRING005 = ReadLine(STRING018, 7)
STRING006 = ReadLine(STRING018, 8)
STRING007 = ReadLine(STRING018, 9)
Log "BlackCat NUKE started at (" + String(Time()) + ")", 0
FreshLine
PrintLn "@X07Nuke v@X0F0.80 @X07(@X0FC@X07) BlackCat 1994"
STRING025 = ReadLine(STRING015, 1)
If (Upper(STRING025) == "N") Then
BOOLEAN026 = 0
Else
BOOLEAN026 = 1
Endif
Tokenize ReadLine(STRING015, 2)
INT004 = GetToken()
INT005 = GetToken()
STRING026 = ReadLine(STRING015, 3)
STRING027 = Upper(ReadLine(STRING015, 4))
STRING031 = ReadLine(STRING015, 6)
If (Upper(ReadLine(STRING015, 7)) == "YES") Then
BOOLEAN027 = 1
Else
BOOLEAN027 = 0
Endif
Gosub LABEL142
INTEGER009 = ReadLine(STRING015, 10)
If (Upper(ReadLine(STRING015, 11)) == "YES") Then
BOOLEAN028 = 1
Else
BOOLEAN028 = 0
Endif
If (Upper(ReadLine(STRING015, 12)) == "YES") Then
BOOLEAN025 = 1
STRING019 = ReadLine(STRING015, 13)
Else
BOOLEAN025 = 0
Endif
Tokenize ReadLine(STRING015, 14)
If (GetToken() == "YES") Then
BOOLEAN009 = 1
Else
BOOLEAN009 = 0
Endif
If (GetToken() == "YES") Then
BOOLEAN010 = 1
Else
BOOLEAN010 = 0
Endif
If (GetToken() == "YES") Then
INT003 = 2
Else
INT003 = 1
Endif
STRING032 = PPEPath() + "work\bcnk" + String(CurConf()) + "." + String(PcbNode())
If (Exist(STRING032)) Then
If (Upper(ReadLine(STRING032, 1)) <> Upper(U_Name())) Then
FClose -1
Delete STRING032
Endif
Endif
BOOLEAN029 = 0
INT009 = 1
Goto LABEL005
:LABEL001
DefColor
Print STRING005
INT013 = GetX()
INT014 = GetY()
For INT010 = 1 To INT007
TINT011(INT010) = GetX()
TINT012(INT010) = GetY()
Print TSTRING034(INT010)
If (INT006 == 1) Then
If (INT010 == INT007) Then
Print STRING007
Else
Print STRING006
Endif
Else
AnsiPos INT013, GetY() + 1
Endif
TSTRING035(INT010) = Left(Strip(StripAtx(TSTRING034(INT010)), " "), 1)
Next
INT008 = INT009
Gosub LABEL004
Print STRING003, StripAtx(TSTRING034(INT008))
:LABEL002
STRING004 = Inkey()
Select Case (STRING004)
Case Chr(13)
DefColor
Return
Case "RIGHT", "DOWN", "."
Gosub LABEL004
Print TSTRING034(INT008)
If (INT008 == INT007) Then
INT008 = 1
Else
Inc INT008
Endif
Gosub LABEL004
Print STRING003, StripAtx(TSTRING034(INT008))
Case "LEFT", "UP", ","
Gosub LABEL004
Print TSTRING034(INT008)
If (INT008 == 1) Then
INT008 = INT007
Else
Dec INT008
Endif
Gosub LABEL004
Print STRING003, StripAtx(TSTRING034(INT008))
Case "END"
Gosub LABEL004
Print TSTRING034(INT008)
INT008 = INT007
Gosub LABEL004
Print STRING003, StripAtx(TSTRING034(INT008))
Case "HOME"
Gosub LABEL004
Print TSTRING034(INT008)
INT008 = 1
Gosub LABEL004
Print STRING003, StripAtx(TSTRING034(INT008))
Case "?"
If (BOOLEAN022) Then
SaveScrn
STRING014 = PPEPath() + "help\"
If (INT008 == 1) Then
DispFile STRING014 + "nuke", 0
Goto LABEL003
Endif
If (INT008 == 2) Then
DispFile STRING014 + "award", 0
Goto LABEL003
Endif
If (INT008 == 3) Then
DispFile STRING014 + "delete", 0
Goto LABEL003
Endif
If (INT008 == 4) Then
DispFile STRING014 + "skip", 0
Goto LABEL003
Endif
If (INT008 == 5) Then
DispFile STRING014 + "edit", 0
Goto LABEL003
Endif
If (INT008 == 6) Then
DispFile STRING014 + "free", 0
Goto LABEL003
Endif
If (INT008 == 7) Then
DispFile STRING014 + "comment", 0
Goto LABEL003
Endif
If (INT008 == 8) Then
DispFile STRING014 + "quit", 0
Endif
:LABEL003
Wait
RestScrn
Endif
Case ""
For INT010 = 1 To INT007
If (Upper(STRING004) == Upper(TSTRING035(INT010))) Then
Gosub LABEL004
Print TSTRING034(INT008)
INT008 = INT010
Gosub LABEL004
Print STRING003, StripAtx(TSTRING034(INT008))
KbdStuff Chr(13)
Endif
Next
End Select
Goto LABEL002
:LABEL004
INT015 = GetX()
If (INT015 > TINT011(INT008)) Then
Backup INT015 - TINT011(INT008)
ElseIf (INT015 < TINT011(INT008)) Then
Forward TINT011(INT008) - INT015
Endif
Return
:LABEL005
If (Exist(STRING041)) Then
PrintLn "@X0CSorry, but the nuker is being run on another node, try again later.."
End
Endif
STRING041 = PPEPath() + "running"
FCreate 1, STRING041, 1, 3
FClose 1
Gosub LABEL031
Gosub LABEL030
End
:LABEL006
Gosub LABEL054
If (BOOLEAN006) Then
STRING002 = ""
InputStr "@X07Enter wildcard (enter=abort)@X0C: _", STRING002, 1, 12, Mask_Pwd(), 8
If (STRING002 == "") Return
Endif
If (BOOLEAN031) Then
BOOLEAN031 = 0
Return
Endif
Gosub LABEL032
If (BOOLEAN006) Then
STRING037 = ReadLine(PPEPath() + "work\tblst", 1)
STRING038 = STRING033 + "\" + STRING037
Endif
If (BOOLEAN033) Goto LABEL007
FreshLine
If (BOOLEAN008) Then
BOOLEAN011 = 0
BOOLEAN031 = 0
Return
Endif
Print ReadLine(STRING018, 95)
Gosub LABEL068
If (INT008 == 2) Then
BOOLEAN011 = 0
BOOLEAN031 = 0
Return
Endif
Goto LABEL006
:LABEL007
Gosub LABEL076
Gosub LABEL077
If (BOOLEAN015) Goto LABEL008
STRING029 = "NONAME"
:LABEL008
Gosub LABEL061
If (BOOLEAN021) Then
If (BOOLEAN004) Goto LABEL009
FreshLine
PrintLn ReadLine(STRING018, 109)
BOOLEAN021 = 0
Goto LABEL008
:LABEL009
Gosub LABEL023
If (BOOLEAN031) Then
FreshLine
Newline
BOOLEAN021 = 0
BOOLEAN031 = 0
Goto LABEL008
Endif
If (BOOLEAN008) Then
Copy PPEPath() + "work\tblst", PPEPath() + "work\tbbyte"
Endif
Gosub LABEL026
Gosub LABEL035
Gosub LABEL021
BOOLEAN021 = 0
Wait
If (BOOLEAN008) Return
Endif
If (BOOLEAN014) Then
BOOLEAN014 = 0
Goto LABEL006
Endif
If (BOOLEAN018) Then
If (BOOLEAN003) Goto LABEL010
FreshLine
PrintLn ReadLine(STRING018, 110)
BOOLEAN018 = 0
Goto LABEL008
:LABEL010
Gosub LABEL143
If (BOOLEAN019) Then
BOOLEAN018 = 0
BOOLEAN019 = 0
FreshLine
Newline
Goto LABEL008
Endif
If (BOOLEAN008) Then
Copy PPEPath() + "work\tblst", PPEPath() + "work\tbbyte"
Endif
Gosub LABEL026
Gosub LABEL035
BOOLEAN018 = 0
Gosub LABEL022
Wait
If (BOOLEAN008) Return
Goto LABEL006
Endif
If (BOOLEAN016) Then
If (BOOLEAN002) Goto LABEL011
FreshLine
PrintLn ReadLine(STRING018, 111)
BOOLEAN016 = 0
Goto LABEL008
:LABEL011
Gosub LABEL111
If (BOOLEAN017) Then
BOOLEAN016 = 0
Newline
Goto LABEL008
Endif
Gosub LABEL026
Gosub LABEL035
Gosub LABEL020
BOOLEAN016 = 0
Wait
If (BOOLEAN008) Return
Goto LABEL006
Endif
If (BOOLEAN031) Then
BOOLEAN031 = 0
Return
Endif
If (BOOLEAN030) Goto LABEL012
Goto LABEL006
:LABEL012
If (BOOLEAN001) Goto LABEL013
FreshLine
PrintLn ReadLine(STRING018, 112)
BOOLEAN030 = 0
Goto LABEL008
:LABEL013
If (BOOLEAN033) Goto LABEL014
Goto LABEL006
:LABEL014
Gosub LABEL023
If (BOOLEAN031) Then
BOOLEAN031 = 0
Goto LABEL008
Endif
Gosub LABEL115
If (BOOLEAN031) Then
BOOLEAN031 = 0
Goto LABEL008
Endif
Gosub LABEL026
Gosub LABEL119
Gosub LABEL035
Gosub LABEL089
Gosub LABEL015
If (BOOLEAN008) Return
Goto LABEL006
Return
:LABEL015
If (BOOLEAN008) Then
STRING021 = PPEPath() + "work\tbbyte"
INTEGER001 = 1
Tokenize ReadLine(STRING021, INTEGER001)
STRING022 = GetToken()
INTEGER002 = GetToken()
Gosub LABEL127
FAppend 3, PPEPath() + "nuke.log", 1, 0
If (BOOLEAN028) Then
STRING023 = PPEPath() + "nukelst"
If (Exist(STRING023)) Goto LABEL016
FCreate 1, STRING023, 1, 0
Goto LABEL017
:LABEL016
FAppend 1, STRING023, 1, 0
Endif
:LABEL017
While (STRING022 <> "") Do
STRING024 = Left(STRING022, 12) + " " + Left(STRING029, 20) + " " + "NUKE " + " " + Left(U_Name(), 20) + " " + Left(INTEGER002, 15)
FPutLn 3, STRING024
Inc INTEGER001
If (BOOLEAN028) Then
FPutLn 1, Upper(STRING029) + "," + String(INTEGER002) + "," + "1"
Endif
Tokenize ReadLine(STRING021, INTEGER001)
STRING022 = GetToken()
INTEGER002 = GetToken()
EndWhile
FClose 3
If (BOOLEAN028) FClose 1
Return
Endif
STRING024 = Left(STRING037, 12) + " " + Left(STRING029, 20) + " " + "NUKE " + " " + Left(U_Name(), 20) + " " + Left(INTEGER006, 15)
Gosub LABEL129
If (BOOLEAN028) Then
STRING021 = PPEPath() + "nukelst"
If (Exist(STRING021)) Goto LABEL018
FCreate 1, STRING021, 1, 0
FPutLn 1, Upper(STRING029) + "," + String(INTEGER006) + "," + "1"
Goto LABEL019
:LABEL018
FAppend 1, STRING021, 1, 0
FPutLn 1, Upper(STRING029) + "," + String(INTEGER006) + "," + "1"
:LABEL019
FClose 1
Endif
Return
:LABEL020
If (BOOLEAN008) Then
STRING021 = PPEPath() + "work\tblst"
INTEGER001 = 1
Tokenize ReadLine(STRING021, INTEGER001)
STRING022 = GetToken()
INTEGER002 = GetToken()
Gosub LABEL127
FAppend 3, PPEPath() + "nuke.log", 1, 0
While (STRING022 <> "") Do
STRING024 = Left(STRING022, 12) + " " + Left(STRING029, 20) + " " + "AWARD" + " " + Left(U_Name(), 20) + " " + Left(INTEGER006, 15)
FPutLn 3, STRING024
Inc INTEGER001
Tokenize ReadLine(STRING021, INTEGER001)
STRING022 = GetToken()
INTEGER002 = GetToken()
EndWhile
FClose 3
Return
Endif
STRING024 = Left(STRING037, 12) + " " + Left(STRING029, 20) + " " + "AWARD" + " " + Left(U_Name(), 20) + " " + Left(INTEGER006, 15)
Gosub LABEL129
Return
:LABEL021
If (BOOLEAN008) Then
STRING021 = PPEPath() + "work\tblst"
INTEGER001 = 1
Tokenize ReadLine(STRING021, INTEGER001)
STRING022 = GetToken()
INTEGER002 = GetToken()
Gosub LABEL127
FAppend 3, PPEPath() + "nuke.log", 1, 0
While (STRING022 <> "") Do
STRING024 = Left(STRING022, 12) + " " + Left(STRING029, 20) + " " + "CMT " + " " + Left(U_Name(), 20) + " " + Left("N/A", 15)
FPutLn 3, STRING024
Inc INTEGER001
Tokenize ReadLine(STRING021, INTEGER001)
STRING022 = GetToken()
EndWhile
FClose 3
Return
Endif
STRING024 = Left(STRING037, 12) + " " + Left(STRING029, 20) + " " + "CMT " + " " + Left(U_Name(), 20) + " " + Left("N/A", 15)
Gosub LABEL129
Return
:LABEL022
If (BOOLEAN008) Then
STRING021 = PPEPath() + "work\tblst"
INTEGER001 = 1
Tokenize ReadLine(STRING021, INTEGER001)
STRING022 = GetToken()
INTEGER002 = GetToken()
Gosub LABEL127
FAppend 3, PPEPath() + "nuke.log", 1, 0
While (STRING022 <> "") Do
STRING024 = Left(STRING022, 12) + " " + Left(STRING029, 20) + " " + "FREE " + " " + Left(U_Name(), 20) + " " + Left("N/A", 15)
FPutLn 3, STRING024
Inc INTEGER001
Tokenize ReadLine(STRING021, INTEGER001)
STRING022 = GetToken()
INTEGER002 = GetToken()
EndWhile
FClose 3
Return
Endif
STRING024 = Left(STRING037, 12) + " " + Left(STRING029, 20) + " " + "FREE " + " " + Left(U_Name(), 20) + " " + Left("N/A", 15)
Gosub LABEL129
Return
:LABEL023
TSTRING011(1) = ""
BOOLEAN031 = 0
If (BOOLEAN030) Then
STRING042 = PPEPath() + "nuke.cmt"
ElseIf (BOOLEAN016) Then
STRING042 = PPEPath() + "award.cmt"
ElseIf (BOOLEAN021) Then
STRING042 = PPEPath() + "comment.cmt"
Endif
INT017 = ReadLine(STRING042, 1)
:LABEL024
DefColor
Cls
DispFile PPEPath() + "graph\cmthdr", 1 + 4
FreshLine
STRING021 = ReadLine(STRING015, 5)
For INTEGER012 = 1 To INT017
PrintLn ReplaceStr(ReplaceStr(STRING021, "@NR@", String(INTEGER012)), "@CMT@", ReadLine(STRING042, INTEGER012 + 1))
Next
PrintLn ReplaceStr(ReplaceStr(STRING021, "@NR@", Left(String(INT017 + 1), 2)), "@CMT@", ReadLine(STRING018, 19))
DispFile PPEPath() + "graph\cmtftr", 1 + 4
FreshLine
STRING036 = ""
InputStr ReplaceStr(ReadLine(STRING018, 20), "%FILE%", Upper(STRING037)) + "_", STRING036, 1, 15, "0123456789 ", 8
FreshLine
Newline
STRING036 = LTrim(STRING036, " ")
Select Case (STRING036)
Case ""
BOOLEAN031 = 1
Return
Case String(INT017 + 1)
STRING036 = ""
Gosub LABEL025
If (BOOLEAN023) Then
PrintLn ReadLine(STRING018, 21)
Delay 30
Goto LABEL024
Endif
Case Else
Tokenize STRING036
If (TokCount() > 5) Then
PrintLn "@X0CToo many comments selected, MAX 5"
Delay 30
Goto LABEL024
Endif
STRING021 = GetToken()
INTEGER001 = 1
INTEGER011 = 0
While (STRING021 <> "") Do
If ((STRING021 > INT017) || (STRING036 < 1)) Then
PrintLn "@X0CInvalid comment entered!!"
Delay 30
Goto LABEL024
Else
TSTRING011(INTEGER001) = ReadLine(STRING042, STRING021 + 1)
Endif
Inc INTEGER001
STRING021 = GetToken()
EndWhile
INTEGER011 = INTEGER001 - 1
End Select
Return
:LABEL025
TSTRING011(1) = ""
BOOLEAN023 = 0
FreshLine
DispFile PPEPath() + "graph\owncmt", 0
For INTEGER012 = 1 To 5
STRING036 = ""
Print ReplaceStr(ReadLine(STRING018, 108), "%NR%", String(INTEGER012))
InputStr "_", STRING036, 1, 40, Mask_Pwd(), 2
If ((STRING036 == "") && (INTEGER012 == 1)) Then
BOOLEAN023 = 1
Return
ElseIf (STRING036 == "") Then
INTEGER011 = INTEGER012 - 1
Return
Else
TSTRING011(INTEGER012) = STRING036
Endif
FreshLine
Next
Return
:LABEL026
FClose -1
BOOLEAN034 = 1
PrintLn "@X07Writing description message"
If (BOOLEAN016) Then
FOpen 3, PPEPath() + "graph\award.msg", 0, 0
STRING044 = ReadLine(STRING018, 33)
ElseIf (BOOLEAN018) Then
FOpen 3, PPEPath() + "graph\free.msg", 0, 0
STRING044 = ReadLine(STRING018, 105)
ElseIf (BOOLEAN021) Then
FOpen 3, PPEPath() + "graph\comment.msg", 0, 0
STRING044 = ReadLine(STRING018, 106)
Else
FOpen 3, PPEPath() + "graph\nuke.msg", 0, 0
STRING044 = ReadLine(STRING018, 107)
Endif
FCreate 1, PPEPath() + "work\nkname", 1, 0
INTEGER001 = 1
If (BOOLEAN008) Then
Tokenize ReadLine(PPEPath() + "work\tbbyte", 1)
STRING021 = GetToken()
STRING021 = GetToken()
Endif
STRING043 = ""
FGet 3, STRING043
:LABEL027
If (BOOLEAN009) Goto LABEL028
For INTEGER012 = 1 To INTEGER011
If (BOOLEAN034) Then
FPutLn 1, " " + STRING044 + TSTRING011(INTEGER012)
BOOLEAN034 = 0
Continue
Endif
FPutLn 1, Space(31) + "|" + " " + STRING044 + TSTRING011(INTEGER012)
Next
:LABEL028
While (!Ferr(3) && (STRING043 <> "")) Do
STRING043 = ReplaceStr(STRING043, "@NUKER@", Mixed(U_Name()))
STRING043 = ReplaceStr(STRING043, "@NALIAS@", Mixed(U_Alias))
If (BOOLEAN008) Then
STRING043 = ReplaceStr(STRING043, "@BNUKED@", String(STRING021))
Else
STRING043 = ReplaceStr(STRING043, "@BNUKED@", String(INTEGER006))
Endif
If (INTEGER005 == 0) Then
STRING043 = ReplaceStr(STRING043, "@FACTOR@", "N/A")
Else
STRING043 = ReplaceStr(STRING043, "@FACTOR@", String(INTEGER005))
Endif
If (BOOLEAN034) Then
FPutLn 1, " " + STRING043
BOOLEAN034 = 0
Else
FPutLn 1, Space(31) + "|" + " " + STRING043
Endif
FGet 3, STRING043
EndWhile
If (BOOLEAN009) Then
For INTEGER012 = 1 To INTEGER011
If (BOOLEAN034) Then
FPutLn 1, " " + STRING044 + TSTRING011(INTEGER012)
BOOLEAN034 = 0
Continue
Endif
FPutLn 1, Space(31) + "|" + " " + STRING044 + TSTRING011(INTEGER012)
Next
Endif
If (BOOLEAN030 && !BOOLEAN010) Goto LABEL029
FPut 1, Space(31) + "|"
FPutLn 1, Mid(TSTRING012(1), 33, Len(TSTRING012(1)) - 32)
For INTEGER012 = 2 To INTEGER007
FPutLn 1, TSTRING012(INTEGER012)
Next
:LABEL029
If (BOOLEAN008) Then
FPutLn 1, "/EOFDESC"
Frewind 3
FGet 3, STRING043
BOOLEAN034 = 1
Inc INTEGER001
STRING021 = ReadLine(PPEPath() + "work\tbbyte", INTEGER001)
If (STRING021 <> "") Then
Tokenize STRING021
STRING021 = GetToken()
STRING021 = GetToken()
Goto LABEL027
Endif
Endif
FClose 1
FClose 3
PrintLn "@X07Description message written"
Return
:LABEL030
DispFile PPEPath() + "graph\menu", 1 + 4
Tokenize PPEPath() + "lb.cfg" + " " + String(1)
FClose -1
BOOLEAN008 = 0
BOOLEAN006 = 0
Gosub LABEL046
Select Case (INTEGER014)
Case 1
DefColor
Cls
Gosub LABEL006
BOOLEAN011 = 0
BOOLEAN031 = 0
Case 2
DefColor
Cls
BOOLEAN008 = 1
Gosub LABEL006
BOOLEAN011 = 0
BOOLEAN031 = 0
Case 3
DefColor
Cls
BOOLEAN008 = 1
BOOLEAN006 = 1
Gosub LABEL006
BOOLEAN011 = 0
BOOLEAN031 = 0
Case 4
Gosub LABEL073
Case 5
Gosub LABEL074
Case 6
Gosub LABEL075
Case 7
Gosub LABEL104
Case 8
Gosub LABEL105
Case 9
Call PPEPath() + "HELP\HELP.PPE"
Case 10
End
BOOLEAN008 = 0
End Select
Goto LABEL030
Return
AnsiPos 1, 23
STRING036 = ""
InputStr "@X07Please enter file to nuke: ", STRING036, 1, 12, Mask_Pwd(), 8
AnsiPos 1, 23
ClrEol
FreshLine
If (STRING036 == "") Then
End
Endif
STRING037 = STRING036
Return
:LABEL031
STRING039 = ReadLine(PCBDat(), 31) + ".@@@"
FOpen 1, STRING039, 0, 0
FRead 1, INT016, 2
FSeek 1, CurConf() * INT016 + 2 + 156, 0
FRead 1, STRING040, 29
FRead 1, STRING033, 26
STRING009 = STRING040
STRING010 = STRING033
FreshLine
FClose 1
Return
:LABEL032
FreshLine
BOOLEAN033 = 0
Newline
If (BOOLEAN006) Then
Print ReplaceStr(ReadLine(STRING018, 1), "%FILE%", Upper(STRING002))
Else
Print ReplaceStr(ReadLine(STRING018, 1), "%FILE%", Upper(STRING037))
Endif
If (OnLocal()) SaveScrn
If (BOOLEAN006) Then
Shell 0, BOOLEAN032, PPEPath() + "findnuke.exe", Upper(STRING002) + " " + Upper(STRING040) + " " + PPEPath() + " " + "WILD"
ElseIf (BOOLEAN008) Then
Shell 0, BOOLEAN032, PPEPath() + "findnuke.exe", Upper(STRING037) + " " + Upper(STRING040) + " " + PPEPath() + " " + "YES"
Else
Shell 0, BOOLEAN032, PPEPath() + "findnuke.exe", Upper(STRING037) + " " + Upper(STRING040) + " " + PPEPath() + " " + "NO"
Endif
If (OnLocal()) RestScrn
If (BOOLEAN032) Then
PrintLn ReadLine(STRING018, 44)
If (BOOLEAN006) Then
PrintLn "@X0CNo files matching your wildcard entry were found"
STRING002 = ""
InputStr "@X07Enter wildcard (enter=abort)@X0C: _", STRING002, 1, 12, Mask_Pwd(), 8
If (STRING002 == "") Return
Goto LABEL032
Goto LABEL033
Endif
If (BOOLEAN008) Then
PrintLn "@X0CCouldn't find a file in the turbo batch entry.."
PrintLn "@X0CPlease make sure the files are sequentially tagged."
PrintLn "@X0Cand all in the same DIR file!!!"
Wait
Endif
:LABEL033
Return
Endif
PrintLn "@X0CFOUND!"
If (BOOLEAN008) Then
Copy PPEPath() + "work\nkname", PPEPath() + "work\replst"
Endif
If (BOOLEAN006) Then
DefColor
Cls
StartDisp 2
DispFile PPEPath() + "graph\turbomsg", 0
FreshLine
PrintLn "@X0DMatching files found:"
INTEGER012 = 1
STRING022 = PPEPath() + "work\tblst"
STRING021 = ReadLine(STRING022, INTEGER012)
INTEGER001 = 1
Print "@X07"
While (STRING021 <> "") Do
Print Left(STRING021, 13)
If (INTEGER001 % 5 == 0) Newline
Inc INTEGER001
Inc INTEGER012
STRING021 = ReadLine(STRING022, INTEGER012)
If (Abort()) Break
EndWhile
If (Abort()) ResetDisp
FClose -1
StartDisp 1
FreshLine
Print "@X0DWildCard CMD@X05? @X07"
Gosub LABEL069
FreshLine
If (INT008 == 1) Then
Goto LABEL034
Endif
Select Case (INT008)
Case 2
Goto LABEL144
Wait
Return
Case 3
STRING002 = ""
InputStr "@X07Enter wildcard (Enter=abort)@X0C: _", STRING002, 1, 12, Mask_Pwd(), 8
If (STRING002 == "") Return
Goto LABEL032
Case 4
Return
End Select
:LABEL034
Else
If (BOOLEAN008) Then
Wait
Endif
Endif
INTEGER015 = ReadLine(PPEPath() + "work\nkname", 1)
INTEGER016 = ReadLine(PPEPath() + "work\nkname", 2)
BOOLEAN033 = 1
Return
:LABEL035
BOOLEAN033 = 0
FreshLine
Print ReplaceStr(ReadLine(STRING018, 34), "%UPLOAD%", Upper(STRING040))
If (OnLocal()) SaveScrn
If (BOOLEAN008) Then
Shell 0, BOOLEAN032, PPEPath() + "replace.exe", String(INTEGER015) + " " + Upper(STRING040) + " " + PPEPath() + " " + String(INTEGER016) + " " + "YES"
Else
Shell 0, BOOLEAN032, PPEPath() + "replace.exe", String(INTEGER015) + " " + Upper(STRING040) + " " + PPEPath() + " " + String(INTEGER016) + " " + "NO"
Endif
If (OnLocal()) RestScrn
If (BOOLEAN032) Then
PrintLn ReplaceStr(ReplaceStr(ReadLine(STRING018, 38), "%UPLOAD%", Upper(STRING040)), "%FILE%", Upper(STRING037))
Wait
Return
Endif
PrintLn ReadLine(STRING018, 26)
:LABEL036
Print ReplaceStr(ReadLine(STRING018, 35), "%UPLOAD%", Upper(STRING040))
FClose -1
Delete STRING040
If (Exist(STRING040)) Then
FreshLine
PrintLn ReplaceStr(ReadLine(STRING018, 39), "%UPLOAD%", Upper(STRING040))
Print ReadLine(STRING018, 40)
Gosub LABEL068
FreshLine
If (INT008 == 1) Then
Goto LABEL036
Goto LABEL037
Endif
Return
Endif
:LABEL037
PrintLn ReadLine(STRING018, 26)
If (BOOLEAN027) Then
:LABEL038
Print ReplaceStr(ReadLine(STRING018, 36), "%UPLOAD%", Upper(STRING040))
Copy Upper(STRING040) + ".NUK", Upper(STRING040)
If (!Exist(STRING040) || (FileInf(STRING040, 4) <> FileInf(STRING040 + ".nuk", 4))) Then
FreshLine
PrintLn ReadLine(STRING018, 41)
Print ReadLine(STRING018, 40)
Gosub LABEL068
FreshLine
If (INT008 == 1) Then
Goto LABEL038
Goto LABEL039
Endif
Return
:LABEL039
Return
Endif
PrintLn ReadLine(STRING018, 26)
Else
:LABEL040
Print ReplaceStr(ReadLine(STRING018, 37), "%UPLOAD%", Upper(STRING040))
Rename Upper(STRING040) + ".nuk", Upper(STRING040)
If (Exist(STRING040)) Goto LABEL041
FreshLine
PrintLn ReadLine(STRING018, 42)
Print ReadLine(STRING018, 40)
Gosub LABEL068
FreshLine
If (INT008 == 1) Then
Goto LABEL040
Else
Return
Endif
Return
:LABEL041
PrintLn ReadLine(STRING018, 26)
Endif
If (BOOLEAN008) Then
If (BOOLEAN006) Goto LABEL042
FClose -1
FreshLine
Print ReadLine(STRING018, 120)
Delete STRING032
PrintLn ReadLine(STRING018, 26)
Return
:LABEL042
Else
Gosub LABEL043
Endif
Return
:LABEL043
FreshLine
Print ReplaceStr(ReadLine(STRING018, 43), "%FILE%", Upper(STRING037))
FClose -1
FOpen 1, STRING032, 0, 0
FCreate 2, PPEPath() + "bctp" + String(PcbNode()), 1, 0
:LABEL044
If (Ferr(1)) Goto LABEL045
FGet 1, STRING021
Tokenize STRING021
If (Upper(((GetToken() <> Upper(STRING037)) && (STRING021 <> "")))) Then
FPutLn 2, STRING021
Endif
Goto LABEL044
:LABEL045
If (INTEGER013 >= 2) Dec INTEGER013
FClose 1
FClose 2
Delete STRING032
Rename PPEPath() + "bctp" + String(PcbNode()), STRING032
Print ReadLine(STRING018, 26)
Return
STRING049 = PPEPath() + "POS" + String(PcbNode())
Goto LABEL053
:LABEL046
STRING046 = PPEPath()
STRING045 = GetToken()
STRING056 = GetToken()
If (STRING056 <> "") Then
INTEGER018 = STRING056
Else
INTEGER018 = 1
Endif
If (STRING045 == "") Then
PrintLn "No configuration parameter given"
Wait
End
Endif
If (Exist(STRING045)) Goto LABEL047
If (Exist(STRING046 + STRING045)) Then
STRING045 = STRING046 + STRING045
Else
PrintLn "Cannot find configuration ", STRING045
Wait
End
Endif
:LABEL047
If (AnsiOn()) Goto LABEL048
PrintLn
PrintLn "No ansi capability, exiting lightbar kit"
End
:LABEL048
Tokenize ReadLine(STRING045, 1)
INTEGER019 = GetToken()
STRING055 = GetToken()
BOOLEAN037 = 0
BOOLEAN036 = 0
If (INTEGER019 > 15) Then
Redim TSTRING047, INTEGER019
Redim TSTRING048, INTEGER019
Endif
INTEGER014 = 1
STRING052 = Chr(13)
STRING053 = Chr(27)
BOOLEAN035 = IsNonStop()
StartDisp 1
INTEGER014 = INTEGER018
INTEGER022 = INTEGER019
DefColor
DefColor
INTEGER023 = 3
For INTEGER012 = 1 To INTEGER019
Tokenize ReadLine(STRING045, INTEGER012 + 1)
INTEGER020 = GetToken()
STRING054 = GetToken()
If (STRING054 == "C") Then
INTEGER021 = GetY()
Else
INTEGER021 = STRING054
Endif
INTEGER017 = GetToken()
TSTRING047(INTEGER012) = ScrText(INTEGER020, INTEGER021, INTEGER017, 1)
TSTRING048(INTEGER012) = GetToken()
INTEGER023 = INTEGER023 + 3
Next
INTEGER026 = 1
INTEGER025 = 1 + INTEGER019 - 1
Gosub LABEL052
Print STRING055, StripAtx(TSTRING047(INTEGER014))
:LABEL049
STRING050 = Inkey()
Select Case (STRING050)
Case "UP", "LEFT", ","
Gosub LABEL052
Print TSTRING047(INTEGER014)
If (INTEGER014 == 1) Then
INTEGER014 = INTEGER022
Else
INTEGER014 = INTEGER014 - 1
Endif
Gosub LABEL052
Print STRING055, StripAtx(TSTRING047(INTEGER014))
Goto LABEL049
Case "DOWN", "RIGHT", "."
Gosub LABEL052
Print TSTRING047(INTEGER014)
If (INTEGER014 == INTEGER022) Then
INTEGER014 = 1
Else
INTEGER014 = INTEGER014 + 1
Endif
Gosub LABEL052
Print STRING055, StripAtx(TSTRING047(INTEGER014))
Goto LABEL049
Case "?"
Tokenize ReadLine(STRING045, INTEGER014 + 1)
INTEGER020 = GetX()
INTEGER021 = GetY()
STRING054 = GetToken()
STRING054 = GetToken()
STRING054 = GetToken()
STRING054 = GetToken()
STRING054 = ""
STRING054 = GetToken()
If (STRING054 == "NOHLP") Goto LABEL049
If (STRING054 <> "") Then
STRING051 = STRING054
If (Exist(STRING051)) Then
Goto LABEL050
Goto LABEL050
Endif
If (Exist(HelpPath() + "hlp" + STRING051)) Then
STRING051 = HelpPath() + "hlp" + STRING051
Goto LABEL050
Goto LABEL050
Endif
If (Exist(STRING046 + STRING051)) Then
STRING051 = STRING046 + STRING051
Goto LABEL050
Endif
Endif
:LABEL050
AnsiPos 1, 23
SaveScrn
StartDisp 2
DefColor
Cls
DispFile STRING051, 1 + 4
Wait
StartDisp 1
RestScrn
AnsiPos INTEGER020, INTEGER021
Goto LABEL049
Case STRING052
INTEGER012 = INTEGER014
INTEGER020 = GetX()
INTEGER021 = GetY()
Gosub LABEL052
Print TSTRING047(INTEGER014)
Goto LABEL051
Return
Goto LABEL049
Case "HOME"
Gosub LABEL052
Print TSTRING047(INTEGER014)
INTEGER014 = INTEGER026
Gosub LABEL052
Print STRING055, StripAtx(TSTRING047(INTEGER014))
Goto LABEL049
Case "END"
Gosub LABEL052
Print TSTRING047(INTEGER014)
INTEGER014 = INTEGER025
Gosub LABEL052
Print STRING055, StripAtx(TSTRING047(INTEGER014))
Goto LABEL049
Case STRING053
If (!BOOLEAN036) Goto LABEL049
DefColor
If (BOOLEAN037) Then
DefColor
Cls
Endif
If (!BOOLEAN035) StartDisp 2
End
Case ""
INTEGER023 = (INTEGER014 + 1) * 3
INTEGER024 = INTEGER023 - 3
For INTEGER012 = 1 To INTEGER022
If (Upper(TSTRING048(INTEGER012)) == Upper(STRING050)) Then
Gosub LABEL052
Print TSTRING047(INTEGER014)
INTEGER014 = INTEGER012
Gosub LABEL052
Print STRING055, StripAtx(TSTRING047(INTEGER014))
Goto LABEL051
Endif
Next
Goto LABEL049
For INTEGER012 = INTEGER014 To INTEGER022
If (Upper(Left(StripAtx(TSTRING047(INTEGER012)), 1)) == Upper(STRING050)) Then
Gosub LABEL052
Print TSTRING047(INTEGER014)
INTEGER014 = INTEGER012
Goto LABEL051
Endif
INTEGER023 = INTEGER023 + 3
Next
INTEGER023 = INTEGER026 * 3
For INTEGER012 = 1 To INTEGER014 - 1
If (Upper(Left(StripAtx(TSTRING047(INTEGER012)), 1)) == Upper(STRING050)) Then
Gosub LABEL052
Print TSTRING047(INTEGER014)
INTEGER014 = INTEGER012
Goto LABEL051
Endif
INTEGER023 = INTEGER023 + 3
Next
Goto LABEL049
End Select
Goto LABEL049
:LABEL051
DefColor
Return
Return
:LABEL052
Tokenize ReadLine(STRING045, INTEGER014 + 1)
INTEGER020 = GetToken()
STRING054 = GetToken()
If (STRING054 == "C") Then
INTEGER021 = GetY()
Else
INTEGER021 = STRING054
Endif
AnsiPos INTEGER020, INTEGER021
Return
:LABEL053
DispFile PPEPath() + "graph\menu", 0
Tokenize PPEPath() + "lb3.cfg"
Gosub LABEL046
:LABEL054
If (BOOLEAN006) Then
FreshLine
STRING036 = "U"
INT002 = 0
STRING036 = "U"
InputStr "@X07Enter wildcard Dir (@X0C1-@NUMDIR@, U@X07)", STRING036, 7, Len(String(INT001)), Mask_Num() + "U", 8 + 2
FreshLine
If (STRING036 == "") STRING036 = "U"
If ((ToInteger(STRING036) >= 1) && ToInteger((STRING036 <= INT001))) Then
INT018 = ToInteger(STRING036)
Goto LABEL055
Endif
If (STRING036 == "U") Then
INT018 = INT001
Endif
:LABEL055
Gosub LABEL059
STRING038 = STRING033 + "\" + STRING037
Return
Endif
If (BOOLEAN011) Goto LABEL057
BOOLEAN011 = 1
If (Exist(STRING032)) Goto LABEL056
FreshLine
PrintLn ReadLine(STRING018, 45)
Wait
BOOLEAN031 = 1
BOOLEAN011 = 0
Return
:LABEL056
INTEGER013 = 2
Tokenize ReadLine(STRING032, INTEGER013)
STRING037 = GetToken()
INT018 = GetToken()
If (STRING037 == "") Then
FreshLine
PrintLn ReadLine(STRING018, 45)
Wait
BOOLEAN031 = 1
BOOLEAN011 = 0
Return
Endif
Gosub LABEL059
STRING038 = STRING033 + "\" + STRING037
If (BOOLEAN008) Then
FreshLine
DispFile PPEPath() + "graph\turbomsg", 0
Gosub LABEL058
Endif
Return
:LABEL057
Inc INTEGER013
Tokenize ReadLine(STRING032, INTEGER013)
STRING037 = GetToken()
If (STRING037 == "") Then
BOOLEAN031 = 1
BOOLEAN011 = 0
Return
Endif
INT018 = GetToken()
Gosub LABEL059
If (BOOLEAN008) Then
Gosub LABEL058
Endif
STRING038 = STRING033 + "\" + STRING037
Return
Return
:LABEL058
PrintLn "@X07Writing turbo list"
INT019 = INTEGER013 + 1
FCreate 1, PPEPath() + "work\tblst", 1, 0
FPutLn 1, STRING037
STRING057 = ReadLine(STRING032, INT019)
While (STRING057 <> "") Do
Tokenize STRING057
FPutLn 1, GetToken()
Inc INT019
STRING057 = ReadLine(STRING032, INT019)
EndWhile
FClose 1
Return
:LABEL059
If (INT018 == INT001) Then
STRING040 = STRING009
STRING033 = STRING010
Return
Endif
If (INT002 == INT018) Return
FOpen 1, STRING039, 0, 0
FSeek 1, CurConf() * INT016 + 2 + 482, 0
FRead 1, STRING058, 33
FClose 1
If (Exist(STRING058)) Goto LABEL060
STRING040 = STRING009
STRING033 = STRING010
Return
:LABEL060
INT002 = INT018
FOpen 1, STRING058, 0, 0
FSeek 1, 95 * (INT018 - 1), 0
If (Ferr(1)) Then
STRING040 = STRING009
STRING033 = STRING010
Else
FRead 1, STRING040, 30
FRead 1, STRING033, 30
STRING040 = RTrim(STRING040, " ")
STRING033 = RTrim(STRING033, " ")
Endif
FClose 1
Return
:LABEL061
BOOLEAN014 = 0
BOOLEAN016 = 0
BOOLEAN030 = 0
BOOLEAN018 = 0
BOOLEAN021 = 0
:LABEL062
FreshLine
Print ReplaceStr(ReadLine(STRING018, 3), "%FILE%", Upper(STRING037))
Gosub LABEL072
Select Case (INT008)
Case 1
BOOLEAN030 = 1
Case 2
BOOLEAN016 = 1
Case 3
If (BOOLEAN008) Then
FreshLine
PrintLn ReadLine(STRING018, 118)
Goto LABEL062
Endif
BOOLEAN014 = 1
Gosub LABEL043
Case 4
If (BOOLEAN008) Then
FreshLine
PrintLn ReadLine(STRING018, 118)
Goto LABEL062
Endif
BOOLEAN030 = 0
Case 5
Gosub LABEL063
Goto LABEL061
BOOLEAN030 = 0
Case 6
BOOLEAN018 = 1
Case 7
BOOLEAN021 = 1
Case 8
BOOLEAN011 = 0
BOOLEAN031 = 1
End Select
FreshLine
Return
:LABEL063
For INTEGER012 = 1 To INTEGER007
TSTRING059(INTEGER012) = TSTRING012(INTEGER012)
Next
INTEGER027 = INTEGER007
INT022 = 1
BOOLEAN020 = 0
:LABEL064
Gosub LABEL138
FreshLine
Newline
:LABEL065
Backup 80
ClrEol
Gosub LABEL067
Select Case (INT008)
Case 1
Gosub LABEL135
Case 2
Gosub LABEL136
Case 3
Gosub LABEL137
Case 4
If (BOOLEAN020) Then
FreshLine
Print ReadLine(STRING018, 96)
Gosub LABEL068
If (INT008 == 1) Then
INTEGER007 = INTEGER027
For INTEGER012 = 1 To INTEGER027
TSTRING012(INTEGER012) = TSTRING059(INTEGER012)
Next
FreshLine
PrintLn ReadLine(STRING018, 98)
Endif
FreshLine
Endif
Return
Case 5
Select Case (INT022)
Case 1
If (INTEGER007 > 20) Then
Inc INT022
Goto LABEL064
Else
Backup 80
ClrEol
Print ReadLine(STRING018, 97)
Delay 25
Endif
Case 2
If (INTEGER007 > 40) Then
Inc INT022
Goto LABEL064
Else
Backup 80
ClrEol
Print ReadLine(STRING018, 97)
Delay 25
Endif
Case Else
Backup 80
ClrEol
Print ReadLine(STRING018, 97)
Delay 25
End Select
Case 6
If (INT022 > 1) Then
Dec INT022
Goto LABEL064
Goto LABEL066
Endif
Backup 80
ClrEol
Print ReadLine(STRING018, 99)
Delay 25
End Select
:LABEL066
Goto LABEL065
Return
:LABEL067
INT006 = 1
INT007 = 6
TSTRING034(1) = ReadLine(STRING018, 82)
TSTRING034(2) = ReadLine(STRING018, 83)
TSTRING034(3) = ReadLine(STRING018, 84)
TSTRING034(4) = ReadLine(STRING018, 85)
TSTRING034(5) = ReadLine(STRING018, 86)
TSTRING034(6) = ReadLine(STRING018, 87)
Goto LABEL001
:LABEL068
INT006 = 1
INT007 = 2
TSTRING034(1) = ReadLine(STRING018, 4)
TSTRING034(2) = ReadLine(STRING018, 5)
Gosub LABEL001
Return
:LABEL069
INT006 = 1
INT007 = 4
TSTRING034(1) = "@X0FT@X07urboNuke"
TSTRING034(2) = "@X0FA@X07ddToBatch"
TSTRING034(3) = "@X0FN@X07ewWildcard"
TSTRING034(4) = "@X0FQ@X07uit"
Gosub LABEL001
Return
INT006 = 1
INT007 = 3
INT009 = INT003
TSTRING034(1) = ReadLine(STRING018, 5)
TSTRING034(2) = ReadLine(STRING018, 4)
TSTRING034(3) = ReadLine(STRING018, 117)
Gosub LABEL001
INT009 = 1
Return
:LABEL070
INT006 = 1
INT007 = 3
TSTRING034(1) = ReadLine(STRING018, 102)
TSTRING034(2) = ReadLine(STRING018, 104)
TSTRING034(3) = ReadLine(STRING018, 103)
Goto LABEL001
:LABEL071
INT006 = 1
INT007 = 4
TSTRING034(1) = ReadLine(STRING018, 101)
TSTRING034(2) = ReadLine(STRING018, 102)
TSTRING034(3) = ReadLine(STRING018, 103)
TSTRING034(4) = ReadLine(STRING018, 104)
Goto LABEL001
:LABEL072
INT006 = 1
INT007 = 8
TSTRING034(1) = ReadLine(STRING018, 10)
TSTRING034(2) = ReadLine(STRING018, 11)
TSTRING034(3) = ReadLine(STRING018, 12)
TSTRING034(4) = ReadLine(STRING018, 13)
TSTRING034(8) = ReadLine(STRING018, 14)
TSTRING034(5) = ReadLine(STRING018, 79)
TSTRING034(6) = ReadLine(STRING018, 80)
TSTRING034(7) = ReadLine(STRING018, 81)
BOOLEAN022 = 1
Gosub LABEL001
BOOLEAN022 = 0
Return
:LABEL073
DefColor
Cls
Dir "Z"
Return
:LABEL074
DefColor
Cls
Dir "L"
Return
:LABEL075
DefColor
Cls
Dir "N U"
Return
:LABEL076
StartDisp 2
FreshLine
DispFile PPEPath() + "graph\deschdr", 1 + 4
FClose -1
FOpen 1, STRING040, 0, 0
If (Ferr(1)) Then
PrintLn "Breaking off, ferr failed 2, report to sysop please"
Wait
Endif
FSeek 1, INTEGER015 - 32, 0
If (Ferr(1)) Then
Endif
FGet 1, TSTRING012(1)
If (Ferr(1)) Then
PrintLn "Breaking off, ferr failed 1, report to sysop please"
Wait
Endif
Print TSTRING030(0), Left(TSTRING012(1), 12)
Print TSTRING030(1), Mid(TSTRING012(1), 13, 19)
PrintLn TSTRING030(2), Mid(TSTRING012(1), 33, Len(TSTRING012(1)) - 32)
INTEGER012 = 2
While (1) Do
FGet 1, TSTRING012(INTEGER012)
If (Ferr(1)) Then
Break
Endif
If ((Left(TSTRING012(INTEGER012), 1) <> " ") && (Left(TSTRING012(INTEGER012), 1) <> " ")) Break
Print Space(31)
PrintLn TSTRING030(3), Mid(TSTRING012(INTEGER012), 33, Len(TSTRING012(INTEGER012)) - 32)
Inc INTEGER012
EndWhile
If (INTEGER012 > 0) Then
INTEGER007 = INTEGER012 - 1
Else
INTEGER007 = 0
Endif
If (Abort()) Then
ResetDisp
Endif
StartDisp 1
INT023 = INTEGER012 - 1
FClose 1
Return
:LABEL077
STRING028 = ""
BOOLEAN015 = 0
Select Case (STRING027)
Case "NOSTR"
For INTEGER012 = INT023 To 1 Step -1
STRING021 = Mid(TSTRING012(INTEGER012), INT004, INT005)
STRING021 = RTrim(STRING021, " ")
If (STRING021 <> "") Then
STRING028 = Mid(TSTRING012(INTEGER012), INT004, INT005)
Break
Endif
Next
Case "B"
For INTEGER012 = INT023 To 1 Step -1
If (InStr(Upper(TSTRING012(INTEGER012)), Upper(STRING026))) Then
STRING028 = Mid(TSTRING012(INTEGER012), INT004, INT005)
Break
Endif
Next
Case "T"
For INTEGER012 = 1 To INT023
If (InStr(Upper(TSTRING012(INTEGER012)), Upper(STRING026))) Then
STRING028 = Mid(TSTRING012(INTEGER012), INT004, INT005)
Break
Endif
Next
End Select
FreshLine
If (STRING028 == "") Then
:LABEL078
STRING036 = ""
FreshLine
Print "@X07No name found, enter manual name? "
Gosub LABEL070
If (INT008 == 1) Then
:LABEL079
FreshLine
Print ReadLine(STRING018, 46)
InputStr "_", STRING036, 1, 30, Mask_Pwd(), 8
FreshLine
If (STRING036 == "") Then
Goto LABEL078
Goto LABEL080
Endif
STRING029 = Upper(STRING036)
INTEGER004 = U_RecNum(STRING029)
If (INTEGER004 == -1) Then
FreshLine
PrintLn ReadLine(STRING018, 47)
Goto LABEL079
Endif
PrintLn ReplaceStr(ReadLine(STRING018, 48), "%NAME%", Upper(STRING029))
BOOLEAN015 = 1
Return
:LABEL080
Goto LABEL081
Endif
If (INT008 == 2) Then
BOOLEAN015 = 0
Return
Goto LABEL081
Endif
If (INT008 == 3) Then
Gosub LABEL088
If (BOOLEAN024) Then
STRING029 = ReadLine(PPEPath() + "work\nkname", 1)
PrintLn "@X07User name (@X0C", Upper(STRING029), "@X07) found in DOWNLOAD.TXT"
INTEGER004 = U_RecNum(STRING029)
If (INTEGER004 == -1) Then
FreshLine
Goto LABEL078
Endif
BOOLEAN015 = 1
Return
Goto LABEL081
Endif
Goto LABEL078
Endif
Endif
:LABEL081
STRING028 = LTrim(STRING028, " ")
STRING028 = Upper(RTrim(STRING028, " "))
If (BOOLEAN026) Then
BOOLEAN038 = 0
INTEGER012 = 2
STRING060 = ReadLine(STRING025, INTEGER012)
While (STRING060 <> "") Do
If (Upper(STRING060) == STRING028) Then
STRING029 = ReadLine(STRING025, INTEGER012 - 1)
BOOLEAN038 = 1
Break
Endif
Inc INTEGER012
Inc INTEGER012
STRING060 = ReadLine(STRING025, INTEGER012)
EndWhile
If (BOOLEAN038) Goto LABEL082
FreshLine
PrintLn ReplaceStr(ReadLine(STRING018, 51), "%NAME%", Upper(STRING028))
STRING029 = Upper(STRING028)
:LABEL082
Else
STRING029 = StripAtx(STRING028)
Endif
:LABEL083
FreshLine
Print ReplaceStr(ReadLine(STRING018, 2), "%NAME%", Upper(STRING029))
Gosub LABEL071
FreshLine
Select Case (INT008)
Case 4
BOOLEAN015 = 0
Return
Case 2
:LABEL084
STRING036 = ""
Print ReadLine(STRING018, 49)
InputStr "_", STRING036, 1, 30, Mask_Pwd(), 8
FreshLine
If (STRING036 == "") Then
Goto LABEL083
Else
STRING029 = Upper(STRING036)
INTEGER004 = U_RecNum(STRING029)
If (INTEGER004 == -1) Then
FreshLine
PrintLn ReadLine(STRING018, 47)
Goto LABEL084
Endif
PrintLn ReplaceStr(ReadLine(STRING018, 48), "%NAME%", Upper(STRING029))
BOOLEAN015 = 1
Return
Endif
Case 3
Gosub LABEL088
If (BOOLEAN024) Then
STRING029 = ReadLine(PPEPath() + "work\nkname", 1)
PrintLn "@X07User name (@X0C", Upper(STRING029), "@X07) found in DOWNLOAD.TXT"
Goto LABEL083
Goto LABEL085
Endif
BOOLEAN015 = 0
Goto LABEL083
End Select
:LABEL085
INTEGER004 = U_RecNum(Upper(STRING029))
If (INTEGER004 == -1) Then
FreshLine
PrintLn ReadLine(STRING018, 50)
Goto LABEL083
:LABEL086
FreshLine
STRING036 = ""
Print ReadLine(STRING018, 49)
InputStr "_", STRING036, 1, 30, Mask_Pwd(), 8
FreshLine
If (STRING036 == "") Then
BOOLEAN015 = 0
Return
Goto LABEL087
Endif
STRING029 = Upper(STRING036)
INTEGER004 = U_RecNum(STRING029)
If (INTEGER004 == -1) Then
FreshLine
PrintLn ReadLine(STRING018, 47)
Goto LABEL086
Endif
PrintLn ReplaceStr(ReadLine(STRING018, 48), "%NAME%", Upper(STRING029))
BOOLEAN015 = 1
Return
Endif
:LABEL087
BOOLEAN015 = 1
Return
:LABEL088
BOOLEAN024 = 0
FreshLine
PrintLn "@X07Searching download.txt for file (@X0C", Upper(STRING037), "@X07), please wait..."
If (OnLocal()) SaveScrn
Shell 0, BOOLEAN032, PPEPath() + "search.exe", Upper(STRING037) + " " + STRING008 + " " + PPEPath()
If (OnLocal()) RestScrn
If (BOOLEAN032) Then
PrintLn "Couldn't find file (@X0C" + Upper(STRING037) + "@X07) in DOWNLOAD.TXT"
Return
Endif
BOOLEAN024 = 1
Return
:LABEL089
FClose -1
FreshLine
If (Exist(STRING038)) Goto LABEL090
BOOLEAN013 = 1
Goto LABEL091
:LABEL090
BOOLEAN013 = 0
:LABEL091
FreshLine
Newline
DispFile PPEPath() + "graph\delmenu", 1 + 4
STRING036 = ""
InputStr ReadLine(STRING018, 22) + "_", STRING036, 1, 1, "12345", 8
FreshLine
If (STRING036 == "") Then
Goto LABEL091
Endif
FreshLine
Select Case (STRING036)
Case "1"
If (BOOLEAN013) Then
If (!BOOLEAN008) PrintLn ReplaceStr(ReadLine(STRING018, 23), "%FILE%", Upper(STRING038))
Endif
If (BOOLEAN008) Then
Gosub LABEL100
Return
Else
:LABEL092
Print ReplaceStr(ReplaceStr(ReadLine(STRING018, 24), "%FILE%", Upper(STRING038)), "%OFFLINE%", Upper(STRING031))
Rename Upper(STRING038), Upper(STRING031) + "\" + Upper(STRING037)
If (Exist(STRING038)) Then
Copy Upper(STRING038), Upper(STRING031) + "\" + Upper(STRING037)
Delete STRING038
Endif
If (Exist(STRING038)) Then
FreshLine
PrintLn ReplaceStr(ReplaceStr(ReadLine(STRING018, 25), "%FILE%", Upper(STRING038)), "%OFFLINE%", Upper(STRING031))
Gosub LABEL110
If (BOOLEAN012) Goto LABEL092
Return
Endif
Endif
PrintLn ReadLine(STRING018, 26)
Case "2"
If (BOOLEAN005) Goto LABEL093
FreshLine
PrintLn ReadLine(STRING018, 28)
Wait
Goto LABEL091
:LABEL093
If (BOOLEAN008) Then
Gosub LABEL102
Return
Else
:LABEL094
Delete STRING038
If (Exist(STRING038)) Then
FreshLine
PrintLn ReplaceStr(ReadLine(STRING018, 29), "%FILE%", Upper(STRING038))
Gosub LABEL110
If (BOOLEAN012) Goto LABEL094
Return
Endif
FreshLine
PrintLn ReplaceStr(ReadLine(STRING018, 30), "%FILE%", Upper(STRING038))
Endif
Case "3"
If (BOOLEAN013) Then
If (!BOOLEAN008) PrintLn ReplaceStr(ReadLine(STRING018, 23), "%FILE%", Upper(STRING038))
Endif
If (BOOLEAN008) Then
Gosub LABEL100
Gosub LABEL098
Return
Endif
:LABEL095
Print ReplaceStr(ReplaceStr(ReadLine(STRING018, 24), "%FILE%", Upper(STRING038)), "%OFFLINE%", Upper(STRING031))
Rename Upper(STRING038), Upper(STRING031) + "\" + Upper(STRING037)
If (Exist(STRING038)) Then
Copy Upper(STRING038), Upper(STRING031) + "\" + Upper(STRING037)
Delete STRING038
Endif
If (Exist(STRING038)) Then
FreshLine
Print ReplaceStr(ReplaceStr(ReadLine(STRING018, 25), "%FILE%", Upper(STRING038)), "%OFFLINE%", Upper(STRING031))
Gosub LABEL110
If (BOOLEAN012) Goto LABEL095
Return
Endif
PrintLn ReadLine(STRING018, 26)
:LABEL096
If (BOOLEAN025) Then
STRING020 = STRING019 + "\\" + STRING037
Else
STRING020 = STRING038
Endif
FCreate 1, STRING020, 1, 0
FClose 1
If (!Exist(STRING020) || (FileInf(STRING020, 4) <> 0)) Then
PrintLn ReplaceStr(ReadLine(STRING018, 31), "%FILE%", Upper(STRING020))
Gosub LABEL110
If (BOOLEAN012) Goto LABEL096
Return
Endif
PrintLn ReplaceStr(ReadLine(STRING018, 52), "%FILE%", Upper(STRING020))
Case "4"
If (BOOLEAN005) Goto LABEL097
FreshLine
PrintLn ReadLine(STRING018, 28)
Wait
Goto LABEL091
:LABEL097
If (BOOLEAN025) Then
STRING020 = STRING019 + "\\" + STRING037
Else
STRING020 = STRING038
Endif
FreshLine
FClose -1
If (BOOLEAN008) Then
Gosub LABEL098
Return
Endif
Delete STRING038
FCreate 1, STRING020, 1, 0
FClose 0
If (!Exist(STRING020) || (FileInf(STRING020, 4) <> 0)) Then
PrintLn ReplaceStr(ReadLine(STRING018, 31), "%FILE%", Upper(STRING020))
Gosub LABEL110
If (BOOLEAN012) Goto LABEL097
Return
Endif
PrintLn ReplaceStr(ReadLine(STRING018, 52), "%FILE%", Upper(STRING020))
Case "5"
FreshLine
PrintLn ReadLine(STRING018, 32)
End Select
Return
:LABEL098
FOpen 1, PPEPath() + "work\tblst", 0, 0
FGet 1, STRING021
While (STRING021 <> "") Do
If (BOOLEAN025) Then
STRING022 = STRING019 + "\" + STRING021
Else
STRING022 = STRING033 + "\" + STRING021
Endif
:LABEL099
FCreate 2, STRING022, 1, 0
FClose 2
If (!Exist(STRING022) || (FileInf(STRING022, 4) <> 0)) Then
PrintLn ReplaceStr(ReadLine(STRING018, 31), "%FILE%", Upper(STRING022))
Gosub LABEL110
If (BOOLEAN012) Goto LABEL099
FClose 1
Return
Endif
PrintLn ReplaceStr(ReadLine(STRING018, 52), "%FILE%", Upper(STRING022))
FGet 1, STRING021
EndWhile
FClose 1
Return
:LABEL100
FOpen 1, PPEPath() + "work\tblst", 0, 0
FGet 1, STRING021
While (STRING021 <> "") Do
STRING022 = STRING033 + STRING021
:LABEL101
FreshLine
Print ReplaceStr(ReplaceStr(ReadLine(STRING018, 24), "%FILE%", Upper(STRING022)), "%OFFLINE%", Upper(STRING031))
Rename Upper(STRING022), Upper(STRING031) + "\" + STRING021
If (Exist(STRING022)) Then
Copy Upper(STRING022), Upper(STRING031) + "\" + Upper(STRING021)
Delete Upper(STRING022)
Endif
If (Exist(STRING022)) Then
FreshLine
PrintLn ReplaceStr(ReplaceStr(ReadLine(STRING018, 25), "%FILE%", Upper(STRING022)), "%OFFLINE%", Upper(STRING031))
Gosub LABEL110
If (BOOLEAN012) Goto LABEL101
FClose 1
Return
Endif
PrintLn ReadLine(STRING018, 26)
FGet 1, STRING021
EndWhile
FClose 1
Return
:LABEL102
FOpen 1, PPEPath() + "work\tblst", 0, 0
FGet 1, STRING021
While (STRING021 <> "") Do
STRING022 = STRING033 + STRING021
:LABEL103
Delete STRING022
If (Exist(STRING022)) Then
FreshLine
PrintLn ReplaceStr(ReadLine(STRING018, 29), "%FILE%", Upper(STRING022))
Gosub LABEL110
If (BOOLEAN012) Goto LABEL103
Return
Endif
FreshLine
PrintLn ReplaceStr(ReadLine(STRING018, 30), "%FILE%", Upper(STRING022))
FGet 1, STRING021
EndWhile
FClose 1
Return
:LABEL104
DefColor
Cls
If (Exist(STRING032)) Then
Print ReadLine(STRING018, 53)
Gosub LABEL068
If (INT008 == 1) Then
FClose -1
FreshLine
Print ReadLine(STRING018, 54)
PrintLn ReadLine(STRING018, 26)
PrintLn
Wait
Delete Upper(STRING032)
Else
Return
Endif
Else
PrintLn ReadLine(STRING018, 55)
Wait
Endif
FreshLine
Return
:LABEL105
DefColor
Cls
PrintLn ReadLine(STRING018, 56)
INTEGER012 = 2
STRING021 = ReadLine(STRING032, INTEGER012)
Print "@X0B"
StartDisp 2
While (STRING021 <> "") Do
Tokenize STRING021
Print Left(GetToken(), 12), " "
STRING021 = ReadLine(STRING032, INTEGER012 + 2)
STRING021 = ReadLine(STRING032, INTEGER012 + 1)
If (STRING021 == "") Break
Tokenize STRING021
Print Left(GetToken(), 12), " "
STRING021 = ReadLine(STRING032, INTEGER012 + 2)
If (STRING021 == "") Break
Tokenize STRING021
Print Left(GetToken(), 12), " "
STRING021 = ReadLine(STRING032, INTEGER012 + 3)
If (STRING021 == "") Break
Tokenize STRING021
Print Left(GetToken(), 12), " "
STRING021 = ReadLine(STRING032, INTEGER012 + 4)
If (STRING021 == "") Break
Tokenize STRING021
Print Left(GetToken(), 12), " "
INTEGER012 = INTEGER012 + 5
STRING021 = ReadLine(STRING032, INTEGER012)
FreshLine
If (Abort()) Then
ResetDisp
Break
Endif
EndWhile
FreshLine
StartDisp 1
INT024 = INT001
:LABEL106
Backup 80
ClrEol
Print ReplaceStr(ReadLine(STRING018, 57), "%DIR%", INT024)
Gosub LABEL109
FClose -1
Select Case (INT008)
Case 1
STRING036 = ""
Backup 80
ClrEol
InputStr ReadLine(STRING018, 58), STRING036, 1, 12, Mask_File(), 8
If (STRING036 == "") Goto LABEL106
If (Exist(STRING032)) Goto LABEL107
FCreate 1, STRING032, 1, 0
FPutLn 1, Upper(U_Name())
FPutLn 1, STRING036 + " " + String(INT001)
FClose 1
Goto LABEL108
:LABEL107
FAppend 1, STRING032, 1, 0
FPutLn 1, STRING036 + " " + String(INT001)
FClose 1
:LABEL108
Case 2
STRING036 = ""
Backup 80
ClrEol
InputStr ReadLine(STRING018, 59), STRING036, 1, 12, Mask_File(), 8
If (STRING036 == "") Goto LABEL106
STRING037 = STRING036
Gosub LABEL043
Case 3
STRING036 = ""
Backup 80
ClrEol
INT002 = 0
STRING036 = "U"
InputStr "@X07Enter directory (@X0C1-@NUMDIR@, U@X07)", STRING036, 7, Len(String(INT001)), Mask_Num() + "U", 8 + 2
If ((ToInteger(STRING036) >= 1) && ToInteger((STRING036 <= INT001))) Then
INT024 = ToInteger(STRING036)
ElseIf (STRING036 == "U") Then
INT024 = INT001
Endif
Goto LABEL106
Case Else
Return
End Select
Goto LABEL105
:LABEL109
INT006 = 1
INT007 = 4
TSTRING034(1) = ReadLine(STRING018, 60)
TSTRING034(2) = ReadLine(STRING018, 61)
TSTRING034(3) = "@X0FC@X07hangeDir"
TSTRING034(4) = ReadLine(STRING018, 62)
Goto LABEL001
Return
:LABEL110
FreshLine
Print ReadLine(STRING018, 40)
Gosub LABEL068
FreshLine
If (INT008 == 1) Then
BOOLEAN012 = 1
Else
BOOLEAN012 = 0
Endif
Return
:LABEL111
BOOLEAN017 = 0
INTEGER005 = 0
BOOLEAN007 = 0
INTEGER006 = 0
If (BOOLEAN015) Goto LABEL112
PrintLn ReadLine(STRING018, 63)
BOOLEAN017 = 1
Return
:LABEL112
FreshLine
STRING016 = ""
Newline
Gosub LABEL023
If (BOOLEAN031) Then
BOOLEAN031 = 0
INTEGER006 = 0
BOOLEAN017 = 1
Return
Endif
FreshLine
If (TSTRING011(1) == "") Then
FreshLine
INTEGER006 = 0
BOOLEAN017 = 1
Return
Endif
FreshLine
INTEGER004 = U_RecNum(Upper(STRING029))
If (INTEGER004 == -1) Then
FreshLine
PrintLn ReadLine(STRING018, 69)
Wait
BOOLEAN017 = 1
INTEGER005 = 0
INTEGER006 = 0
Return
Endif
GetAltUser INTEGER004
INTEGER003 = FileInf(STRING038, 4)
Gosub LABEL130
FreshLine
BOOLEAN007 = 0
If (INTEGER003 <= 0) Then
PrintLn ReadLine(STRING018, 65)
STRING036 = ""
FreshLine
InputStr ReadLine(STRING018, 66) + "_", STRING036, 1, 9, Mask_Num(), 8
FreshLine
If (STRING036 == "") Then
INTEGER006 = 0
BOOLEAN017 = 1
GetUser
Return
Endif
INTEGER006 = ToInteger(STRING036)
BOOLEAN007 = 1
INTEGER005 = 0
Endif
If (BOOLEAN007) Goto LABEL113
STRING036 = ""
InputStr ReadLine(STRING018, 68) + "_", STRING036, 1, 3, Mask_Num(), 8
FreshLine
If ((STRING036 == "") || (ToInteger(STRING036) < 0)) Then
INTEGER006 = 0
BOOLEAN017 = 1
GetUser
Return
Endif
INTEGER005 = STRING036
INTEGER006 = ToInteger(STRING036) * INTEGER003
:LABEL113
INTEGER010 = U_Bul()
If (BOOLEAN008) Then
Gosub LABEL114
Endif
If (U_Bul() + INTEGER006 > 0) Then
STRING036 = String(U_Bul() + INTEGER006)
Gosub LABEL133
Endif
GetAltUser INTEGER004
If (INTEGER010 == U_Bul()) Then
PrintLn ReadLine(STRING018, 100)
Else
PrintLn ReplaceStr(ReadLine(STRING018, 70), "%SIZE%", String(INTEGER006))
PrintLn ReplaceStr(ReadLine(STRING018, 67), "%SIZE%", String(U_Bul()))
Endif
GetUser
FreshLine
Gosub LABEL123
Return
:LABEL114
INTEGER028 = INTEGER006
INTEGER001 = 1
STRING021 = ReadLine(PPEPath() + "work\tblst", INTEGER001)
FCreate 1, PPEPath() + "work\tbbyte", 1, 0
FreshLine
While (STRING021 <> "") Do
If (BOOLEAN007) Then
INTEGER002 = INTEGER028
Else
INTEGER002 = FileInf(STRING033 + STRING021, 4) * INTEGER005
Endif
If (INTEGER001 <> 1) Then
If (BOOLEAN015) Then
PrintLn "@X07Adding nuke bytes for (", Upper(STRING021), ")"
INTEGER006 = INTEGER006 + INTEGER002
Endif
Endif
FPutLn 1, STRING021 + " " + String(INTEGER002)
Inc INTEGER001
STRING021 = ReadLine(PPEPath() + "work\tblst", INTEGER001)
EndWhile
FClose 1
Return
:LABEL115
BOOLEAN007 = 0
INTEGER005 = 0
INTEGER006 = 0
If (BOOLEAN015) Goto LABEL116
PrintLn ReadLine(STRING018, 71)
Print ReadLine(STRING018, 113)
Gosub LABEL068
FreshLine
If (INT008 == 2) Then
BOOLEAN031 = 1
Endif
INTEGER005 = 0
INTEGER006 = 0
If (BOOLEAN008) Gosub LABEL114
Return
:LABEL116
FreshLine
INTEGER004 = U_RecNum(Upper(STRING029))
If (INTEGER004 == -1) Then
FreshLine
PrintLn ReadLine(STRING018, 72)
Print ReadLine(STRING018, 113)
Gosub LABEL068
FreshLine
If (INT008 == 2) Then
BOOLEAN031 = 1
Goto LABEL117
Endif
Gosub LABEL114
:LABEL117
INTEGER005 = 0
INTEGER006 = 0
Return
Endif
GetAltUser INTEGER004
INTEGER003 = FileInf(STRING038, 4)
Gosub LABEL130
FreshLine
BOOLEAN007 = 0
If (INTEGER003 <= 0) Then
PrintLn ReadLine(STRING018, 65)
FreshLine
STRING036 = ""
InputStr ReadLine(STRING018, 74) + "_", STRING036, 1, 9, Mask_Num(), 8
FreshLine
If (STRING036 == "") Then
INTEGER006 = 0
GetUser
BOOLEAN031 = 1
Return
Endif
INTEGER006 = ToInteger(STRING036)
BOOLEAN007 = 1
INTEGER005 = 0
Endif
If (BOOLEAN007) Goto LABEL118
FreshLine
STRING036 = ""
InputStr ReadLine(STRING018, 27) + "_", STRING036, 1, 3, Mask_Num(), 8
FreshLine
If (STRING036 <> "") Then
INTEGER005 = STRING036
Else
INTEGER006 = 0
INTEGER005 = 0
BOOLEAN031 = 1
GetUser
Return
Endif
INTEGER006 = ToInteger(STRING036) * INTEGER003
:LABEL118
INTEGER010 = U_Bul()
If (BOOLEAN008) Then
Gosub LABEL114
Endif
If (U_Bul() - INTEGER006 > 0) Then
STRING036 = String(U_Bul() - INTEGER006)
Gosub LABEL133
Endif
GetAltUser INTEGER004
If (INTEGER010 == U_Bul()) Then
PrintLn ReadLine(STRING018, 100)
Else
PrintLn ReplaceStr(ReadLine(STRING018, 73), "%SIZE%", String(INTEGER006))
PrintLn ReplaceStr(ReadLine(STRING018, 67), "%SIZE%", String(U_Bul()))
Endif
GetUser
FreshLine
Return
:LABEL119
FreshLine
If (BOOLEAN015) Goto LABEL120
PrintLn ReadLine(STRING018, 75)
Return
:LABEL120
If (BOOLEAN008) Then
STRING017 = PPEPath() + "graph\tbnuke"
Else
STRING017 = PPEPath() + "graph\msgnuke"
Endif
STRING021 = PPEPath() + "bcms" + String(PcbNode())
FOpen 1, STRING017, 0, 0
FCreate 2, STRING021, 1, 0
If (BOOLEAN008) Then
FPutLn 2, ReadLine(STRING018, 121)
FPutLn 2, ""
STRING001 = ReadLine(PPEPath() + "work\tbbyte", 1)
INTEGER001 = 1
STRING023 = ReadLine(STRING018, 123)
While (STRING001 <> "") Do
Tokenize STRING001
STRING022 = GetToken()
FPutLn 2, ReplaceStr(ReplaceStr(STRING023, "@NFILE@", STRING022), "@NUKEBYTES@", GetToken())
Inc INTEGER001
STRING001 = ReadLine(PPEPath() + "work\tbbyte", INTEGER001)
EndWhile
Endif
:LABEL121
If (Ferr(1)) Goto LABEL122
FGet 1, STRING022
STRING022 = ReplaceStr(STRING022, "@NUKEE@", Mixed(STRING029))
STRING022 = ReplaceStr(STRING022, "@NUKER@", Mixed(U_Name()))
STRING022 = ReplaceStr(STRING022, "@NALIAS@", Mixed(U_Alias))
STRING022 = ReplaceStr(STRING022, "@NUKEBYTES@", INTEGER006)
STRING022 = ReplaceStr(STRING022, "@NFILE@", STRING037)
STRING022 = ReplaceStr(STRING022, "@REASON@", Mixed(TSTRING011(1)))
FPutLn 2, STRING022
Goto LABEL121
:LABEL122
FClose 1
FClose 2
FReAltUser
Message 0, Upper(STRING029), Upper(U_Name()), "@X7CNUKED!!", "R", 0, 0, 0, STRING021
PrintLn ReplaceStr(ReadLine(STRING018, 76), "%NAME%", Upper(STRING029))
FClose -1
Delete STRING021
Return
:LABEL123
FreshLine
If (BOOLEAN015) Goto LABEL124
PrintLn ReadLine(STRING018, 77)
Return
:LABEL124
STRING017 = PPEPath() + "graph\msgaward"
If (BOOLEAN008) STRING017 = PPEPath() + "graph\tbaward"
STRING021 = PPEPath() + "bcms" + String(PcbNode())
FOpen 1, STRING017, 0, 0
FCreate 2, STRING021, 1, 0
If (BOOLEAN008) Then
FPutLn 2, ReadLine(STRING018, 122)
FPutLn 2, ""
STRING001 = ReadLine(PPEPath() + "work\tbbyte", 1)
INTEGER001 = 1
STRING023 = ReadLine(STRING018, 124)
While (STRING001 <> "") Do
Tokenize STRING001
STRING022 = GetToken()
FPutLn 2, ReplaceStr(ReplaceStr(STRING023, "@NFILE@", STRING022), "@NUKEBYTES@", GetToken())
Inc INTEGER001
STRING001 = ReadLine(PPEPath() + "work\tbbyte", INTEGER001)
EndWhile
Endif
:LABEL125
If (Ferr(1)) Goto LABEL126
FGet 1, STRING022
STRING022 = ReplaceStr(STRING022, "@NUKEE@", Mixed(STRING029))
STRING022 = ReplaceStr(STRING022, "@NUKER@", Mixed(U_Name()))
STRING022 = ReplaceStr(STRING022, "@NALIAS@", Mixed(U_Alias))
STRING022 = ReplaceStr(STRING022, "@NUKEBYTES@", INTEGER006)
STRING022 = ReplaceStr(STRING022, "@NFILE@", STRING037)
STRING022 = ReplaceStr(STRING022, "@REASON@", Mixed(TSTRING011(1)))
FPutLn 2, STRING022
Goto LABEL125
:LABEL126
FClose 1
FClose 2
FReAltUser
Message 0, Upper(STRING029), Upper(U_Name()), "@X7CAWARD!!", "R", 0, 0, 0, STRING021
PrintLn ReplaceStr(ReadLine(STRING018, 78), "%NAME%", Upper(STRING029))
FClose -1
Delete STRING021
Return
:LABEL127
If (Exist(PPEPath() + "nuke.log")) Goto LABEL128
FCreate 3, PPEPath() + "nuke.log", 1, 0
FPutLn 3, "File From Type Nuker Bytes"
FPutLn 3, "──────────────────────────────────────────────────────────────────"
FClose 3
:LABEL128
Return
:LABEL129
Gosub LABEL127
FAppend 3, PPEPath() + "nuke.log", 1, 0
FPutLn 3, STRING024
FClose 3
Return
:LABEL130
FOpen 1, PPEPath() + "graph\credhdr", 0, 0
FGet 1, STRING022
:LABEL131
If (Ferr(1)) Goto LABEL132
STRING022 = ReplaceStr(STRING022, "%FILE%", Upper(STRING037))
STRING022 = ReplaceStr(STRING022, "%BYTES%", String(INTEGER003))
STRING022 = ReplaceStr(STRING022, "%USER%", String(U_Name()))
STRING022 = ReplaceStr(STRING022, "%BUL%", String(U_Bul()))
STRING022 = ReplaceStr(STRING022, "%BDL%", String(U_Bdl()))
PrintLn STRING022
FGet 1, STRING022
Goto LABEL131
:LABEL132
FClose 1
Return
:LABEL133
STRING065 = ReadLine(PCBDat(), 29)
STRING061 = U_Bul()
STRING061 = STRING036
STRING066 = STRING036
If (STRING066 <> "") Goto LABEL134
PrintLn "No input"
End
:LABEL134
DOUBLE001 = STRING066
If (DOUBLE001 < -999999999) DOUBLE001 = -999999999
If (DOUBLE001 > DOUBLE001) DOUBLE001 = DOUBLE001
STRING061 = DOUBLE001
STRING062 = "0"
If (DOUBLE001 < 0) Then
STRING062 = "1"
DOUBLE001 = -DOUBLE001
Endif
STRING063 = I2S(DOUBLE001, 2)
INTEGER029 = Len(STRING063) - 1 + 129
TBIGSTR001(8) = Chr(INTEGER029)
STRING063 = Left(Right(STRING063, Len(STRING063) - 1) + "00000000000000000000000000000000000000000000000000000000000000000", 55)
TSTRING064(7) = STRING062 + Left(STRING063, 7)
STRING063 = Right(STRING063, Len(STRING063) - 7)
For INTEGER030 = -6 To -1
TSTRING064(-INTEGER030) = Left(STRING063, 8)
STRING063 = Right(STRING063, Len(STRING063) - 8)
Next
For INTEGER030 = 1 To 7
TBIGSTR001(INTEGER030) = Chr(S2I(TSTRING064(INTEGER030), 2))
Next
FOpen 4, STRING065, 2, 0
FSeek 4, (U_RecNum(U_Name()) - 1) * 400 + 216, 0
For INTEGER030 = 1 To 8
FWrite 4, TBIGSTR001(INTEGER030), 1
Next
FClose 4
Return
:LABEL135
Backup 80
ClrEol
If (INTEGER027 >= 60) Then
Print ReadLine(STRING018, 90)
Delay 25
Return
Endif
STRING036 = ""
Print ReplaceStr(ReplaceStr(ReadLine(STRING018, 91), "%FROM%", String(INT020 - 1)), "%TO%", String(INT021 - 1))
InputStr "", STRING036, 7, 2, Mask_Num(), 8 + 2
If (STRING036 == "") Return
If ((ToInteger(STRING036) < INT020 - 1) || (ToInteger(STRING036) > INT021 - 1)) Goto LABEL135
INTEGER012 = INTEGER027
While (((-1 < 0) && (INTEGER012 >= ToInteger(STRING036) + 1)) || ((-1 >= 0) && (INTEGER012 <= ToInteger(STRING036) + 1))) Do
TSTRING059(INTEGER012 + 1) = TSTRING059(INTEGER012)
INTEGER012 = INTEGER012 + -1
EndWhile
Inc INTEGER027
TSTRING059(ToInteger(STRING036) + 1) = ""
Gosub LABEL138
FreshLine
Newline
INTEGER008 = GetY()
If ((STRING036 + 1) % 20 == 0) Then
AnsiPos 5, 20
Else
AnsiPos 5, (ToInteger(STRING036) + 1) % 20
Endif
STRING021 = ""
InputStr "_", STRING021, 1, 45, Mask_Pwd(), 0
TSTRING059(ToInteger(STRING036) + 1) = Space(31) + "| " + STRING021
AnsiPos 1, INTEGER008
BOOLEAN020 = 1
Return
:LABEL136
Backup 80
ClrEol
STRING036 = ""
Print ReplaceStr(ReplaceStr(ReadLine(STRING018, 92), "%FROM%", String(INT020)), "%TO%", String(INT021))
InputStr "", STRING036, 7, 2, Mask_Num(), 8 + 2
If (STRING036 == "") Return
If ((ToInteger(STRING036) < INT020) || (ToInteger(STRING036) > INT021)) Goto LABEL137
Dec INTEGER027
For INTEGER012 = STRING036 To INTEGER027
TSTRING059(INTEGER012) = TSTRING059(INTEGER012 + 1)
Next
Gosub LABEL138
FreshLine
Newline
BOOLEAN020 = 1
Return
:LABEL137
Backup 80
ClrEol
STRING036 = ""
Print ReplaceStr(ReplaceStr(ReadLine(STRING018, 93), "%FROM%", String(INT020)), "%TO%", String(INT021))
InputStr "", STRING036, 7, 2, Mask_Num(), 8 + 2
If (STRING036 == "") Return
If ((ToInteger(STRING036) < INT020) || (ToInteger(STRING036) > INT021)) Goto LABEL137
TSTRING059(ToInteger(STRING036)) = ""
Backup 80
ClrEol
INTEGER008 = GetY()
If ((STRING036 + 1) % 20 == 0) Then
AnsiPos 5, 20
Else
AnsiPos 5, ToInteger(STRING036) % 20
Endif
ClrEol
STRING021 = ""
InputStr "_", STRING021, 1, 45, Mask_Pwd(), 0
TSTRING059(ToInteger(STRING036)) = Space(31) + "| " + STRING021
AnsiPos 1, INTEGER008
BOOLEAN020 = 1
Return
:LABEL138
Select Case (INT022)
Case 1
INT020 = 1
If (INTEGER027 >= 20) Then
INT021 = 20
Else
INT021 = INTEGER027
Endif
Case 2
If (INTEGER027 > 20) Then
INT020 = 21
If (INTEGER027 >= 40) Then
INT021 = 40
Goto LABEL139
Endif
INT021 = INTEGER027
Endif
:LABEL139
Case 3
Case 40
INT020 = 41
If (INTEGER027 >= 60) Then
INT021 = 60
Goto LABEL140
Endif
INT021 = INTEGER027
End Select
:LABEL140
DefColor
Cls
STRING067 = ReadLine(STRING018, 94)
For INTEGER012 = INT020 To INT021
If (INTEGER012 == 1) Then
Print STRING067, "1 ", TSTRING030(3), ":" + Mid(TSTRING059(1), 33, Len(TSTRING059(1)) - 30)
Else
If (INTEGER012 == INT020) Then
Goto LABEL141
Endif
Newline
Endif
:LABEL141
If (INTEGER012 <> 1) Print STRING067, Left(String(INTEGER012), 2) , TSTRING030(3) , ":" + Mid(TSTRING059(INTEGER012), 33, Len(TSTRING059(INTEGER012)) - 30)
Next
Return
:LABEL142
Print "@X07Checking access, please wait..."
If (Upper(ReadLine(STRING015, 9)) == "NO") Then
Tokenize ReadLine(STRING015, 8)
If (CurSec() >= GetToken()) BOOLEAN001 = 1
If (CurSec() >= GetToken()) BOOLEAN002 = 1
If (CurSec() >= GetToken()) BOOLEAN003 = 1
If (CurSec() >= GetToken()) BOOLEAN004 = 1
If (CurSec() >= GetToken()) BOOLEAN005 = 1
PrintLn "@X0CDONE!"
Return
Endif
STRING021 = PPEPath() + "users.cfg"
STRING022 = Upper(ReadLine(STRING021, 1))
INTEGER012 = 1
While (STRING022 <> "") Do
If (STRING022 == Upper(U_Name())) Then
Tokenize ReadLine(STRING021, INTEGER012 + 1)
If (GetToken() == "YES") BOOLEAN001 = 1
If (GetToken() == "YES") BOOLEAN002 = 1
If (GetToken() == "YES") BOOLEAN003 = 1
If (GetToken() == "YES") BOOLEAN004 = 1
If (GetToken() == "YES") BOOLEAN005 = 1
PrintLn "@X0CDONE!"
Return
Endif
Inc INTEGER012
Inc INTEGER012
STRING022 = Upper(ReadLine(STRING021, INTEGER012))
EndWhile
FreshLine
DispFile PPEPath() + "graph\noaxx", 0
Wait
End
Return
:LABEL143
FreshLine
BOOLEAN019 = 0
If (BOOLEAN008) Then
Print ReadLine(STRING018, 119)
Else
Print ReadLine(STRING018, 88)
Endif
Gosub LABEL068
If (INT008 == 2) Then
BOOLEAN019 = 1
Return
Endif
FreshLine
STRING016 = ""
STRING036 = ""
Gosub LABEL025
If (BOOLEAN023) Then
BOOLEAN019 = 1
Return
Endif
FClose -1
FAppend 1, STRING013, 1, 0
If (BOOLEAN008) Then
STRING021 = PPEPath() + "work\tblst"
INTEGER001 = 1
STRING022 = ReadLine(STRING021, INTEGER001)
While (STRING022 <> "") Do
FPutLn 1, Upper(STRING033) + "," + Upper(STRING022) + "," + String(INTEGER009) + "," + "FREE" + "," + "1"
Inc INTEGER001
STRING022 = ReadLine(STRING021, INTEGER001)
EndWhile
Else
FPutLn 1, Upper(STRING033) + "," + Upper(STRING037) + "," + String(INTEGER009) + "," + "FREE" + "," + "1"
Endif
FClose 1
Return
:LABEL144
FClose -1
Print "@X0DAdding files to batch, please wait..."
If (Exist(STRING032)) Goto LABEL145
FCreate 1, STRING032, 1, 0
FPutLn 1, Upper(U_Name())
Goto LABEL146
:LABEL145
FAppend 1, STRING032, 1, 0
:LABEL146
FOpen 2, PPEPath() + "work\tblst", 0, 0
FGet 2, STRING068
:LABEL147
If (Ferr(2)) Goto LABEL148
FPutLn 1, STRING068 + " " + String(INT018)
FGet 2, STRING068
Goto LABEL147
:LABEL148
FClose 2
FClose 1
PrintLn "@X0CDONE!"
Wait
Return
Return
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 10 End
; 13 Cls
; 15 ClrEol
; 22 Wait
; 652 Goto
; 638 Let
; 86 Print
; 101 PrintLn
; 420 If
; 19 DispFile
; 15 FCreate
; 17 FOpen
; 10 FAppend
; 54 FClose
; 18 FGet
; 1 FPut
; 38 FPutLn
; 3 ResetDisp
; 10 StartDisp
; 6 GetUser
; 19 DefColor
; 13 Delete
; 1 Log
; 23 InputStr
; 133 Gosub
; 139 Return
; 8 Delay
; 23 Inc
; 4 Dec
; 12 Newline
; 32 Tokenize
; 6 Shell
; 1 KbdStuff
; 1 Call
; 3 Dir
; 12 AnsiPos
; 14 Backup
; 1 Forward
; 108 FreshLine
; 2 Message
; 5 SaveScrn
; 5 RestScrn
; 5 Rename
; 1 Frewind
; 5 FSeek
; 6 FRead
; 1 FWrite
; 2 Redim
; 7 Copy
; 4 GetAltUser
; 2 FReAltUser
;
;
; ■ Functions used :
;
; 39 -
; 9 *
; 5 %
; 392 +
; 30 -
; 167 ==
; 37 <>
; 30 <
; 26 <=
; 16 >
; 56 >=
; 368 !
; 51 &&
; 39 ||
; 11 Len(
; 128 Upper()
; 10 Mid()
; 49 Left()
; 3 Right()
; 7 Space()
; 11 Ferr()
; 6 Chr()
; 2 InStr()
; 4 Abort()
; 2 LTrim()
; 4 RTrim()
; 1 Time()
; 19 U_Name()
; 1 U_Bdl()
; 12 U_Bul()
; 16 StripAtx()
; 1 Strip()
; 2 Inkey()
; 49 String()
; 10 Mask_Pwd()
; 9 Mask_Num()
; 2 Mask_File()
; 3 CurConf()
; 4 PCBDat()
; 90 PPEPath()
; 6 PcbNode()
; 230 ReadLine()
; 6 OnLocal()
; 5 CurSec()
; 66 GetToken()
; 30 Exist()
; 1 I2S()
; 1 S2I()
; 1 AnsiOn()
; 5 GetX()
; 9 GetY()
; 8 FileInf()
; 2 HelpPath()
; 1 TokCount()
; 8 U_RecNum()
; 1 ScrText()
; 86 ReplaceStr()
; 25 ToInteger()
; 10 Mixed()
; 1 IsNonStop()
; 1 PCBMac()
;
;------------------------------------------------------------------------------
;
; Analysis flags : RSCd
;
; R - Read user ■ 5
; User records are read, this may signify that someone wants to get
; various informations about a user (for example his password), but
; this may also be normal for a program accessing user records (for
; example a User Editor)
; ■ Search for : GETALTUSER
;
; S - Shell to DOS ■ 5
; This may be normal if the PPE need to execute an external command,
; but may be actually anything... nasty (formating HD, rebooting,...)
; or usefull (sorting, maintenance,...). Check!
; ■ Search for : SHELL
;
; C - Call child PPE ■ 3
; This is usually normal, but may be a tricky way to launch some
; sysop-only commands.
; ■ Search for : CALL
;
; d - Access PCBOARD.DAT ■ 2
; Program gets the full pathname to PCBOARD.DAT, this may be usefull
; for many PPE so they can find various informations on the system
; (system paths, max number of lines in messages, ...) but it may also
; be a way to gather vital informations.
; ■ Search for : PCBDAT()
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 21 For/Next
; 20 While/EndWhile
; 216 If/Then or If/Then/Else
; 13 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------