diff options
-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 f00819522..a8dc5c5c8 100644 --- a/mod/zfinger.php +++ b/mod/zfinger.php @@ -123,6 +123,20 @@ function zfinger_init(&$a) { } } + $ret['site'] = array(); + $ret['site']['url'] = z_root(); + $dirmode = get_config('system','directory_mode'); + if(($dirmode === false) || ($dirmode == DIRECTORY_MODE_NORMAL)) + $ret['site']['directory_mode'] = 'normal'; + if($dirmode == DIRECTORY_MODE_MASTER) + $ret['site']['directory_mode'] = 'master'; + elseif($dirmode == DIRECTORY_MODE_SECONDARY) + $ret['site']['directory_mode'] = 'secondary'; + elseif($dirmode == DIRECTORY_MODE_STANDALONE) + $ret['site']['directory_mode'] = 'standalone'; + if($dirmode != DIRECTORY_MODE_NORMAL) + $ret['site']['directory_url'] = z_root() . '/dir'; + json_return_and_die($ret); }
\ No newline at end of file |