From a7c1c22a2a9a5088f0961556bf58e4177005043d Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 16 Aug 2012 21:41:07 -0700 Subject: new contact edit mockup - verdict: too complicated, must simplify --- boot.php | 38 ++++++++++++++++++-------------------- 1 file changed, 18 insertions(+), 20 deletions(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 88b31efc8..b2b92d0ea 100644 --- a/boot.php +++ b/boot.php @@ -151,29 +151,27 @@ define ( 'NETWORK_GPLUS', 'goog'); // Google+ define ( 'NETWORK_PHANTOM', 'unkn'); // Place holder + /** - * These numbers are used in stored permissions - * and existing allocations MUST NEVER BE CHANGED - * OR RE-ASSIGNED! You may only add to them. + * Permissions */ -$netgroup_ids = array( - NETWORK_DFRN => (-1), - NETWORK_ZOT => (-2), - NETWORK_OSTATUS => (-3), - NETWORK_FEED => (-4), - NETWORK_DIASPORA => (-5), - NETWORK_MAIL => (-6), - NETWORK_MAIL2 => (-7), - NETWORK_FACEBOOK => (-8), - NETWORK_LINKEDIN => (-9), - NETWORK_XMPP => (-10), - NETWORK_MYSPACE => (-11), - NETWORK_GPLUS => (-12), - - NETWORK_PHANTOM => (-127), -); - +define ( 'PERMS_VISIBLE', 0x0001); // Can be seen in my public address book +define ( 'PERMS_TRANSMIT', 0x0002); // Can post to my stream +define ( 'PERMS_RECEIVE', 0x0004); // Can receive my posts +define ( 'PERMS_COMMENT', 0x0008); // Can comment on my posts +define ( 'PERMS_POSTWALL', 0x0010); // Can post to my wall if I allow wall posts +define ( 'PERMS_TAGWALL', 0x0020); // Can post to my wall via tags (e.g. community groups) +define ( 'PERMS_MAIL', 0x0040); // Can send me email +define ( 'PERMS_SEEABOOK', 0x0080); // Can see my address book if it's not public +define ( 'PERMS_CHAT', 0x0100); // Can IM me (when available) +define ( 'PERMS_SEEPERMS', 0x7000); // Can see these permissions + +define ( 'PERMS_FRIEND', PERMS_VISIBLE|PERMS_TRANSMIT|PERMS_RECEIVE|PERMS_COMMENT|PERMS_POSTWALL|PERMS_MAIL| + PERMS_SEEABOOK|PERMS_CHAT|PERMS_SEEPERMS ); // Can do anything but tag post + +define ( 'PERMS_COMMUNITY', PERMS_VISIBLE|PERMS_RECEIVE|PERMS_COMMENT|PERMS_POSTWALL|PERMS_TAGWALL| + PERMS_SEEABOOK|PERMS_SEEPERMS); // Public group profile /** * Maximum number of "people who like (or don't like) this" that we will list by name -- cgit v1.2.3