| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 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 |
|
|---|
| 28 |
$function['communities:init'][] = path . "units/communities/communities_actions.php"; |
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 |
$function['friends:init'][] = path . "units/communities/communities_actions.php"; |
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
$function['display:sidebar'][] = path . "units/communities/communities_owned.php"; |
|---|
| 35 |
$function['display:sidebar'][] = path . "units/communities/community_memberships.php"; |
|---|
| 36 |
|
|---|
| 37 |
|
|---|
| 38 |
$function['users:infobox:menu:text'][] = path . "units/communities/user_info_menu_text.php"; |
|---|
| 39 |
|
|---|
| 40 |
|
|---|
| 41 |
$function['permissions:check'][] = path . "units/communities/permissions_check.php"; |
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 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 |
|
|---|
| 51 |
$function['communities:requests:view'][] = path . "units/communities/communities_membership_requests.php"; |
|---|
| 52 |
|
|---|
| 53 |
|
|---|
| 54 |
$function['users:access_level_check'][] = path . "units/communities/communities_access_level_check.php"; |
|---|
| 55 |
|
|---|
| 56 |
|
|---|
| 57 |
$function['users:access_level_sql_where'][] = path . "units/communities/communities_access_level_sql_check.php"; |
|---|
| 58 |
|
|---|
| 59 |
|
|---|
| 60 |
$function['profile:edit:link'][] = path . "units/communities/profile_edit_link.php"; |
|---|
| 61 |
|
|---|
| 62 |
|
|---|
| 63 |
$function['userdetails:edit'][] = path . "units/communities/userdetails_edit.php"; |
|---|
| 64 |
|
|---|
| 65 |
|
|---|
| 66 |
$function['menu:sub'][] = path . "units/communities/menu_sub.php"; |
|---|
| 67 |
|
|---|
| 68 |
?> |
|---|