<% @ 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 strMemberName 'Holds the name of the forum member Dim lngMemberID 'Holds the ID number of the member Dim intForumID 'Holds the forum ID number Dim intSelGroupID 'Holds the group ID to select Dim iaryForumID 'Holds the forum ID array 'Read in the details lngMemberID = CLng(Request("UID")) 'Read in the member name 'Initalise the strSQL variable with an SQL statement to query the database strSQL = "SELECT " & strDbTable & "Author.Username From " & strDbTable & "Author WHERE " & strDbTable & "Author.Author_ID=" & lngMemberID & ";" '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 strMemberName = rsCommon("Username") End If 'Release server varaibles 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.Forum_ID=" & iaryForumID & " AND " & strDbTable & "Permissions.Author_ID = " & lngMemberID & ";" '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("Author_ID") = lngMemberID .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 back to permissions page Response.Redirect("forum_user_permissions.asp?UID=" & lngMemberID) End If %> יצירת הרשאות משתמש
יצירת הרשאות עבור המשתמש <% = strMemberName %>
חזרה לתפריט הניהול
בחירת פורום אחר לשם יצירה, עריכה או מחיקת הרשאות פורום

השתמש בטופס למטה כדי ליצור הרשאות משתמש עבור המשתמש <% = strMemberName %>.

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

<% '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 %>
בחרו פורום שבו יוצרו הרשאות עבור המשתמש <% = strMemberName %>
" /> <% = rsCommon("Forum_Name") %>



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