aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-09-04 03:34:36 -0700
committerfriendica <info@friendica.com>2012-09-04 03:34:36 -0700
commit9c875a8ab58ff6da12bb34e141b92eb4d1c6c847 (patch)
tree4a6288e69fcdad9ffdbe719104d74664f7fc4e3f /boot.php
parent2df083efb10c1282b33900b588c0d39987f3c9b2 (diff)
downloadvolse-hubzilla-9c875a8ab58ff6da12bb34e141b92eb4d1c6c847.tar.gz
volse-hubzilla-9c875a8ab58ff6da12bb34e141b92eb4d1c6c847.tar.bz2
volse-hubzilla-9c875a8ab58ff6da12bb34e141b92eb4d1c6c847.zip
this should get local posts almost working
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php56
1 files changed, 56 insertions, 0 deletions
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
*/