aboutsummaryrefslogtreecommitdiffstats
path: root/mod/zfinger.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/zfinger.php')
-rw-r--r--mod/zfinger.php14
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