aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-28 19:56:14 -0700
committerfriendica <info@friendica.com>2012-03-28 19:56:14 -0700
commit60fe74ce970468be187664198529dbd8d5a01a6c (patch)
treef82ca4e42eca45536cfae97f4422ba3193c6fcc9
parent3f89adfd62dc433bf75d193b84d4cfb47de3358b (diff)
downloadvolse-hubzilla-60fe74ce970468be187664198529dbd8d5a01a6c.tar.gz
volse-hubzilla-60fe74ce970468be187664198529dbd8d5a01a6c.tar.bz2
volse-hubzilla-60fe74ce970468be187664198529dbd8d5a01a6c.zip
network permission ids
-rwxr-xr-xboot.php24
1 files changed, 23 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index 9582372ca..b02e686ba 100755
--- a/boot.php
+++ b/boot.php
@@ -95,8 +95,8 @@ define ( 'PAGE_BLOG', 4 );
* Network and protocol family types
*/
-define ( 'NETWORK_ZOT', 'zot!'); // Zot!
define ( 'NETWORK_DFRN', 'dfrn'); // Friendica, Mistpark, other DFRN implementations
+define ( 'NETWORK_ZOT', 'zot!'); // Zot!
define ( 'NETWORK_OSTATUS', 'stat'); // status.net, identi.ca, GNU-social, other OStatus implementations
define ( 'NETWORK_FEED', 'feed'); // RSS/Atom feeds with no known "post/notify" protocol
define ( 'NETWORK_DIASPORA', 'dspr'); // Diaspora
@@ -108,6 +108,28 @@ define ( 'NETWORK_XMPP', 'xmpp'); // XMPP
define ( 'NETWORK_MYSPACE', 'mysp'); // MySpace
define ( 'NETWORK_GPLUS', 'goog'); // Google+
+/*
+ * These numbers are used in stored permissions
+ * and existing allocations MUST NEVER BE CHANGED
+ * OR RE-ASSIGNED! You may only add to them.
+ */
+
+$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),
+);
+
+
/**
* Maximum number of "people who like (or don't like) this" that we will list by name
*/