The below program is meant to be used as a login script that you must use, it is for another program I made... it all works fine, but I did edit this program to remove passwords and etc... so anything that cannot be done logged off, won't work.
Thanks for any and all help, including the help I was given earlier.
Program StartUpAuth;
uses dos;
uses Reboot;
const
pwrd = 'd347h3464';
usrname = 'DarknessX';
var
cmd: String;
s: String;
username: String;
password: String;
Procedure Shut_Down_Windows;
begin
writeln('DarknessX Authentication Server');
writeln('Please type your username.');
readln(username);
if usrname = username then
begin
writeln('Please type your password now.');
readln(password);
if pwrd = password then
writeln(' Verifying...');
end;
begin
if username <> 'DarknessX' then
writeln('Sorry. No cheating the system...');
RebootMach;
if password <> 'd347h3464' then
writeln('Sorry. No cheating the system...');
RebootMach;
end;
writeln('Welcome to the WinXP Command Line Interface.');
writeln('Please type "help" for a list of commands.');
writeln('If you wish to skip this, please type "exit"');
writeln('CMD..');
read(cmd);
write(cmd);
if cmd <> 'exit' then
writeln('Sorry, this command line interface has no extra commands available');
if cmd = 'help' then
writeln('The WinXP CLI, made by DarknessX, currently has no features.');
writeln('The only feature it has is Authentication.');
if cmd = 'exit' then
end;
end.
One error occurs with this, and that is if I use both Uses dos; and uses Reboot; then it won't compile- it tells me that its supposed to have a begin between the uses dos; and the uses Reboot;... Any reason why?
other than that, this program compiles fine, and seems to work fine, aswell. However, if I enter the wrong login details, it simply freezes. I have the required files for my shutdown procedure, and I believe it works, but... It just doesn't want to work for me.. Like I said above, it simply freezes.