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 | |
parent | 36f63573c5cd471f3296dff0a277900093267cf3 (diff) | |
download | volse-hubzilla-c5d456af9be934335323012385c63c93a070e82e.tar.gz volse-hubzilla-c5d456af9be934335323012385c63c93a070e82e.tar.bz2 volse-hubzilla-c5d456af9be934335323012385c63c93a070e82e.zip |
add more siteinfo
-rw-r--r-- | include/crypto.php | 2 | ||||
-rw-r--r-- | mod/zfinger.php | 14 |
2 files changed, 14 insertions, 2 deletions
diff --git a/include/crypto.php b/include/crypto.php index 1a62d60af..a0268ef93 100644 --- a/include/crypto.php +++ b/include/crypto.php @@ -17,8 +17,6 @@ function rsa_verify($data,$sig,$key,$alg = 'sha256') { return $verify; } - - function pkcs5_pad ($text, $blocksize) { $pad = $blocksize - (strlen($text) % $blocksize); 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 |