home *** CD-ROM | disk | FTP | other *** search
- {
- keyfile generating program. this should not be available directly to users
- you can, however, make such a scheme part of the main program, and only
- let users specify their data, and return the HEX-CODE for them to enter
- in the registration-scheme. You can also give them the file directly,
- e.g. to give them a temporary key. (or a HEX-CODE to create the key them
- selves. (this latter is still not possible, I need to work out a scheme).
- }
-
- uses
- crt, eco_reg
-
- ;
-
-
- const
- cs : string = 'demopwd';
-
- var
- chk : string;
-
-
- {main}begin
- textcolor(0); textbackground(0);
- readln(chk);
- textcolor(7); textbackground(0);
- writeln('This program should only be available to the author of the application.');
- if cs = chk then begin
- with validuser do begin
- registered := 'Floor A.C. Naaijkens';
- programkey := 'e';
- upgradecode := 'Rel2.1';
- end;
- writeln('Enter the name:');
- readln(validuser.registered);
- writeln('Enter the level:');
- readln(validuser.keylevel);
- getcreator(validuser);
- writeln(validuser.keycreator);
- end else writeln('No password');
- {happy}end.
-