<% @ 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 Response.Buffer = True 'Dimension variables Dim intForumID 'Holds the forum ID number Dim intCatID 'Holds the ID number of the category Dim intSubID 'Holds the sub forum ID Dim intMainForumID 'Holds the ID of the main forum is sub forum mode Dim strForumName 'Hold sthe forum name 'Initilise variables intCatID = 0 intForumID = 0 'Read in the details intForumID = CInt(Request.QueryString("FID")) 'If this is a post back update the database If Request.Form("postBack") Then 'Read in the sub ID intMainForumID = CInt(Request.Form("mainForum")) 'Get the Cat ID for this sub forum from the database strSQL = "SELECT " & strDbTable & "Forum.Cat_ID " & _ "From " & strDbTable & "Forum " & _ "WHERE " & strDbTable & "Forum.Forum_ID=" & intMainForumID & ";" 'Query the database rsCommon.Open strSQL, adoCon 'If there is a record get the Cat ID If NOT rsCommon.EOF Then intCatID = CInt(rsCommon("Cat_ID")) 'Reset rsCommon rsCommon.Close 'Update db strSQL = "UPDATE " & strDbTable & "Forum " & _ "SET " & strDbTable & "Forum.Sub_ID=" & intMainForumID & ", " & strDbTable & "Forum.Cat_ID=" & intCatID & " " & _ "WHERE " & strDbTable & "Forum.Forum_ID=" & intForumID & ";" adoCon.Execute(strSQL) 'Release server varaibles Call closeDatabase() Response.Redirect("admin_view_forums.asp" & strQsSID1) End If 'Get the forum name 'Initalise the strSQL variable with an SQL statement to query the database strSQL = "SELECT " & strDbTable & "Forum.Forum_name " & _ "From " & strDbTable & "Forum " & _ "WHERE " & strDbTable & "Forum.Forum_ID=" & intForumID & ";" 'Query the database rsCommon.Open strSQL, adoCon 'read in forum name If Not rsCommon.EOF Then strForumName = rsCommon("Forum_name") rsCommon.Close 'See if this forum has any sub forums 'Initalise the strSQL variable with an SQL statement to query the database strSQL = "SELECT " & strDbTable & "Forum.Forum_ID, " & strDbTable & "Forum.Cat_ID " & _ "From " & strDbTable & "Forum " & _ "WHERE " & strDbTable & "Forum.Sub_ID=" & intForumID & ";" 'Query the database rsCommon.Open strSQL, adoCon %> Ana Forumu Alt Forum Olarak Değiştirme <% '***** START WARNING - REMOVAL OR MODIFICATION OF THIS CODE WILL VIOLATE THE LICENSE AGREEMENT ****** Response.Write("") '***** END WARNING - REMOVAL OR MODIFICATION OF THIS CODE WILL VIOLATE THE LICENSE AGREEMENT ****** %>
'<%= strForumName %>' Ana Forumu Alt Forum Olarak Değiştirme
Kontrol Paneli Menüsü
Forum Yönetimi Sayfasına Geri Dön

<% 'If there is no main forum or cat then display a message If NOT rsCommon.EOF Then %>
'<%= strForumName %>' Bu foruma bağlı alt forumlar var, bu forumu alt forum yapmak için önce alt forumları kaldırın.

Forum Yönetimi Sayfasına Geri Dön
<% 'Close rs rsCommon.Close 'Display page to chnage forum to sub forum Else 'Close rs rsCommon.Close %>
Ana Forum Seçme
'<%= strForumName %>' İçinde bulunmasını istediğiniz ana forumu aşağıdaki açılır kutudan seçin.

<% End If 'Reset Server Objects Call closeDatabase() %>