<% @ Language=VBScript %> <% Option Explicit %> <% '**************************************************************************************** '** Copyright Notice '** '** Web Wiz Guide - Web Wiz Forums '** '** Copyright 2001-2004 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: - '** info@webwizguide.info '** '** or at: - '** '** Web Wiz Guide, PO Box 4982, Bournemouth, BH8 8XP, United Kingdom '** '**************************************************************************************** 'Set the buffer to true Response.Buffer = True 'Declare variables Dim intRowColourNumber 'Holds the number to calculate the table row colour Dim blnIsUserOnline 'Set to true if the user is online Dim intForumID 'Initialise variable intRowColourNumber = 0 'If the user is user is using a banned IP redirect to an error page If bannedIP() Then 'Clean up Set rsCommon = Nothing adoCon.Close Set adoCon = Nothing 'Redirect Response.Redirect("insufficient_permission.asp?M=IP") End If 'If Priavte messages are not on then send them away If blnPrivateMessages = False Then 'Clean up Set rsCommon = Nothing adoCon.Close Set adoCon = Nothing 'Redirect Response.Redirect("default.asp") End If 'If the user is not allowed then send them away If intGroupID = 2 OR blnActiveMember = False Then 'Clean up Set rsCommon = Nothing adoCon.Close Set adoCon = Nothing 'Redirect Response.Redirect("insufficient_permission.asp") End If %> Private Messenger: Buddy List
<% = strTxtPrivateMessenger %>
 <% = strMainForumName %><% = strNavSpacer %><% = strTxtPrivateMessenger %>
<% = strTxtSubjectFolder %> <% = strTxtPrivateMessenger & ": " & strTxtBuddyList %> <% = strTxtPrivateMessenger & " border="0"><% = strTxtPrivateMessenger & " border="0"><% = strTxtPrivateMessenger & " border="0"><% = strTxtNewPrivateMessage %>
<% If blnActiveUsers Then %> <% End If %> <% 'Get the users buddy detals from the db 'Initlise the sql statement strSQL = "SELECT " & strDbTable & "BuddyList.*, " & strDbTable & "Author.Username, " & strDbTable & "Author.Author_ID " strSQL = strSQL & "FROM " & strDbTable & "Author, " & strDbTable & "BuddyList " strSQL = strSQL & "WHERE " & strDbTable & "Author.Author_ID = " & strDbTable & "BuddyList.Buddy_ID AND " & strDbTable & "BuddyList.Author_ID=" & lngLoggedInUserID & " AND " & strDbTable & "BuddyList.Buddy_ID <> 2 " strSQL = strSQL & "ORDER BY " & strDbTable & "BuddyList.Block ASC, " & strDbTable & "Author.Username ASC;" 'Query the database rsCommon.Open strSQL, adoCon 'Check there are PM messages to display If rsCommon.EOF Then 'If there are no pm messages to display then display the appropriate error message Response.Write vbCrLf & "" 'Else there the are topic's so write the HTML to display the topic names and a discription Else 'Loop round to read in all the Topics in the database Do while NOT rsCommon.EOF 'Get the row number intRowColourNumber = intRowColourNumber + 1 %> <% 'If active users is enabled see if any buddies are online If blnActiveUsers Then 'Initilase variable blnIsUserOnline = False 'Get the users online status For intArrayPass = 1 To UBound(saryActiveUsers, 2) If saryActiveUsers(1, intArrayPass) = CLng(rsCommon("Buddy_ID")) Then blnIsUserOnline = True Next %> <% End If %> <% 'Move to the next recordset rsCommon.MoveNext Loop End If 'clear up rsCommon.Close %>
<% = strTxtBuddy %> <% = strTxtDescription %> <% = strTxtContactStatus %><% = strTxtOnLine2 %><% = strTxtDelete %>
" & strTxtNoBuddysInList & "
','profile','toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width=590,height=425')"><% = rsCommon("Username") %> <% = rsCommon("Description") %>  <% 'Get the contact status If rsCommon("Block") = True Then Response.Write(strTxtThisPersonCanNotMessageYou) Else Response.Write(strTxtThisPersonCanMessageYou) End If %><% If blnIsUserOnline Then Response.Write("") Else Response.Write("") %>" OnClick="return confirm('<% = strTxtDeleteBuddyAlert %>')"><% = strTxtDelete %>

<% = strTxtAddNewBuddyToList %>
<% = strTxtMemberName %> <% = strTxtDescription %> <% = strTxtAllowThisMemberTo %>  
2 Then Response.Write(Server.HTMLEncode(Request.QueryString("name"))) %>"> <% = strTxtMemberSearch %> 2 Then Response.Write(Server.HTMLEncode(Request.QueryString("desc"))) %>">


<% 'Clear server objects Set rsCommon = Nothing adoCon.Close Set adoCon = Nothing '***** START WARNING - REMOVAL OR MODIFICATION OF THIS CODE WILL VIOLATE THE LICENSE AGREEMENT ****** If blnLCode = True Then If blnTextLinks = True Then Response.Write("Powered by Web Wiz Forums version " & strVersion & "") Else Response.Write("") End If Response.Write("
Copyright ©2001-2004 Web Wiz Guide") End If '***** END 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, 4) & " " & strTxtSeconds & "
" %>
<% 'Display a msg letting the user know any add or delete details to the buddy list Select Case Request.QueryString("ER") Case "1" Response.Write("") Case "2" Response.Write("") End Select %>