These two ID number 0 and 2 (2 being the guest account) are issued to non logged in users.
Really it should be:-
'If the user has not logged in then show them a quick login form If lngLoggedInUserID = 2 Then |
as all non logged in users should have the guest account ID number of 2 but I guess I got a bit carried away.
The whole lot hs been updated since my first post on it to be:-
<% 'If the user has not logged in (guest user ID = 2) then show them a quick login form If lngLoggedInUserID = 2 Then Response.Write(vbCrLf & " <td align=""right"" class=""smText""><form method=""post"" name=""frmLogin"" action=""login_user.asp"">" & strTxtQuickLogin & " " & _ vbCrLf & " <input type=""text"" size=""10"" name=""name"" class=""smText"" />" & _ vbCrLf & " <input type=""password"" size=""10"" name=""password"" class=""smText"" />" & _ "<input type=""hidden"" name=""AutoLogin"" value=""False"" />" & _ "<input type=""hidden"" name=""ActiveUsers"" value=""True"" />" & _ "<input type=""hidden"" name=""sessionID"" value=""" & Session.SessionID & """ />" & _ vbCrLf & " <input type=""submit"" value=""" & strTxtGo & """ class=""smText"">" & _ vbCrLf & " </form></td>") End If %> |
Also the following needs adding to the language_file_inc.asp file:-
Edited by -boRg-