home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
pcbdod18.zip
/
PCBDOD.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1996-02-28
|
3KB
|
233 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.2O (Encryption type I) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Boolean BOOLEAN001
Integer INTEGER001
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
String STRING016
String STRING017
String STRING018
String STRING019
String STRING020
String STRING021
String STRING022
String STRING023
String STRING024
;------------------------------------------------------------------------------
GetToken STRING007
GetToken STRING008
GetToken STRING009
GetToken STRING010
GetToken STRING011
GetToken STRING012
STRING005 = PPEPath() + "pppon.txt"
STRING006 = PPEPath() + "pppup.txt"
STRING024 = PPEPath() + "pppfail.txt"
STRING020 = PPEName() + ".CFG"
If (Exist(PPEPath() + STRING020)) Goto LABEL001
PrintLn "Configuration File is not set up. Notify the Sysop."
End
:LABEL001
FOpen 1, PPEPath() + STRING020, 0, 0
FGet 1, STRING002
FGet 1, STRING003
FGet 1, STRING004
FGet 1, STRING014
FGet 1, STRING001
FGet 1, STRING015
FGet 1, STRING017
FGet 1, STRING018
FGet 1, STRING019
FGet 1, STRING023
FGet 1, STRING013
FGet 1, STRING016
FGet 1, STRING022
FClose 1
If (STRING004 <> 169 + I2S(Len(STRING003) + 4, 10) + I2S(Asc(STRING003) + 4, 10)) Then
BOOLEAN001 = 1
Endif
If (BOOLEAN001 == 1) Gosub LABEL004
If (Exist(STRING005)) Goto LABEL002
FOpen 2, STRING005, 2, 0
FPut 2, "PPP is on!"
FClose 2
If (STRING019 == "ISDN") Goto LABEL005
If (STRING019 == "PPP") Goto LABEL007
STRING021 = Time()
Log STRING020 + " Started Internet at: " + STRING021, 1
PrintLn STRING013
If (STRING018 == "NONE") Wait
End
:LABEL002
If (STRING019 == "ISDN") Goto LABEL005
If (STRING019 == "PPP") Goto LABEL007
If (STRING017 == "NONE") Goto LABEL003
If (Exist(STRING024)) Goto LABEL009
If (!Exist(STRING006)) Gosub LABEL010
:LABEL003
KbdStuff "Open " + STRING001 + " " + STRING007 + " " + STRING008 + " " + STRING009 + " " + STRING010 + " " + STRING011 + " " + STRING012
End
:LABEL004
PrintLn "@X0FPCB Dial On Demand v1.80 is Unregistered. Please ask Your Sysop to Register"
PrintLn "this program. The latest version can be found on New JerseyLand."
PrintLn "(908) 918-8682"
Delay 15
Print "."
Delay 15
Print "."
Delay 15
Print "."
Delay 15
Print "."
Delay 15
Print "."
Delay 15
Print "."
Delay 15
Print "."
Delay 15
Print "."
Delay 15
Print "."
Delay 15
Print "."
Delay 15
Print "."
PrintLn
Return
:LABEL005
STRING021 = Time()
Log STRING020 + ": ISDN Mode. Time: " + STRING021, 1
:LABEL006
If (Exist(STRING006)) Goto LABEL003
Delay 15
INTEGER001 = INTEGER001 + 1
If (INTEGER001 > 35) Goto LABEL009
Goto LABEL006
:LABEL007
Print "Waiting for PPP "
STRING021 = Time()
Log STRING020 + ": PPP Mode. Time: " + STRING021, 1
:LABEL008
Print "."
If (Exist(STRING006)) Then
PrintLn "OK"
KbdStuff "Open " + STRING001 + " " + STRING007 + " " + STRING008 + " " + STRING009 + " " + STRING010 + " " + STRING011 + " " + STRING012
Bye
Endif
Delay 31
INTEGER001 = INTEGER001 + 1
If (INTEGER001 > 55) Goto LABEL009
Goto LABEL008
:LABEL009
PrintLn
PrintLn STRING022
STRING021 = Time()
Log STRING020 + ": Internet Connection Failed at " + STRING021, 1
Delete STRING005
Delete STRING006
Delete STRING024
End
:LABEL010
Delay 5
If (Exist(STRING006)) Goto LABEL011
PrintLn STRING016
STRING021 = Time()
Log STRING020 + ": Internet Not Ready Yet. Time: " + STRING021, 1
If (STRING018 == "NONE") Wait
End
Goto LABEL012
:LABEL011
Return
:LABEL012
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 5 End
; 2 Wait
; 17 Goto
; 12 Let
; 13 Print
; 10 PrintLn
; 18 If
; 2 FOpen
; 2 FClose
; 13 FGet
; 1 FPut
; 3 Delete
; 5 Log
; 2 Gosub
; 2 Return
; 14 Delay
; 6 GetToken
; 2 KbdStuff
; 1 Bye
;
;
; ■ Functions used :
;
; 48 +
; 8 ==
; 1 <>
; 2 >
; 6 !
; 1 Len(
; 1 Asc()
; 5 Time()
; 5 PPEPath()
; 7 Exist()
; 2 I2S()
; 1 PPEName()
;
;------------------------------------------------------------------------------
;
; Analysis flags : No flag
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 0 For/Next
; 0 While/EndWhile
; 2 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------