<% @ 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 intForumID 'Holds the forum ID number Dim blnRead Dim blnPost Dim blnReply Dim blnEdit Dim blnDelete Dim blnPriority Dim blnPollCreate Dim blnVote Dim blnAttachments Dim blnImageUpload Dim blnModerateForum 'Read in the details intForumID = CInt(Request("FID")) intUserGroupID = CInt(Request("GID")) 'Read in the forum name 'Initalise the strSQL variable with an SQL statement to query the database strSQL = "SELECT " & strDbTable & "Forum.* From " & strDbTable & "Forum WHERE " & strDbTable & "Forum.Forum_ID=" & intForumID & ";" 'Query the database rsCommon.Open strSQL, adoCon 'Read in the forum name form the recordset If NOT rsCommon.EOF Then 'Read in the forums from the recordset strForumName = rsCommon("Forum_name") End If 'Release server varaibles rsCommon.Close 'Read in the user 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 'Read in the forum name form the recordset If NOT rsCommon.EOF Then 'Read in the user group name from the recordset strGroupName = rsCommon("Name") End If 'Release server varaibles rsCommon.Close 'Initalise the strSQL variable with an SQL statement to query the database strSQL = "SELECT " & strDbTable & "Permissions.* From " & strDbTable & "Permissions WHERE " & strDbTable & "Permissions.Forum_ID=" & intForumID & " AND " & strDbTable & "Permissions.Group_ID = " & intUserGroupID & ";" '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 'If this is a post back update the database If Request.Form("postBack") Then With rsCommon 'Update the recordset .Fields("Forum_ID") = intForumID .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 'Read back in detials from the db .Requery 'Release server varaibles rsCommon.Close Set rsCommon = Nothing adoCon.Close Set adoCon = Nothing 'Redirect to main permisions page Response.Redirect("forum_group_permissions.asp?GID=" & intUserGroupID) End With End If 'Read in the forum details from the recordset If NOT rsCommon.EOF Then 'Read in the forums from the recordset blnRead = CBool(rsCommon("Read")) blnPost = CBool(rsCommon("Post")) blnReply = CBool(rsCommon("Reply_posts")) blnEdit = CBool(rsCommon("Edit_posts")) blnDelete = CBool(rsCommon("Delete_posts")) blnPriority = CBool(rsCommon("Priority_posts")) blnPollCreate = CBool(rsCommon("Poll_create")) blnVote = CBool(rsCommon("Vote")) blnAttachments = CBool(rsCommon("Attachments")) blnImageUpload = CBool(rsCommon("Image_upload")) blnModerateForum = CBool(rsCommon("Moderate")) End If 'Release server varaibles rsCommon.Close %> עריכת הרשאות קבוצה
עריכת הרשאות עבור קבוצת משתמשים <% = strGroupName %>
חזרה לתפריט הניהול
בחירת פורום אחר לשם יצירה, עריכה או מחיקת הרשאות פורום

השתמשו בטופס למטה כדי לערוך את הרשאות קבוצת המשתמשים <% = strGroupName %> עבור הפורום <% = strForumName %>

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


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