aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-17 20:04:17 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-17 20:04:17 -0700
commit0f47ac282c30c61dbc13e42c4f53b2fc14d65593 (patch)
treeb56358665636f78c6e9a62f2abebfb75049cf447 /boot.php
parentf5a8a92df101cbf37fedb9ac3f7702f60a40772e (diff)
downloadvolse-hubzilla-0f47ac282c30c61dbc13e42c4f53b2fc14d65593.tar.gz
volse-hubzilla-0f47ac282c30c61dbc13e42c4f53b2fc14d65593.tar.bz2
volse-hubzilla-0f47ac282c30c61dbc13e42c4f53b2fc14d65593.zip
celebrity/group/community pages about 75% implemented
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php18
1 files changed, 12 insertions, 6 deletions
diff --git a/boot.php b/boot.php
index 3a9173ef8..eb3d1b06e 100644
--- a/boot.php
+++ b/boot.php
@@ -22,11 +22,16 @@ define ( 'REL_BUD', 3);
// page/profile types
+// PAGE_NORMAL is a typical personal profile account
+// PAGE_SOAPBOX automatically approves all friend requests as REL_FAN, (readonly)
+// PAGE_COMMUNITY automatically approves all friend requests as REL_FAN, but with
+// write access to wall and comments (no email and not included in page owner's ACL lists)
+// PAGE_FREELOVE automatically approves all friend requests as full friends (REL_BUD).
define ( 'PAGE_NORMAL', 0 );
-define ( 'PAGE_AUTO_FAN', 1 );
-define ( 'PAGE_AUTO_FAN_RW', 2 );
-define ( 'PAGE_AUTO_BUD', 3 );
+define ( 'PAGE_SOAPBOX', 1 );
+define ( 'PAGE_COMMUNITY', 2 );
+define ( 'PAGE_FREELOVE', 3 );
// Maximum number of "people who like (or don't like) this"
// that we will list by name
@@ -102,6 +107,7 @@ class App {
public $pager;
public $strings;
public $path;
+ public $interactive = true;
private $scheme;
private $hostname;
@@ -579,9 +585,9 @@ function remote_user() {
if(! function_exists('notice')) {
function notice($s) {
-
- $_SESSION['sysmsg'] .= $s;
-
+ $a = get_app();
+ if($a->interactive)
+ $_SESSION['sysmsg'] .= $s;
}}
// wrapper around config to limit the text length of an incoming message