home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Beijing Paradise BBS Backup
/
PARADISE.ISO
/
software
/
BBSDOORW
/
PIN.ZIP
/
PIN.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1993-09-02
|
2KB
|
161 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
String STRING002
String STRING003
String STRING004
String STRING005
;------------------------------------------------------------------------------
INTEGER001 = 3
GetUser
If (Strip(U_Ver, " ") == "") Then
DispFile "\pcb\pin\newuser", 1
Goto LABEL001
Else
Goto LABEL006
Endif
:LABEL001
Newline
InputStr "Please enter a 4 digit Personal Identification Number (PIN): ", STRING002, 14, 4, "0123456789", 1
If (Len(STRING002) < 4) Then
Goto LABEL003
Else
Goto LABEL002
Endif
:LABEL002
Newline
Newline
Newline
InputStr "Please re-enter your number to verify: ", STRING003, 14, 4, "0123456789", 1
PrintLn "@CLS@@X0E"
If (STRING002 == STRING003) Then
Goto LABEL005
Else
Goto LABEL004
Endif
:LABEL003
Newline
PrintLn "@X00@X0CYou must enter a 4 digit number!@XFF"
Newline
Goto LABEL001
:LABEL004
Newline
PrintLn "@CLS@@X00@X0CThe PIN numbers entered do not match!@XFF"
Goto LABEL001
:LABEL005
DispFile "\pcb\pin\pinwarn", 1
PrintLn "@MORE@"
U_Ver = STRING002
PutUser
DispFile "\pcb\gen\newuser", 1
Goto LABEL008
:LABEL006
Newline
Newline
InputStr "Please enter your 4 digit PIN: ", STRING004, 14, 4, "0123456789", 1
If (STRING004 == U_Ver) Then
Goto LABEL008
Else
Log "Invalid PIN entered (" + STRING004 + ")", 0
Goto LABEL007
Endif
U_Ver = STRING002
PutUser
:LABEL007
Newline
PrintLn "@X00@X0CThe PIN you have entered is incorrect!@XFF"
Newline
InputStr "Please re-enter your PIN: ", STRING005, 14, 4, "0123456789", 1
If ((STRING005 <> U_Ver) && (INTEGER001 > 1)) Then
Log "Invalid PIN entered (" + STRING005 + ")", 0
Dec INTEGER001
Goto LABEL007
ElseIf (STRING005 == U_Ver) Then
Goto LABEL008
Endif
Message 0, "Sysop", U_Name(), "Invalid PIN", "R", 0, 0, 0, "\pcb\pin\sysmsg"
Log "Invalid PIN entered (" + STRING005 + ")", 0
Log "4 Invalid PIN attempts - Automatic Disconnect", 1
DispFile "\pcb\pin\hangup", 1
Hangup
:LABEL008
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 24 Goto
; 3 Let
; 5 PrintLn
; 6 If
; 4 DispFile
; 1 Hangup
; 1 GetUser
; 2 PutUser
; 4 Log
; 4 InputStr
; 1 Dec
; 11 Newline
; 1 Message
;
;
; ■ Functions used :
;
; 6 +
; 4 ==
; 1 <>
; 1 <
; 1 >
; 6 !
; 1 &&
; 1 Len(
; 1 U_Name()
; 1 Strip()
;
;------------------------------------------------------------------------------
;
; Analysis flags : WB
;
; W - Write user ■ 5
; Program writes a user record. Although this may be normal for a
; User Editor, it may also be a way to modify an account level.
; ■ Search for : PUTUSER
;
; B - Brute hangup ■ 1
; Program hangup without notification. This may be a good way to
; disconnect a user, but if used randomly, may be very nasty
; ■ Search for : HANGUP, DTROFF
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 0 For/Next
; 0 While/EndWhile
; 6 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------