<% @ 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 '** '**************************************************************************************** 'Set the response buffer to true as we maybe redirecting 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 strReturnPage 'Holds the page to return to Dim strForumName 'Holds the forum name Dim intForumID 'Holds the fourum ID Dim intReadPermission 'holds the forums read permisisons Dim strSearchKeywords 'Holds the keywords to search for Dim strSearchMode 'Holds the search mode Dim strSearchUser 'Holds the user to search for Dim intCurrentRecord 'Holds the recordset array position Dim sarrySubscribedForums 'Holds the subscribed forums Dim sarrySubscribedTopics 'Holds the subscribed topics Dim sarryForumSelect 'Holds the array with all the forums Dim intSubForumID 'Holds if the forum is a sub forum Dim intTempRecord 'Temporay record store Dim blnHideForum 'Holds if the jump forum is hidden or not Dim strCatName 'Holds the category name Dim intCatID 'Holds the cat ID Dim intForumID2 'Holds the read in forum id intCurrentRecord = 0 'Read in values passed to this form intForumID2 = CInt(Request.QueryString("FID")) strSearchKeywords = Trim(Mid(Request.QueryString("KW"), 1, 35)) strSearchUser = Trim(Mid(Request.QueryString("USR"), 1, 25)) strSearchMode = Trim(Mid(Request.QueryString("SM"), 1, 3)) 'DB hit to get forums with cats and permissions, for the forum select drop down 'Initlise the sql statement strSQL = "" & _ "SELECT " & strDbTable & "Category.Cat_ID, " & strDbTable & "Category.Cat_name, " & strDbTable & "Forum.Forum_ID, " & strDbTable & "Forum.Sub_ID, " & strDbTable & "Forum.Forum_name, " & strDbTable & "Forum.Hide, " & strDbTable & "Permissions.View_Forum " & _ "FROM " & strDbTable & "Category" & strDBNoLock & ", " & strDbTable & "Forum" & strDBNoLock & ", " & strDbTable & "Permissions" & strDBNoLock & " " & _ "WHERE " & strDbTable & "Category.Cat_ID = " & strDbTable & "Forum.Cat_ID " & _ "AND " & strDbTable & "Forum.Forum_ID = " & strDbTable & "Permissions.Forum_ID " & _ "AND (" & strDbTable & "Permissions.Author_ID = " & lngLoggedInUserID & " OR " & strDbTable & "Permissions.Group_ID = " & intGroupID & ") " & _ "ORDER BY " & strDbTable & "Category.Cat_order, " & strDbTable & "Forum.Forum_Order;" 'Query the database rsCommon.Open strSQL, adoCon 'Place the subscribed topics into an array If NOT rsCommon.EOF Then 'Read in the row from the db using getrows for better performance sarryForumSelect = rsCommon.GetRows() End If 'Clean up rsCommon.Close Call closeDatabase() 'If active users is enabled update the active users application array If blnActiveUsers Then 'Call active users function saryActiveUsers = activeUsers("", strTxtSearchingForums, "search_form.asp", 0) End If %> <% = strMainForumName %> Arama <% '***** 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 ****** %>
<% = strTxtSearchTheForum %>
 <% = strMainForumName %><% = strNavSpacer %><% = strTxtSearchTheForum %>

<% = strTxtSearchKeywords %>
<% = strTxtSearchbyKeyWord %>
<% = strTxtSearchbyUserName %>
<% = strTxtMemberSearch %>  <% = strTxtExactMatch %>
<% = strTxtSearchOptions %>
<% = strTxtSearchForum %>
<% = strTxtCtrlApple %>
<% = strTxtSearchIn %>
<% = strTxtFindPosts %>
<% = strTxtSortResultsBy %>
<% = strTxtDisplayResultsAs %>

<% 'Display the process time If blnShowProcessTime Then Response.Write "

" & strTxtThisPageWasGeneratedIn & " " & FormatNumber(Timer() - dblStartTime, 3) & " " & strTxtSeconds & "
" %>