diff options
author | friendica <info@friendica.com> | 2013-07-24 20:35:54 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-07-24 20:35:54 -0700 |
commit | c5d456af9be934335323012385c63c93a070e82e (patch) | |
tree | 9b1f5bb488f438696e32cd7f1fd5a85b764d7516 /mod/zfinger.php | |
parent | 36f63573c5cd471f3296dff0a277900093267cf3 (diff) | |
download | volse-hubzilla-c5d456af9be934335323012385c63c93a070e82e.tar.gz volse-hubzilla-c5d456af9be934335323012385c63c93a070e82e.tar.bz2 volse-hubzilla-c5d456af9be934335323012385c63c93a070e82e.zip |
add more siteinfo
Diffstat (limited to 'mod/zfinger.php')
-rw-r--r-- | mod/zfinger.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mod/zfinger.php b/mod/zfinger.php index 12a24259e..8e0a7d141 100644 --- a/mod/zfinger.php +++ b/mod/zfinger.php @@ -201,8 +201,22 @@ function zfinger_init(&$a) { $ret['site']['channels'] = channel_total(); + $ret['site']['version'] = RED_PLATFORM . ' ' . RED_VERSION . '[' . DB_UPDATE_VERSION . ']'; + $ret['site']['admin'] = get_config('system','admin_email'); + $visible_plugins = array(); + if(is_array($a->plugins) && count($a->plugins)) { + $r = q("select * from addon where hidden = 0"); + if($r) + foreach($r as $rr) + $visible_plugins[] = $rr['name']; + } + + $ret['site']['plugins'] = $visible_plugins; + $ret['site']['sitehash'] = get_config('system','location_hash'); + $ret['site']['sitename'] = get_config('system','sitename'); + json_return_and_die($ret); }
\ No newline at end of file |