home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Beijing Paradise BBS Backup
/
PARADISE.ISO
/
software
/
BBSDOORW
/
PIN.ZIP
/
PIN.PPS
< prev
next >
Wrap
Text File
|
1993-09-02
|
2KB
|
92 lines
string pin
string pin2
string test
string test2
integer i
integer maxtries
let maxtries=3
getuser
if (strip(u_ver," ")="") then
dispfile "\pcb\pin\newuser",graph
goto newuser
else
goto verify
endif
:newuser
newline
inputstr "Please enter a 4 digit Personal Identification Number (PIN): ",pin,@X0E,4,"0123456789",echodots
if (len(pin)<4) then
goto nice_try
else
goto check
endif
:check
newline
newline
newline
inputstr "Please re-enter your number to verify: ",pin2,@X0E,4,"0123456789",echodots
println "@CLS@@X0E"
if (pin=pin2) then
goto finish
else
goto wrong
endif
:nice_try
newline
println "@X00@X0CYou must enter a 4 digit number!@XFF"
newline
goto newuser
:wrong
newline
println "@CLS@@X00@X0CThe PIN numbers entered do not match!@XFF"
goto newuser
:finish
dispfile "\pcb\pin\pinwarn",graph
println "@MORE@"
let u_ver=pin
putuser
dispfile "\pcb\gen\newuser",graph
goto end
:verify
newline
newline
inputstr "Please enter your 4 digit PIN: ",test,@X0E,4,"0123456789",echodots
if (test=u_ver) then
goto end
else
log "Invalid PIN entered ("+test+")",false
goto screwed_up
endif
:done
let u_ver=pin
putuser
:screwed_up
newline
println "@X00@X0CThe PIN you have entered is incorrect!@XFF"
newline
inputstr "Please re-enter your PIN: ",test2,@X0E,4,"0123456789",echodots
if ((test2 <> u_ver) & (maxtries > 1)) then
log "Invalid PIN entered ("+test2+")",false
dec maxtries
goto screwed_up
else if (test2=u_ver)
goto end
endif
message 0,"Sysop",u_name(),"Invalid PIN","R",0,false,false,"\pcb\pin\sysmsg"
log "Invalid PIN entered ("+test2+")",false
log "4 Invalid PIN attempts - Automatic Disconnect",true
dispfile "\pcb\pin\hangup",graph
hangup
:end