home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
BBS
/
J_CONFX.ZIP
/
J_CONF.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1995-01-04
|
3KB
|
198 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
;------------------------------------------------------------------------------
Integer INTEGER001
Integer INTEGER002
Integer INTEGER003
String STRING001
String STRING002
String STRING003
String STRING004
String STRING005
String STRING006
String STRING007
String STRING008
;------------------------------------------------------------------------------
If (TokCount() > 0) Then
STRING005 = ""
While ((TokCount() > 0)) STRING005 = STRING005 + GetToken() + " "
Tokenize STRING005
STRING005 = TokenStr()
Tokenize STRING005
If (("BUILD" == Upper(GetToken())) && ("MENU" == Upper(GetToken()))) Then
Tokenize STRING005
Goto LABEL001
Endif
STRING005 = "J;" + STRING005
KbdStuff STRING005
End
Endif
:LABEL001
INTEGER001 = ReadLine(PCBDat(), 108)
STRING001 = ReadLine(PCBDat(), 31)
STRING002 = FileInf(STRING001, 6) + ":" + FileInf(STRING001, 7) + "cmnu"
If (!Exist(STRING002) || (TokCount() > 0)) Then
PrintLn "Please wait....Building new menu file"
FCreate 1, STRING002, 2, 0
For INTEGER003 = 0 To INTEGER001
STRING005 = ReadLine(STRING001, 33 * INTEGER003 + 1)
STRING006 = ReadLine(STRING001, 33 * INTEGER003 + 20)
If (STRING006 == "-1") STRING006 = "Public"
If (STRING006 == "0") STRING006 = "Private"
STRING007 = ReadLine(STRING001, 33 * INTEGER003 + 23)
If (Len(Trim(STRING005, " ")) > 0) Then
STRING008 = Right(" " + I2S(INTEGER003, 10), 3)
If (STRING006 == "Private") Then
FPutLn 1, " ", STRING008, " ", Mid(STRING005 + Space(62), 1, 62), STRING006
Continue
Endif
FPutLn 1, " ", STRING008, " ", Mid(STRING005 + Space(62), 1, 62), STRING007
Endif
Next
FClose 1
Endif
If (CurColor() < 10) Then
STRING003 = "0F"
Else
STRING003 = I2S(CurColor(), 16)
INTEGER003 = S2I(Left(STRING003, 1), 16)
If (7 < INTEGER003) INTEGER003 = INTEGER003 - 8
If (INTEGER003 == 1) Then
STRING003 = I2S(INTEGER003, 16) + "F"
Else
STRING003 = I2S(INTEGER003, 16) + "8"
Endif
Endif
INTEGER002 = S2I(STRING003, 16)
FOpen 1, STRING002, 0, 0
FGet 1, STRING005
While (!Ferr(1) && !Abort()) Do
Color INTEGER002
Cls
PrintLn " @INCONF@"
PrintLn " ### Conference Name/Descripton Access"
PrintLn " --- ------------------------------------------------------------ -------"
For INTEGER003 = 1 To 12
If (Ferr(1)) Break
PrintLn STRING005
If (INTEGER003 == 4) PrintLn
If (INTEGER003 == 8) PrintLn
If (INTEGER003 < 12) FGet 1, STRING005
Next
PrintLn
If ((INTEGER003 == 13) && !Ferr(1)) Then
InputStr "(@TIMELEFT@ min left), Conference (#) to join or Enter for More", STRING004, 14, 5, "1234567890N", 8 + 32
Else
InputStr "(@TIMELEFT@ min left), Conference (#) to join or Enter for none", STRING004, 14, 5, "1234567890N", 8 + 32
Endif
If (Len(Trim(STRING004, " ")) > 0) Then
If (STRING004 == "N") Break
STRING004 = "J;" + STRING004
KbdStuff STRING004
Break
Endif
FGet 1, STRING005
EndWhile
FClose 1
DefColor
Cls
End
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 2 End
; 2 Cls
; 1 Color
; 24 Goto
; 25 Let
; 8 PrintLn
; 21 If
; 1 FCreate
; 1 FOpen
; 2 FClose
; 3 FGet
; 2 FPutLn
; 1 DefColor
; 2 InputStr
; 3 Tokenize
; 2 KbdStuff
;
;
; ■ Functions used :
;
; 3 *
; 19 +
; 1 -
; 10 ==
; 5 <
; 2 <=
; 5 >
; 4 >=
; 16 !
; 7 &&
; 3 ||
; 2 Len(
; 2 Upper()
; 2 Mid()
; 1 Left()
; 1 Right()
; 2 Space()
; 3 Ferr()
; 1 Abort()
; 2 Trim()
; 2 PCBDat()
; 5 ReadLine()
; 3 GetToken()
; 1 Exist()
; 4 I2S()
; 2 S2I()
; 1 TokenStr()
; 2 FileInf()
; 2 CurColor()
; 3 TokCount()
;
;------------------------------------------------------------------------------
;
; Analysis flags : d
;
; 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
;
; 2 For/Next
; 1 While/EndWhile
; 9 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------