home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
BBS
/
CL15S1G.ZIP
/
LASTON13.ZIP
/
LASTON.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1994-02-03
|
3KB
|
205 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
;------------------------------------------------------------------------------
Boolean BOOLEAN001
Boolean BOOLEAN002
Boolean BOOLEAN003
Boolean BOOLEAN004
Boolean BOOLEAN005
Boolean BOOLEAN006
String STRING001
String STRING002
String STRING003
String STRING004
String STRING005
String STRING006
String STRING007
String STRING008
String STRING009
String STRING010
String STRING011
String STRING012
String STRING013
String STRING014
String STRING015
Byte BYTE001
Byte BYTE002
Byte BYTE003
;------------------------------------------------------------------------------
BOOLEAN003 = 1
If (TokCount() > 0) Then
GetToken STRING014
Else
PrintLn "Logging last access information."
BOOLEAN005 = 1
Endif
STRING014 = Upper(STRING014)
STRING008 = ": "
STRING001 = PPEPath() + PPEName() + ".CFG"
If (Exist(STRING001)) Then
FOpen 1, STRING001, 0, 0
FGet 1, STRING002
FGet 1, STRING009
If (BOOLEAN005) Goto LABEL003
BOOLEAN006 = 0
:LABEL001
If (BOOLEAN006) Goto LABEL003
FGet 1, STRING003
If (STRING003 == "") Then
BOOLEAN006 = 1
Goto LABEL002
Endif
STRING015 = Left(STRING003, 1)
If (Upper(STRING015) == STRING014) Then
STRING006 = Mid(STRING003, 2, Len(STRING003) - 1)
PrintLn STRING006
BOOLEAN006 = 1
Endif
:LABEL002
Goto LABEL001
:LABEL003
FClose 1
Tokenize STRING002
BYTE002 = TokCount()
For BYTE001 = 1 To BYTE002
If (LangExt() == GetToken()) Then
STRING008 = " (" + String(BYTE001) + "): "
Endif
Next
If (STRING009 <> "") Then
Tokenize STRING009
GetToken BOOLEAN003
GetToken BOOLEAN001
GetToken BOOLEAN002
GetToken BOOLEAN004
GetToken BYTE003
Endif
Endif
If (STRING015 <> Upper(STRING015)) BOOLEAN001 = 0
GetUser
STRING010 = String(U_LDate())
STRING011 = " (" + Left(String(U_LTime()), 5) + ") "
STRING012 = "for " + String(U_TimeOn()) + " Minute(s)"
STRING013 = " - #" + String(U_Logons())
If (BOOLEAN005) Then
Log "Last on" + STRING008 + STRING010 + STRING011 + STRING012 + STRING013, 0
If (BYTE003 > 0) Then
STRING007 = Trim(Mid(U_Cmnt1, BYTE003, 4), " ")
If (STRING007 <> "") Then
If (U_ExpDate > Date()) Then
If (ConfExp(STRING007)) LastIn STRING007
Goto LABEL004
Endif
If (ConfReg(STRING007)) LastIn STRING007
Endif
Endif
:LABEL004
Else
If (CallNum() > 0) Goto LABEL005
If (BOOLEAN003) Log "Last on" + STRING008 + STRING010 + STRING011 + STRING012 + STRING013, 0
If (BOOLEAN001) Then
STRING004 = Modem()
If (STRING004 <> "") Log "Modem: " + STRING004, 0
STRING005 = CallId()
If (STRING005 <> "") Log "CID: " + STRING005, 0
Endif
If (BOOLEAN002) Log "Caller Security: " + String(CurSec()) , 0
Endif
:LABEL005
If ((STRING006 <> "") && BOOLEAN004) Then
Log STRING006, 0
Endif
End
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 1 End
; 22 Goto
; 22 Let
; 2 PrintLn
; 23 If
; 1 FOpen
; 1 FClose
; 3 FGet
; 1 GetUser
; 6 Log
; 2 Tokenize
; 6 GetToken
; 2 LastIn
;
;
; ■ Functions used :
;
; 23 +
; 1 -
; 3 ==
; 6 <>
; 1 <
; 1 <=
; 4 >
; 2 >=
; 16 !
; 3 &&
; 1 ||
; 1 Len(
; 3 Upper()
; 2 Mid()
; 2 Left()
; 1 Trim()
; 1 Date()
; 1 U_LDate()
; 1 U_LTime()
; 1 U_Logons()
; 1 U_TimeOn()
; 6 String()
; 1 PPEPath()
; 1 CurSec()
; 1 GetToken()
; 1 CallId()
; 1 Exist()
; 1 LangExt()
; 1 PPEName()
; 1 Modem()
; 1 CallNum()
; 2 TokCount()
; 1 ConfReg()
; 1 ConfExp()
;
;------------------------------------------------------------------------------
;
; Analysis flags : No flag
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 1 For/Next
; 0 While/EndWhile
; 12 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------