root/devel-backup/units/communities/main.php

Revision 131, 2.7 kB (checked in by ben, 3 years ago)

Membership moderation for communities

  • Property svn:eol-style set to native
Line 
1 <?php
2
3     // Communities module
4     
5     /*
6     
7         A brief explanation:
8         
9         Communities are a specialisation of users. Each community is just another
10         row in the users table, albeit with user_type set to 'community', which
11         allows it to have all the features of a regular user.
12         
13         Friendships are stored in the same way too, but displayed as memberships.
14         The 'owner' field of the users table stores the moderator for a community
15         (for regular users it's set to -1).
16         
17         TO DO:
18         
19             - Allow a moderator to restrict access to communities
20             - Allow moderators to delete all weblog postings and file uploads
21     
22     */
23     
24     // Add communities to access levels
25         $function['init'][] = path . "units/communities/communities_access_levels.php";
26     
27     // Communities actions
28         $function['communities:init'][] = path . "units/communities/communities_actions.php";
29         
30     // Communities modifications of friends actions
31         $function['friends:init'][] = path . "units/communities/communities_actions.php";
32     
33     // Communities bar down the right hand side
34         $function['display:sidebar'][] = path . "units/communities/communities_owned.php";
35         $function['display:sidebar'][] = path . "units/communities/community_memberships.php";
36
37     // 'Communities' aspect to the little menus beneath peoples' icons
38         $function['users:infobox:menu:text'][] = path . "units/communities/user_info_menu_text.php";
39         
40     // Permissions for communities
41         $function['permissions:check'][] = path . "units/communities/permissions_check.php";
42         
43     // View community memberships
44         $function['communities:editpage'][] = path . "units/communities/communities_edit_wrapper.php";
45         $function['communities:edit'][] = path . "units/communities/communities_edit.php";
46         $function['communities:members'][] = path . "units/communities/communities_members.php";
47         $function['communities:owned'][] = path . "units/communities/communities_moderator_of.php";
48         $function['communities:owned'][] = path . "units/communities/communities_create.php";
49
50     // Membership requests
51         $function['communities:requests:view'][] = path . "units/communities/communities_membership_requests.php";
52         
53     // Check access levels
54         $function['users:access_level_check'][] = path . "units/communities/communities_access_level_check.php";
55         
56     // Obtain SQL "where" string for access levels
57         $function['users:access_level_sql_where'][] = path . "units/communities/communities_access_level_sql_check.php";
58                 
59     // Link to edit icons
60         $function['profile:edit:link'][] = path . "units/communities/profile_edit_link.php";
61         
62     // Edit profile details
63         $function['userdetails:edit'][] = path . "units/communities/userdetails_edit.php";
64         
65     // Menu items
66         $function['menu:sub'][] = path . "units/communities/menu_sub.php";
67         
68 ?>
Note: See TracBrowser for help on using the browser.