<% @ Language=VBScript codepage=1255 %> <% Option Explicit %> <% '**************************************************************************************** '** Copyright Notice '** '** Web Wiz Guide - Web Wiz Forums '** '** Copyright 2001-2003 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 response buffer to true Response.Buffer = True 'Dimension variables Dim strForumName 'Holds the name of the forum Dim strGroupName 'Holds the name of the forum group Dim intUserGroupID 'Holds the ID number of the group Dim intSelGroupID 'Holds the group ID to select Dim intForumID 'Holds the forum ID number Dim iaryForumID 'Holds the forum ID array 'Read in the details intUserGroupID = CInt(Request.QueryString("GID")) 'Get the group name 'Initalise the strSQL variable with an SQL statement to query the database strSQL = "SELECT " & strDbTable & "Group.Name From " & strDbTable & "Group WHERE " & strDbTable & "Group.Group_ID=" & intUserGroupID & ";" 'Query the database rsCommon.Open strSQL, adoCon 'If there is a group name returned get the name If NOT rsCommon.EOF Then strGroupName = rsCommon("Name") 'Close rs rsCommon.Close 'If this is a post back update the database If Request.Form("postBack") Then 'Run through till all checked forums are added For each iaryForumID in Request.Form("chkFID") 'Initalise the strSQL variable with an SQL statement to query the database strSQL = "SELECT " & strDbTable & "Permissions.* From " & strDbTable & "Permissions WHERE " & strDbTable & "Permissions.Group_ID = " & intUserGroupID & " AND " & strDbTable & "Permissions.Forum_ID = " & iaryForumID & ";" 'Set the Lock Type for the records so that the record set is only locked when it is updated rsCommon.LockType = 3 'Query the database rsCommon.Open strSQL, adoCon With rsCommon 'If this is a new one add new If rsCommon.EOF Then .AddNew 'Update the recordset .Fields("Forum_ID") = iaryForumID .Fields("Group_ID") = intUserGroupID .Fields("Read") = CBool(Request.Form("read")) .Fields("Post") = CBool(Request.Form("post")) .Fields("Reply_posts") = CBool(Request.Form("reply")) .Fields("Edit_posts") = CBool(Request.Form("edit")) .Fields("Delete_posts") = CBool(Request.Form("delete")) .Fields("Priority_posts") = CBool(Request.Form("priority")) .Fields("Poll_create") = CBool(Request.Form("poll")) .Fields("Vote") = CBool(Request.Form("vote")) .Fields("Attachments") = CBool(Request.Form("files")) .Fields("Image_upload") = CBool(Request.Form("images")) .Fields("Moderate") = CBool(Request.Form("moderate")) 'Update the database with the new user's details .Update 'Close recordset .close End With Next 'Release server varaibles Set rsCommon = Nothing adoCon.Close Set adoCon = Nothing 'Redirect to main permisions page Response.Redirect("forum_group_permissions.asp?GID=" & intUserGroupID) End If %> יצירת הרשאות לקבוצות משתמשים
יצירת הרשאות קבוצות משתמשים עבור <% = strGroupName %>
חזרה לתפריט הניהול
בחרו פורום אחר כדי ליצור, לערוך, או למחוק בו הרשאות

השתמשו בטופס למטה כדי ליצור הרשאות בפורומים עבור קבוצת משתמשים <% = strGroupName %>.
הרשאות פורום עבור <% = strGroupName %>
גישה לפורום:
שליחת הודעות חדשות:
כתיבת תגובות להודעות:
עריכת הודעות:
מחיקת הודעות:
נושאים דביקים:
יצירת סקרים:
הצבעה הסקרים:
העלאת תמונות בהודעות:
אפשרו אפשרות זו רק אם התקנתם את הגדרות העלאת קבצים וסמלים אישיים, ואם השרת שלכם תומך באפשרות זו.
הוספת קבצים להודעות:
אפשרו אפשרות זו רק אם התקנתם את הגדרות העלאת קבצים וסמלים אישיים, ואם השרת שלכם תומך באפשרות זו.
ניהול פורום:
אפשרו אפשרות זאת רק אם ברצונכם להעניק לקבוצה אפשרויות ניהול בפורום זה.

<% 'Display the forums 'Initalise the strSQL variable with an SQL statement to query the database strSQL = "SELECT " & strDbTable & "Forum.Forum_Name, " & strDbTable & "Forum.Forum_ID FROM " & strDbTable & "Category, " & strDbTable & "Forum WHERE " & strDbTable & "Category.Cat_ID = " & strDbTable & "Forum.Cat_ID ORDER BY " & strDbTable & "Category.Cat_ORDER ASC, " & strDbTable & "Forum.Forum_Order ASC;" 'Query the database rsCommon.Open strSQL, adoCon %>
<% 'Loop round and display all the forums Do while NOT rsCommon.EOF %> <% 'Move next record rsCommon.MoveNext Loop %>
בחרו פורום שבו יוצרו הרשאות עבור קבוצת משתמשים <% = strGroupName %>
" /> <% = rsCommon("Forum_Name") %>


<% 'Reset Server Objects rsCommon.Close Set rsCommon = Nothing adoCon.Close Set adoCon = Nothing %>