diff options
author | friendica <info@friendica.com> | 2013-08-06 17:15:41 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-08-06 17:15:41 -0700 |
commit | 99bd0712b6170b337de6d1c31db7c66ad8a18767 (patch) | |
tree | 88c84722833fa1deeea20efc4e1cac3e2f49a0bc /mod/zfinger.php | |
parent | 687ea0ca249b20f790be2dcedc1ca8d60a76135d (diff) | |
download | volse-hubzilla-99bd0712b6170b337de6d1c31db7c66ad8a18767.tar.gz volse-hubzilla-99bd0712b6170b337de6d1c31db7c66ad8a18767.tar.bz2 volse-hubzilla-99bd0712b6170b337de6d1c31db7c66ad8a18767.zip |
Add a site access policy (to determine if this is really a public site or just an open site) and add an orphan flag to xchans in case all their hublocs go away. Get rid of a couple of DO NOT EDIT template messages which were still lurking in the tree.
Diffstat (limited to 'mod/zfinger.php')
-rw-r--r-- | mod/zfinger.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mod/zfinger.php b/mod/zfinger.php index a3da62162..cf61233ad 100644 --- a/mod/zfinger.php +++ b/mod/zfinger.php @@ -202,6 +202,16 @@ function zfinger_init(&$a) { if($register_policy == REGISTER_OPEN) $ret['site']['register_policy'] = 'open'; + + $access_policy = intval(get_config('system','access_policy')); + + if($access_policy == ACCESS_PRIVATE) + $ret['site']['access_policy'] = 'private'; + if($access_policy == ACCESS_PAID) + $ret['site']['access_policy'] = 'paid'; + if($access_policy == ACCESS_FREE) + $ret['site']['access_policy'] = 'free'; + require_once('include/account.php'); $ret['site']['accounts'] = account_total(); |