|
|
@ -90,7 +90,7 @@ begin
|
|
|
|
end;
|
|
|
|
end;
|
|
|
|
|
|
|
|
|
|
|
|
begin
|
|
|
|
begin
|
|
|
|
TextColor(8);
|
|
|
|
TextColor(DarkGray);
|
|
|
|
Writeln('Tourplanner');
|
|
|
|
Writeln('Tourplanner');
|
|
|
|
Writeln('Written by J.Riegel.');
|
|
|
|
Writeln('Written by J.Riegel.');
|
|
|
|
TextColor(White);
|
|
|
|
TextColor(White);
|
|
|
@ -125,8 +125,13 @@ begin
|
|
|
|
|
|
|
|
|
|
|
|
for j := 0 to 2 do
|
|
|
|
for j := 0 to 2 do
|
|
|
|
begin
|
|
|
|
begin
|
|
|
|
WriteLn('Password: ');
|
|
|
|
Write('Password: ');
|
|
|
|
|
|
|
|
cursoroff;
|
|
|
|
|
|
|
|
TextColor(Black);
|
|
|
|
|
|
|
|
TextBackground(Black);
|
|
|
|
ReadLn(readinput);
|
|
|
|
ReadLn(readinput);
|
|
|
|
|
|
|
|
TextColor(White);
|
|
|
|
|
|
|
|
cursoron;
|
|
|
|
|
|
|
|
|
|
|
|
if MD5Print(MD5String(readinput)) = users[i].pw then
|
|
|
|
if MD5Print(MD5String(readinput)) = users[i].pw then
|
|
|
|
begin
|
|
|
|
begin
|
|
|
@ -135,7 +140,11 @@ begin
|
|
|
|
Break;
|
|
|
|
Break;
|
|
|
|
end
|
|
|
|
end
|
|
|
|
else
|
|
|
|
else
|
|
|
|
|
|
|
|
begin
|
|
|
|
|
|
|
|
TextColor(Red);
|
|
|
|
WriteLn('Wrong password! ', 2 - j, ' trys left.');
|
|
|
|
WriteLn('Wrong password! ', 2 - j, ' trys left.');
|
|
|
|
|
|
|
|
TextColor(White);
|
|
|
|
|
|
|
|
end;
|
|
|
|
end;
|
|
|
|
end;
|
|
|
|
{ @section userfunctions }
|
|
|
|
{ @section userfunctions }
|
|
|
|
if correct = true then
|
|
|
|
if correct = true then
|
|
|
@ -144,6 +153,10 @@ begin
|
|
|
|
users[i].l := true;
|
|
|
|
users[i].l := true;
|
|
|
|
end;
|
|
|
|
end;
|
|
|
|
if usersuccess = false then
|
|
|
|
if usersuccess = false then
|
|
|
|
|
|
|
|
begin
|
|
|
|
|
|
|
|
TextColor(Red);
|
|
|
|
WriteLn('User not found');
|
|
|
|
WriteLn('User not found');
|
|
|
|
|
|
|
|
TextColor(White);
|
|
|
|
|
|
|
|
end;
|
|
|
|
end;
|
|
|
|
end;
|
|
|
|
end.
|
|
|
|
end.
|
|
|
|