home *** CD-ROM | disk | FTP | other *** search
- {Warning!!! You must run PASSINT.COM to make your password. The program
- will not work without the file PASS.FIL on the disk.
- Call my board at (203) 875-3647 to leave comments/suggestions.}
- {$C-}
- const
- max = 1;
-
- type
- password = record
- pass: string[9]; {Sets up the password record}
- end;
- var
- pass_file: file of password;
- pass_rec: password;
- entry: string[9];
- i,j,h: integer;
-
- begin {Opens PASS.FIL to get your password}
- assign(pass_file,'PASS.FIL'); reset(pass_file);
- for h := 1 to max do
- begin
- read(pass_file,pass_rec); {Reads password record}
- with pass_rec do
- begin
- repeat
- clrscr;
- textcolor(0); {Makes characters invisible}
- readln(entry); {Get the password}
- if entry <> pass then {This here is the siren routine}
- for j := 1 to 10 do
- begin
- for i := 200 to 2300 do
- sound(i);
- nosound;
- delay(100);
- end;
- until Entry = pass;
- end;
- end;
- close(pass_file);
- clrscr;
- normvideo;
- writeln('Correct entry. Access to system granted.');
- delay(1000);
- writeln(' ');
- writeln('PASSWORD: A Turbo Pascal program');
- writeln('Version 3.1 - 1/23/86');
- writeln('Programmed by Bruce Walton. PROTECTWARE - Share it freely');
- writeln('Call my RBBS at (203) 875-3647 to leave comments/suggestions');
- writeln('Type "CLS" if you cannot see your DOS prompt.');
- end.