diff options
author | friendica <info@friendica.com> | 2013-06-20 18:36:02 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-06-20 18:36:02 -0700 |
commit | 61601dc23d3e8305720bfc4e4e6b6dbd7b85f546 (patch) | |
tree | 63d9e661fdeb1bbf83e6ec19187b852657383191 /mod/zfinger.php | |
parent | dd9d32bcb3dc8ab8a4cf0c9658f01dfba24f7db4 (diff) | |
download | volse-hubzilla-61601dc23d3e8305720bfc4e4e6b6dbd7b85f546.tar.gz volse-hubzilla-61601dc23d3e8305720bfc4e4e6b6dbd7b85f546.tar.bz2 volse-hubzilla-61601dc23d3e8305720bfc4e4e6b6dbd7b85f546.zip |
Add site registration policy to site record. This is not yet used or stored, but potentially can be exchanged through directory mirrors to automatically create "open site" lists.
Diffstat (limited to 'mod/zfinger.php')
-rw-r--r-- | mod/zfinger.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mod/zfinger.php b/mod/zfinger.php index 48582b3d6..460f157b6 100644 --- a/mod/zfinger.php +++ b/mod/zfinger.php @@ -181,7 +181,14 @@ function zfinger_init(&$a) { $ret['site']['directory_mode'] = 'standalone'; if($dirmode != DIRECTORY_MODE_NORMAL) $ret['site']['directory_url'] = z_root() . '/dirsearch'; - + $register_policy = intval(get_config('system','register_policy')); + if($register_policy == REGISTER_CLOSED) + $ret['site']['register_policy'] = 'closed'; + if($register_policy == REGISTER_APPROVE) + $ret['site']['register_policy'] = 'approve'; + if($register_policy == REGISTER_OPEN) + $ret['site']['register_policy'] = 'open'; + json_return_and_die($ret); }
\ No newline at end of file |