home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 8
/
CDASC08.ISO
/
VRAC
/
SL_UTL10.ZIP
/
SL-1L.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1993-08-28
|
5KB
|
314 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 1.OO (plain) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Integer INTEGER001
Integer INTEGER002
Integer INTEGER003
Integer INTEGER004
Integer INTEGER005
String STRING001
String STRING002
String STRING003
String STRING004
String STRING005
String STRING006
String STRING007
String STRING008
String TSTRING009(16)
String STRING010
String TSTRING011(5)
String STRING012
String STRING013
String STRING014
;------------------------------------------------------------------------------
If (Exist(PPEPath() + "SL-1L.CNF")) Then
Goto LABEL001
Else
PrintLn
PrintLn "@X8C*** Config File Not Found *** ^G ^G Please Notify Sysop"
Goto LABEL006
Endif
:LABEL001
FOpen 1, PPEPath() + "SL-1L.CNF", 2, 0
FGet 1, STRING001
If (Len(STRING001) == 0) STRING001 = "SL-1L.HDR"
FGet 1, INTEGER001
If ((INTEGER001 < 1) || (INTEGER001 > 16)) INTEGER001 = 16
FGet 1, STRING007
If (Len(STRING007) == 0) STRING007 = "@X03"
FGet 1, STRING008
If (Len(STRING008) == 0) STRING008 = "@X0B"
FGet 1, STRING002
FGet 1, STRING003
FGet 1, INTEGER003
FGet 1, STRING013
FClose 1
GetUser
If (U_Sec < STRING002) Goto LABEL007
If (Exist(PPEPath() + STRING001)) Then
DispFile PPEPath() + STRING001, 4 + 2 + 1
Else
PrintLn "@CLS@@X07"
PrintLn "@X0E @X0D--==[[░▒▓█ @X0ASurreal BBS's @X0EOne Liners @X0D█▓▒░]]==--@X07"
Endif
PrintLn
If (Exist(PPEPath() + "SL-1l.DAT")) Then
Goto LABEL002
Else
PrintLn "@X0CData file Not Found...Creating..."
PrintLn
FCreate 1, PPEPath() + "SL-1L.DAT", 2, 0
INTEGER002 = 1
While (!Ferr(1) && (INTEGER002 <= INTEGER001)) Do
FPutLn 1, "Call Surreal BBS. Home of Surreal Oneliners. (219) 262-9371"
INTEGER002 = INTEGER002 + 1
EndWhile
Endif
FClose 1
:LABEL002
FOpen 1, PPEPath() + "SL-1L.DAT", 2, 0
INTEGER002 = 1
While (!Ferr(1) && (INTEGER002 <= INTEGER001)) Do
FGet 1, STRING005
TSTRING009(INTEGER002) = STRING005
If (Len(STRING005) > 0) Then
PrintLn STRING007, Chr(34), STRING008, TSTRING009(INTEGER002), STRING007, Chr(34), "@X07"
Endif
INTEGER002 = INTEGER002 + 1
EndWhile
FClose 1
:LABEL003
STRING006 = ""
PrintLn
InputStr "Would you like to add a oneliner", STRING006, 9, 1, "YNH?", 2 + 4 + 8
If ((STRING006 == "H") || (STRING006 == "?")) Then
SaveScrn
If (Exist(PPEPath() + "SL-1L.HLP")) Then
DispFile PPEPath() + "SL-1L.HLP", 4 + 2 + 1
Goto LABEL004
Endif
Cls
AnsiPos 0, 10
PrintLn "@X0CERROR@X07: SL-1L.HLP File not found... Notify Sysop!@X07"
:LABEL004
RestScrn
Goto LABEL003
Endif
If (STRING006 <> "Y") Then
PrintLn
Else
PrintLn
ClrEol
:LABEL005
STRING006 = ""
Cls
PrintLn "@X0FEnter your oneliner now. 75 Characters max. Use @X variables for color."
PrintLn "@X09(─────────────────────────────────────────────────────────────────────────)"
STRING004 = ">@X07 _"
InputStr STRING004, STRING006, 9, 75, Mask_Ascii(), 0
Newline
If (Len(STRING006) == 0) Then
PrintLn
PrintLn "@X0C Aborted..."
PrintLn
Else
If (InStr(Upper(STRING006), "@USER@") || InStr(Upper(STRING006), "@HOMEPHONE@")) Then
PrintLn "@X0CMACROs of that Type are Not allowed!"
Wait
Goto LABEL005
Endif
FCreate 1, PPEPath() + "SL-1L.DAT", 2, 0
If (INTEGER002 >= INTEGER001) Then
INTEGER002 = 1
While ((Len(TSTRING009(INTEGER002 + 1)) > 0) && (INTEGER002 <= INTEGER001)) Do
FPutLn 1, TSTRING009(INTEGER002 + 1)
INTEGER002 = INTEGER002 + 1
EndWhile
Else
While (Len(TSTRING009(INTEGER002)) > 0) Do
FPutLn 1, TSTRING009(INTEGER002)
EndWhile
Endif
FPutLn 1, STRING006
FClose 1
PrintLn "@X0CYour oneliner has been added...@X07"
Goto LABEL008
:LABEL006
Log "", 0
:LABEL007
PrintLn
End
Endif
Endif
:LABEL008
PrintLn
PrintLn "@X0FSurreal Oneliners PPL v1.05 (8.31.93) - by Marcus Breese"
If (Exist(PPEPath() + "SL-1L.LFC")) Then
Goto LABEL002
Else
PrintLn "@X0CData file Not Found...Creating..."
PrintLn
FCreate 1, PPEPath() + "SL-1L.LFC", 2, 0
INTEGER002 = 1
While (!Ferr(1) && (INTEGER002 <= INTEGER003)) Do
FPutLn 1, "999999 Marcus Breese Surreal BBS 219-262-9371 57600 5"
INTEGER002 = INTEGER002 + 1
EndWhile
Endif
FClose 1
PrintLn
PrintLn "@X0FCaller Name City Bps Node"
PrintLn "@X0F────────────@X07──@X0F────@X07────────@X08─@X07───────────@X08─────────@X07─@X08───────────────────────────────"
FOpen 1, PPEPath() + "SL-1L.lfc", 2, 0
INTEGER002 = 1
While (!Ferr(1) && (INTEGER002 <= INTEGER003)) Do
FGet 1, STRING005
TSTRING011(INTEGER002) = STRING005
If (Len(STRING005) > 0) Then
PrintLn TSTRING011(INTEGER002)
Endif
INTEGER002 = INTEGER002 + 1
EndWhile
FClose 1
PrintLn "@X0F────────────@X07──@X0F────@X07────────@X08─@X07───────────@X08─────────@X07─@X08───────────────────────────────"
STRING010 = Upper(U_Name())
STRING012 = Upper(U_City)
INTEGER004 = PcbNode()
INTEGER005 = Carrier()
FOpen 1, PPEPath() + "SL-1L.TMP", 2, 0
FGet 1, STRING014
If ((STRING014 == CallNum()) || (STRING014 == "0")) Then
FClose 1
Goto LABEL009
Else
Frewind 1
FPutLn 1, CallNum()
Endif
FClose 1
FCreate 1, PPEPath() + "SL-1L.LFC", 2, 0
If (INTEGER002 >= INTEGER003) Then
INTEGER002 = 1
While ((Len(TSTRING011(INTEGER002 + 1)) > 0) && (INTEGER002 <= 5)) Do
FPutLn 1, TSTRING011(INTEGER002 + 1)
INTEGER002 = INTEGER002 + 1
EndWhile
Endif
FPut 1, "@X07"
FPutPad 1, CallNum(), 6
FPut 1, "@X0B "
FPutPad 1, Left(STRING010, 1) + Lower(Right(STRING010, Len(STRING010) - 1)), -28
FPut 1, "@X09"
FPutPad 1, Left(STRING012, 1) + Lower(Right(STRING012, Len(STRING012) - 1)), -28
FPut 1, "@X05"
FPutPad 1, INTEGER005, -5
FPut 1, "@X0E "
FPutPad 1, INTEGER004, -2
FPut 1, "@X07"
FPut 1, Chr(13)
FClose 1
:LABEL009
PrintLn
If (Upper(STRING013) <> "YES") Then
Goto LABEL007
Else
Print "@WHO@"
Goto LABEL007
Endif
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 1 End
; 2 Cls
; 1 ClrEol
; 1 Wait
; 50 Goto
; 25 Let
; 1 Print
; 30 PrintLn
; 27 If
; 2 DispFile
; 4 FCreate
; 4 FOpen
; 9 FClose
; 11 FGet
; 7 FPut
; 7 FPutLn
; 5 FPutPad
; 1 GetUser
; 1 Log
; 2 InputStr
; 1 Newline
; 1 AnsiPos
; 1 SaveScrn
; 1 RestScrn
; 1 Frewind
;
;
; ■ Functions used :
;
; 4 -
; 33 +
; 2 -
; 8 ==
; 2 <>
; 2 <
; 6 <=
; 6 >
; 2 >=
; 26 !
; 6 &&
; 4 ||
; 11 Len(
; 2 Lower()
; 5 Upper()
; 2 Left()
; 2 Right()
; 4 Ferr()
; 3 Chr()
; 2 InStr()
; 1 U_Name()
; 1 Mask_Ascii()
; 15 PPEPath()
; 1 PcbNode()
; 5 Exist()
; 1 Carrier()
; 3 CallNum()
;
;------------------------------------------------------------------------------
;
; Analysis flags : No flag
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 0 For/Next
; 7 While/EndWhile
; 15 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------