diff options
author | zotlabs <mike@macgirvin.com> | 2017-01-15 21:23:43 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-01-15 21:23:43 -0800 |
commit | e5662dc89367dc70f6a07282c807807261503726 (patch) | |
tree | 1c5fb77dabe043af58d9aada32abfc0d2ec939f6 /Zotlabs | |
parent | 0ef2cd871956a45cf947e976c59b1d29744959b6 (diff) | |
download | volse-hubzilla-e5662dc89367dc70f6a07282c807807261503726.tar.gz volse-hubzilla-e5662dc89367dc70f6a07282c807807261503726.tar.bz2 volse-hubzilla-e5662dc89367dc70f6a07282c807807261503726.zip |
vcard export from profile
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Profile.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Zotlabs/Module/Profile.php b/Zotlabs/Module/Profile.php index 9e868db92..0bc23952b 100644 --- a/Zotlabs/Module/Profile.php +++ b/Zotlabs/Module/Profile.php @@ -60,7 +60,9 @@ class Profile extends \Zotlabs\Web\Controller { } $groups = array(); - + + + $tab = 'profile'; $o = ''; @@ -69,6 +71,15 @@ class Profile extends \Zotlabs\Web\Controller { return; } + + + if(argc() > 2 && argv(2) === 'vcard') { + header('Content-type: text/vcard'); + header('content-disposition: attachment; filename="' . t('vcard') . '-' . $profile['channel_address'] . '.vcf"' ); + echo \App::$profile['profile_vcard']; + killme(); + } + $is_owner = ((local_channel()) && (local_channel() == \App::$profile['profile_uid']) ? true : false); |