From 9c875a8ab58ff6da12bb34e141b92eb4d1c6c847 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 4 Sep 2012 03:34:36 -0700 Subject: this should get local posts almost working --- boot.php | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) (limited to 'boot.php') diff --git a/boot.php b/boot.php index d9d90bcd4..e979d614a 100644 --- a/boot.php +++ b/boot.php @@ -173,6 +173,62 @@ define ( 'PERMS_FRIEND', PERMS_VISIBLE|PERMS_TRANSMIT|PERMS_RECEIVE| define ( 'PERMS_COMMUNITY', PERMS_VISIBLE|PERMS_RECEIVE|PERMS_COMMENT|PERMS_POSTWALL|PERMS_TAGWALL| PERMS_SEEABOOK|PERMS_SEEPERMS); // Public group profile +// General channel permissions + + +define ( 'PERMS_PUBLIC_VIEW_STREAM' , 0x00000001 ); +define ( 'PERMS_SERVICE_VIEW_STREAM' , 0x00000002 ); +define ( 'PERMS_SITE_VIEW_STREAM' , 0x00000004 ); +define ( 'PERMS_CONTACTS_VIEW_STREAM' , 0x00000008 ); +define ( 'PERMS_SPECIFIC_VIEW_STREAM' , 0x00000010 ); + +define ( 'PERMS_PUBLIC_VIEW_PROFILE' , 0x00000020 ); +define ( 'PERMS_SERVICE_VIEW_PROFILE' , 0x00000040 ); +define ( 'PERMS_SITE_VIEW_PROFILE' , 0x00000080 ); +define ( 'PERMS_CONTACTS_VIEW_PROFILE' , 0x00000100 ); +define ( 'PERMS_SPECIFIC_VIEW_PROFILE' , 0x00000200 ); + +define ( 'PERMS_PUBLIC_VIEW_PHOTOS' , 0x00000400 ); +define ( 'PERMS_SERVICE_VIEW_PHOTOS' , 0x00000800 ); +define ( 'PERMS_SITE_VIEW_PHOTOS' , 0x00001000 ); +define ( 'PERMS_CONTACTS_VIEW_PHOTOS' , 0x00002000 ); +define ( 'PERMS_SPECIFIC_VIEW_PHOTOS' , 0x00004000 ); + +define ( 'PERMS_PUBLIC_VIEW_CONTACTS' , 0x00008000 ); +define ( 'PERMS_SERVICE_VIEW_CONTACTS' , 0x00010000 ); +define ( 'PERMS_SITE_VIEW_CONTACTS' , 0x00020000 ); +define ( 'PERMS_CONTACTS_VIEW_CONTACTS' , 0x00040000 ); +define ( 'PERMS_SPECIFIC_VIEW_CONTACTS' , 0x00080000 ); + +define ( 'PERMS_PUBLIC_POST_STREAM' , 0x00000001 ); +define ( 'PERMS_SERVICE_POST_STREAM' , 0x00000002 ); +define ( 'PERMS_SITE_POST_STREAM' , 0x00000004 ); +define ( 'PERMS_CONTACTS_POST_STREAM' , 0x00000008 ); +define ( 'PERMS_SPECIFIC_POST_STREAM' , 0x00000010 ); + +define ( 'PERMS_PUBLIC_POST_WALL' , 0x00000020 ); +define ( 'PERMS_SERVICE_POST_WALL' , 0x00000040 ); +define ( 'PERMS_SITE_POST_WALL' , 0x00000080 ); +define ( 'PERMS_CONTACTS_POST_WALL' , 0x00000100 ); +define ( 'PERMS_SPECIFIC_POST_WALL' , 0x00000200 ); + + +define ( 'PERMS_PUBLIC_POST_COMMENTS' , 0x00000400 ); +define ( 'PERMS_SERVICE_POST_COMMENTS' , 0x00000800 ); +define ( 'PERMS_SITE_POST_COMMENTS' , 0x00001000 ); +define ( 'PERMS_CONTACTS_POST_COMMENTS' , 0x00002000 ); +define ( 'PERMS_SPECIFIC_POST_COMMENTS' , 0x00004000 ); + +define ( 'PERMS_PUBLIC_POST_MAIL' , 0x00008000 ); +define ( 'PERMS_SERVICE_POST_MAIL' , 0x00010000 ); +define ( 'PERMS_SITE_POST_MAIL' , 0x00020000 ); +define ( 'PERMS_CONTACTS_POST_MAIL' , 0x00040000 ); +define ( 'PERMS_SPECIFIC_POST_MAIL' , 0x00080000 ); + +define ( 'DEFAULT_VIEW_PERMS', PERMS_SPECIFIC_VIEW_STREAM | PERMS_SPECIFIC_VIEW_PROFILE | PERMS_SPECIFIC_VIEW_PHOTOS | PERMS_SPECIFIC_VIEW_CONTACTS ); + +define ( 'DEFAULT_POST_PERMS', PERMS_SPECIFIC_POST_STREAM | PERMS_SPECIFIC_POST_WALL | PERMS_SPECIFIC_POST_COMMENTS | PERMS_SPECIFIC_POST_MAIL ); + /** * Maximum number of "people who like (or don't like) this" that we will list by name */ -- cgit v1.2.3