Category : Communication (modem) tools and utilities
Archive   : FIDOT892.ZIP
Filename : LOGIN.SCR

 
Output of file : LOGIN.SCR contained in archive : FIDOT892.ZIP
;
;LOGIN.SCR: Main user login function. Returns 1 if
;login was successful.
;
input: minput "Enter your name please: "
output "\r\n"
if "" input ;ignore blank lines
message "&s attempting to login" ;local status...

search: fread ;read one record (&1...&10)
jerror not-found ;oops, end of file...
if "&1" pwd ;if it matches go check password
jmp search

pwd: &a= 3 ;try up to three times
message "Password entry"
pwd1: minput "Enter your password: " ;get the password,
output "\r\n"
if "&2" done ;if it matches, fine,
output "Wrong!\r\n" ;else complain
djnz pwd1 ;try again

wrong_password:
output "Sorry, please contact the system operator.\r\n\r\n"
return 0

not-found:
output "Sorry, you do not have access to this system.\r\n\r\n"
return 0

done: &r= &1 ;remember user name
output "\r\n"
return 1 ;success!


  3 Responses to “Category : Communication (modem) tools and utilities
Archive   : FIDOT892.ZIP
Filename : LOGIN.SCR

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/