home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Hack-Phreak Scene Programs
/
cleanhpvac.zip
/
cleanhpvac
/
PWAMR10S.ZIP
/
MENU.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1994-05-02
|
2KB
|
134 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 2.OO (plain) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Integer INTEGER001
Integer INTEGER002
Integer INTEGER003
Integer INTEGER004
Integer TINTEGER005(10,2)
Integer INTEGER006
String STRING001
String STRING002
String STRING003
String STRING004
;------------------------------------------------------------------------------
Gosub LABEL002
Gosub LABEL003
Gosub LABEL001
End
:LABEL001
STRING002 = PPEPath() + "group" + String(INTEGER004) + ".cfg"
INTEGER002 = S2I(ReadLine(STRING002, 1), 10)
If (INTEGER002 < 1) INTEGER002 = 1
INTEGER003 = S2I(ReadLine(STRING002, 2), 10)
If (INTEGER003 < 0) INTEGER003 = 0
If (INTEGER003 == 0) INTEGER003 = 1 + Random(INTEGER002 - 1)
STRING003 = ReadLine(STRING002, 2 + INTEGER003)
If (Exist(PPEPath() + STRING003)) Then
DispFile PPEPath() + STRING003, 0
Else
PrintLn "Not found: ", PPEPath() + STRING003
Endif
Return
:LABEL002
STRING001 = PPEPath() + "allgroup.cfg"
INTEGER001 = S2I(ReadLine(STRING001, 1), 10)
If (INTEGER001 < 1) Then
INTEGER001 = 1
ElseIf (INTEGER001 > 10) Then
INTEGER001 = 10
Endif
For INTEGER006 = 1 To INTEGER001
STRING004 = ReadLine(STRING001, 1 + INTEGER006)
Tokenize STRING004
If (TokCount() == 1) Then
TINTEGER005(INTEGER006, 0) = S2I(GetToken(), 10)
TINTEGER005(INTEGER006, 1) = TINTEGER005(INTEGER006, 0)
Continue
Endif
TINTEGER005(INTEGER006, 0) = S2I(GetToken(), 10)
TINTEGER005(INTEGER006, 1) = S2I(GetToken(), 10)
Next
Return
:LABEL003
GetUser
For INTEGER006 = 1 To INTEGER001
If ((U_Sec >= TINTEGER005(INTEGER006, 0)) && (U_Sec <= TINTEGER005(INTEGER006, 1))) Then
INTEGER004 = INTEGER006
Endif
Next
Return
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 1 End
; 12 Goto
; 21 Let
; 1 PrintLn
; 10 If
; 1 DispFile
; 1 GetUser
; 3 Gosub
; 3 Return
; 1 Tokenize
;
;
; ■ Functions used :
;
; 12 +
; 1 -
; 2 ==
; 5 <
; 3 <=
; 1 >
; 5 >=
; 7 !
; 5 &&
; 2 ||
; 1 Random()
; 1 String()
; 5 PPEPath()
; 5 ReadLine()
; 3 GetToken()
; 1 Exist()
; 6 S2I()
; 1 TokCount()
;
;------------------------------------------------------------------------------
;
; Analysis flags : No flag
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 2 For/Next
; 0 While/EndWhile
; 5 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------