home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
BBS
/
POBNLS03.ZIP
/
POBNLS.PPE
(
.txt
)
< prev
Wrap
PCBoard Programming Language Executable
|
1995-01-14
|
4KB
|
294 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
;------------------------------------------------------------------------------
Real REAL001
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
BigStr BIGSTR001
;------------------------------------------------------------------------------
Goto LABEL002
End
If (0 == 0) PROCEDURE001 = "DUMMY"
EndProc
:LABEL001
DCloseAll
:LABEL002
STRING010 = PPEPath() + PPEName() + ".CFG"
STRING011 = ReadLine(STRING010, 1)
STRING012 = ReadLine(STRING010, 1) + "SYSOP.NDX"
STRING013 = ReadLine(STRING010, 1) + "BBS.NDX"
DOpen 1, STRING011 + "NODELIST.DBF", 0
If (Exist(STRING012)) Goto LABEL003
Cls
Newline
Newline
PrintLn "@X0FPlease wait .... creating SYSOP.NDX file!"
PrintLn " @X8FWAIT!"
PrintLn "@X0F"
DnCreate 1, String(STRING011) + "SYSOP.NDX", "Sysop_name"
:LABEL003
If (Exist(STRING013)) Goto LABEL004
Newline
Newline
PrintLn "Please wait .... creating BBS.NDX file!"
PrintLn " @X8FWAIT!"
PrintLn "@X0F"
DnCreate 1, String(STRING011) + "BBS.NDX", "Bbs_name"
:LABEL004
Cls
DispFile PPEPath() + "INPUT", 1 + 2 + 4
AnsiPos 66, 13
While (STRING017 <> Chr(27)) Do
STRING017 = Inkey()
If (STRING017 == 1) Goto LABEL005
If (STRING017 == 2) Goto LABEL006
EndWhile
Cls
Goto LABEL012
:LABEL005
AnsiPos 39, 17
InputStr "@X0F", BIGSTR001, 14, 40, Mask_Ascii(), 4
DnOpen 1, STRING011 + "SYSOP.NDX"
Goto LABEL007
:LABEL006
AnsiPos 39, 19
InputStr "@X0F", BIGSTR001, 14, 40, Mask_Ascii(), 4
DnOpen 1, STRING011 + "BBS.NDX"
:LABEL007
DTop 1
STRING008 = 1
DSeek 1, BIGSTR001
If (DChkStat(1) == 2) Then
Select Case (LangExt())
Case ""
STRING015 = "@X0CRecord not found - current record is the closest match"
STRING016 = " ATTENTION!: write entry in upper and / or lowercase "
Case ".GER"
STRING015 = "@X0CEintrag nicht gefunden - dieser Eintrag ist aehnlich! "
STRING016 = " Achtung!: Gross und Kleinschreibung beachten! "
End Select
Else
STRING015 = " "
STRING016 = STRING015
Endif
Cls
DispFile PPEPath() + PPEName(), 2 + 1 + 4
AnsiPos 45, 1
Print "@X08POBNLS [PPE3] v.0.02ß POB(@X0Ac@X08)1995"
:LABEL008
Print ReadLine(STRING010, 2)
AnsiPos 63, 3
Print DRecCount(1)
AnsiPos 30, 3
Print " "
AnsiPos 30, 3
Print DRecNo(1)
AnsiPos 13, 4
Print STRING015
AnsiPos 13, 5
Print STRING016
Print ReadLine(STRING010, 2)
DGet 1, "Zone", STRING001
DGet 1, "NET", STRING002
DGet 1, "Node", STRING003
DGet 1, "Location", STRING006
DGet 1, "Bbs_phone", STRING009
DGet 1, "Bbs_name", STRING004
DGet 1, "Sysop_name", STRING005
DGet 1, "Maxbaud", STRING014
AnsiPos 35, 7
Print STRING001 + ":" + STRING002 + "/" + STRING003
AnsiPos 35, 9
Print STRING004
AnsiPos 35, 11
Print STRING005
AnsiPos 35, 13
Print STRING006
AnsiPos 35, 15
Print STRING009
AnsiPos 65, 15
Print STRING014
AnsiPos 1, 22
While (STRING007 <> Chr(27)) Do
STRING007 = Inkey()
If (STRING007 == Chr(13)) Goto LABEL001
Select Case (STRING007)
Case "HOME"
Goto LABEL009
Case "END"
Goto LABEL010
End Select
If (STRING007 == "$") Then
REAL001 = 10000
Goto LABEL011
Continue
Endif
If (STRING007 == "%") Then
REAL001 = -10000
Goto LABEL011
Continue
Endif
If (STRING007 == "*") Then
REAL001 = 1000
Goto LABEL011
Continue
Endif
If (STRING007 == "/") Then
REAL001 = -1000
Goto LABEL011
Continue
Endif
If (STRING007 == "+") Then
REAL001 = 100
Goto LABEL011
Continue
Endif
If (STRING007 == "-") Then
REAL001 = -100
Goto LABEL011
Continue
Endif
If (STRING007 == "RIGHT") Then
REAL001 = 10
Goto LABEL011
Continue
Endif
If (STRING007 == "LEFT") Then
REAL001 = -10
Goto LABEL011
Continue
Endif
If (STRING007 == "DOWN") Then
REAL001 = 1
Goto LABEL011
Continue
Endif
If (STRING007 == "UP") Then
REAL001 = -1
Goto LABEL011
Endif
EndWhile
Goto LABEL012
:LABEL009
STRING008 = 1
DGo 1, STRING008
STRING015 = " "
STRING016 = STRING015
Goto LABEL008
:LABEL010
DGo 1, DRecCount(1)
STRING015 = " "
STRING016 = STRING015
Goto LABEL008
:LABEL011
STRING008 = DRecNo(1) + REAL001
If (STRING008 < 0) Goto LABEL009
If (STRING008 > DRecCount(1)) Goto LABEL010
DGo 1, STRING008
STRING015 = " "
STRING016 = STRING015
Goto LABEL008
:LABEL012
End
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 2 End
; 4 Cls
; 57 Goto
; 32 Let
; 14 Print
; 6 PrintLn
; 25 If
; 2 DispFile
; 2 InputStr
; 4 Newline
; 16 AnsiPos
; 1 EndProc
; 1 DOpen
; 1 DCloseAll
; 2 DnCreate
; 2 DnOpen
; 1 DTop
; 3 DGo
; 1 DSeek
; 8 DGet
;
;
; ■ Functions used :
;
; 5 -
; 20 +
; 19 ==
; 2 <>
; 1 <
; 1 >
; 17 !
; 3 Chr()
; 2 Inkey()
; 2 String()
; 2 Mask_Ascii()
; 3 PPEPath()
; 5 ReadLine()
; 2 Exist()
; 2 LangExt()
; 2 PPEName()
; 3 DRecCount()
; 2 DRecNo()
; 1 DChkStat()
;
;------------------------------------------------------------------------------
;
; Analysis flags : No flag
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 0 For/Next
; 2 While/EndWhile
; 11 If/Then or If/Then/Else
; 2 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------