diff options
author | friendica <info@friendica.com> | 2013-07-23 22:33:56 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-07-23 22:33:56 -0700 |
commit | 9288c2e63637879cc2e431a23a94633b69d8e4a5 (patch) | |
tree | 8eca22d8101539e2e694d4ebe3eedc1a6fd8a306 /mod/zfinger.php | |
parent | fd09cfa1dfd5fdff9a4271b3ba7425b698e5cbef (diff) | |
download | volse-hubzilla-9288c2e63637879cc2e431a23a94633b69d8e4a5.tar.gz volse-hubzilla-9288c2e63637879cc2e431a23a94633b69d8e4a5.tar.bz2 volse-hubzilla-9288c2e63637879cc2e431a23a94633b69d8e4a5.zip |
start saving site info
Diffstat (limited to 'mod/zfinger.php')
-rw-r--r-- | mod/zfinger.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/zfinger.php b/mod/zfinger.php index d438940a1..50f4d0afe 100644 --- a/mod/zfinger.php +++ b/mod/zfinger.php @@ -173,6 +173,8 @@ function zfinger_init(&$a) { $ret['site'] = array(); $ret['site']['url'] = z_root(); + $ret['site']['url_sig'] = base64url_encode(rsa_sign(z_root(),$e['channel_prvkey'])); + $dirmode = get_config('system','directory_mode'); if(($dirmode === false) || ($dirmode == DIRECTORY_MODE_NORMAL)) $ret['site']['directory_mode'] = 'normal'; @@ -192,6 +194,10 @@ function zfinger_init(&$a) { if($register_policy == REGISTER_OPEN) $ret['site']['register_policy'] = 'open'; + require_once('include/account.php'); + $ret['site']['accounts'] = account_total(); + $ret['site']['admin'] = get_config('system','admin_email'); + json_return_and_die($ret); }
\ No newline at end of file |