<% @ Language=VBScript %> <% Option Explicit %> <% '**************************************************************************************** '** Copyright Notice '** '** Web Wiz Guide - Web Wiz Forums '** http://www.webwizforums.com '** '** Copyright 2001-2006 Bruce Corkhill All Rights Reserved. '** '** This program is free software; you can modify (at your own risk) any part of it '** under the terms of the License that accompanies this software and use it both '** privately and commercially. '** '** All copyright notices must remain in tacked in the scripts and the '** outputted HTML. '** '** You may use parts of this program in your own private work, but you may NOT '** redistribute, repackage, or sell the whole or any part of this program even '** if it is modified or reverse engineered in whole or in part without express '** permission from the author. '** '** You may not pass the whole or any part of this application off as your own work. '** '** All links to Web Wiz Guide and powered by logo's must remain unchanged and in place '** and must remain visible when the pages are viewed unless permission is first granted '** by the copyright holder. '** '** This program is distributed in the hope that it will be useful, '** but WITHOUT ANY WARRANTY; without even the implied warranty of '** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR ANY OTHER '** WARRANTIES WHETHER EXPRESSED OR IMPLIED. '** '** You should have received a copy of the License along with this program; '** if not, write to:- Web Wiz Guide, PO Box 4982, Bournemouth, BH8 8XP, United Kingdom. '** '** '** No official support is available for this program but you may post support questions at: - '** http://www.webwizguide.info/forum '** '** Support questions are NOT answered by e-mail ever! '** '** For correspondence or non support questions contact: - '** '** Web Wiz Guide, Unit 10E, Dawkins Road Industrial Estate, Poole, Dorset, UK, BH15 4JD '** '**************************************************************************************** Response.Buffer = True 'Make sure this page is not cached Response.Expires = -1 Response.ExpiresAbsolute = Now() - 2 Response.AddHeader "pragma","no-cache" Response.AddHeader "cache-control","private" Response.CacheControl = "No-Store" 'Dimension variables Dim strUsername 'Holds the users username Dim strPassword 'Holds the usres password Dim blnAutoLogin 'Holds whether the user wnats to be automactically logged in Dim lngUserID 'Holds the users Id number Dim strUserCode 'Holds the users ID code Dim intForumID 'Holds the forum ID Dim lngLoopCounter 'Holds the loop counter Dim blnIncorrectLogin 'Set to true if login is incorrect Dim blnSecurityCodeOK 'Set to false if the security is not OK Dim strReferer 'Holds the page to return to Dim blnActive 'Set to true if user is active Dim blnCAPTCHArequired 'Set to true if CAPTCHA is required Dim intLoginResponse 'Holds the login response from the login function 'Intialise variables blnAutoLogin = false blnIncorrectLogin = false blnCAPTCHArequired = false blnSecurityCodeOK = true 'read in the forum ID number If isNumeric(Request.QueryString("FID")) Then intForumID = CInt(Request.QueryString("FID")) Else intForumID = 0 End If 'Read in the users details from the form strUsername = Trim(Mid(Request.Form("name"), 1, 15)) strPassword = LCase(Trim(Mid(Request.Form("password"), 1, 15))) blnAutoLogin = CBool(Request.Form("AutoLogin")) 'If a username has been entered check that the password is correct If strUsername <> "" Then 'Call the function to login the user intLoginResponse = CInt(loginUser(strUsername, strPassword, blnCAPTCHArequired, "user")) 'Key to loginUser function '0 = Login Failed '1 = Login OK '2 = CAPTCHA Code OK '3 = CAPTCHA Code Incorrect '4 = CAPTHCA required 'If login reponse is 0 then login has failed If intLoginResponse = 0 Then blnIncorrectLogin = True 'If login reponse is 3 Then CAPTCHA security code was incorrect If intLoginResponse = 3 Then blnSecurityCodeOK = False blnCAPTCHArequired = True End If 'If the login response is 1 the user is logged in If intLoginResponse = 1 Then 'Reset Server Objects Call closeDatabase() 'If this is a redierect form the email notify unsubscribe page to get the user to log in then redirct back there If Request.QueryString("M") = "Unsubscribe" Then Response.Redirect("login_user_test.asp?TID=" & Request.QueryString("TID") & "&FID=" & intForumID & "&M=Unsubscribe" & strQsSID2) 'Redirect the user back to the forum they have just come from ElseIf intForumID > 0 Then Response.Redirect("login_user_test.asp?FID=" & intForumID & strQsSID2) 'Return to forum homepage Else Response.Redirect("login_user_test.asp" & strQsSID1) End If End If End If 'Setup username field strUsername = Server.HTMLEncode(strUsername) 'Setup password feild If blnIncorrectLogin Then strPassword = "" Else strPassword = Server.HTMLEncode(strPassword) End If 'If active users is enabled update the active users application array If blnActiveUsers Then 'Call active users function saryActiveUsers = activeUsers("", strTxtLoginUser, "login_user.asp", 0) End If %> Üye Girişi <% '***** START WARNING - REMOVAL OR MODIFICATION OF THIS CODE WILL VIOLATE THE LICENSE AGREEMENT ****** Response.Write("" & vbCrLf & vbCrLf) '***** END WARNING - REMOVAL OR MODIFICATION OF THIS CODE WILL VIOLATE THE LICENSE AGREEMENT ****** %>
<% = strTxtLoginUser %>
 <% = strMainForumName %><% = strNavSpacer %><% = strTxtLoginUser %>

<% 'If the user has unsuccesfully tried logging in before then display a password incorrect error If blnIncorrectLogin OR blnCAPTCHArequired OR (blnSecurityCodeOK = False AND Request.Form("securityCode") <> "") Then %>
<% = strTxtError %>
<% 'If the login has failed (for extra security only say the password is incorect if the security code matches) If blnIncorrectLogin AND blnSecurityCodeOK Then Response.Write("
" & strTxtSorryUsernamePasswordIncorrect & "
" & strTxtPleaseTryAgain & "
") 'If the security code is incorrect If blnSecurityCodeOK = False AND Request.Form("securityCode") <> "" Then Response.Write("
" & Replace(strTxtSecurityCodeDidNotMatch, "\n\n", "
") & "
") 'If CAPTCHA s require let the user know If blnCAPTCHArequired Then Response.Write("
" & strTxt3LoginAtteptsMade) %>
<% End If %>
<% = strClickHereIfNotRegistered %>


<% '***** START WARNING - REMOVAL OR MODIFICATION OF THIS CODE WILL VIOLATE THE LICENSE AGREEMENT ****** 'Display the process time If blnShowProcessTime Then Response.Write "

" & strTxtThisPageWasGeneratedIn & " " & FormatNumber(Timer() - dblStartTime, 3) & " " & strTxtSeconds & "
" %>
<% 'Reset Server Objects Call closeDatabase() 'If the user has unsuccesfully tried logging in before then display a password incorrect error '(for extra security only say the password is incorect if the security code matches) If blnIncorrectLogin AND blnSecurityCodeOK Then Response.Write(vbCrLf & "") End If 'If the security code did not match If blnSecurityCodeOK = False AND Request.Form("securityCode") <> "" Then Response.Write(vbCrLf & "") End If %>