<% '################################################################################# '## Copyright (C) 2000 Michael Anderson and Pierre Gorissen '## '## This program is free software; you can redistribute it and/or '## modify it under the terms of the GNU General Public License '## as published by the Free Software Foundation; either version 2 '## of the License, or any later version. '## '## All copyright notices regarding Snitz Forums 2000 '## must remain intact in the scripts and in the outputted HTML '## The "powered by" text/logo with a link back to '## http://forum.snitz.com in the footer of the pages MUST '## remain visible when the pages are viewed on the internet or intranet. '## '## This program is distributed in the hope that it will be useful, '## but WITHOUT ANY WARRANTY; without even the implied warranty of '## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the '## GNU General Public License for more details. '## '## You should have received a copy of the GNU General Public License '## along with this program; if not, write to the Free Software '## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. '## '## Support can be obtained from support forums at: '## http://forum.snitz.com '## '## Correspondence and Marketing Questions can be sent to: '## reinhold@bigfoot.com '## '## or '## '## Snitz Communications '## C/O: Michael Anderson '## PO Box 200 '## Harpswell, ME 04079 '################################################################################# dim mLev, strLoginStatus set my_Conn = Server.CreateObject("ADODB.Connection") my_Conn.Open strConnString if (strAuthType = "nt") then call NTauthenticate() if (ChkAccountReg() = "1") then call NTUser() end if end if strDBNTUserName = Request.Cookies(strUniqueID & "User")("Name") strDBNTFUserName = Request.Form("Name") if strAuthType = "nt" then strDBNTUserName = Session(strCookieURL & "userID") strDBNTFUserName = Session(strCookieURL & "userID") end if select case Request.Form("Method_Type") case "login" select case ChkUser2(strDBNTFUserName, Request.Form("Password")) case 1, 2, 3, 4 Call DoCookies(Request.Form("SavePassword")) strLoginStatus = 1 case else strLoginStatus = 0 end select case "logout" Call ClearCookies() end select mLev = cint(ChkUser2(strDBNTUserName, Request.Cookies(strUniqueID & "User")("Pword"))) Response.Write "" & vbcrlf & vbcrlf & _ "" & vbcrlf & _ "" & strForumTitle & "" & vbcrlf & _ "" & vbcrlf %>
<% =strForumTitle %> <% select case Request.Form("Method_Type") case "login" %>
<% =strForumTitle %>
Home | <% if strUseExtendedProfile then %> Profile <% else %> Profile <% end if if strAutoLogon <> 1 then %> | Register <% end if %> | Active Topics | Members | Search | FAQ
<% if strLoginStatus = 0 then%>

Your username and/or password were incorrect.

Please either try again or register for an account.

<% else %>

You logged on successfully!

Thank you for your participation.

<% end if %> ">

">Back To Forum

<% Response.End case "logout" %>

You logged out successfully!

Thank you for your participation.

">

">Back To Forum

<% Response.End end select if (ChkUser2((strDBNTUserName), (Request.Cookies(strUniqueID & "User")("Pword"))) = 0) then %>
" method="post" id=form1 name=form1> <% if (strAuthType = "db") then %> <%else if (strAuthType = "nt") then %> <% end if end if %> <% if (lcase(strEmail) = "1") then %> <% end if %>
Username:
Password:
<% if strGfxButtons <> "0" then %> <% else if strGfxButtons = "0" then %> <% end if end if %>
Save Password Please register to post in these Forums
Forgot your <% if strAuthType = "nt" then %>admin <% end if %>Password? <% if (lcase(strNoCookies) = "1") then %> | Admin Options <% end if %>
<% else %>
" method="post" id=form2 name=form2>
You are logged on as
<% if strAuthType="nt" then %> <% =Session(strCookieURL & "username")%> (<% =Session(strCookieURL & "userid") %>)
  <% else if strAuthType = "db" then %> <% = ChkString(strDBNTUserName, "display") %> <% if strGfxButtons <> "0" then %> <% else if strGfxButtons = "0" then %> <% end if end if end if end if %>
<% if (mlev = 4) or (lcase(strNoCookies) = "1") then %> Admin Options <% end if %>
<% end if %>