diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 15:09:48 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 15:09:48 -0300 |
commit | 7d9fff84991467dfe4d28f206663f50e38dbbc6d (patch) | |
tree | 47355573880b175fed210689363c10d6f2d77d2b /mod/foafssl/views/foaf/foafssl/profile.php | |
parent | 80ea7ce46f9f6f760570370ff45f73cf29c9e5af (diff) | |
parent | 4fb376687dc1546f51e637cae1478582309f85f0 (diff) | |
download | elgg-7d9fff84991467dfe4d28f206663f50e38dbbc6d.tar.gz elgg-7d9fff84991467dfe4d28f206663f50e38dbbc6d.tar.bz2 |
Merge commit '4fb376687dc1546f51e637cae1478582309f85f0' as 'mod/foafssl'
Diffstat (limited to 'mod/foafssl/views/foaf/foafssl/profile.php')
-rw-r--r-- | mod/foafssl/views/foaf/foafssl/profile.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mod/foafssl/views/foaf/foafssl/profile.php b/mod/foafssl/views/foaf/foafssl/profile.php new file mode 100644 index 000000000..b11708a32 --- /dev/null +++ b/mod/foafssl/views/foaf/foafssl/profile.php @@ -0,0 +1,16 @@ +<?php +$user = $vars['user']; +if ($user) { + $options = array('types'=>'object','subtypes'=>'sslkey','owner_guid'=>$user->getGUID()); + $userkeys = elgg_get_entities($options); + foreach($userkeys as $key) { +?> +<rsa:RSAPublicKey> + <cert:identity rdf:resource="#me"/> + <rsa:public_exponent cert:decimal="<?php echo $key->exponent; ?>"/> + <rsa:modulus cert:hex="<?php echo $key->modulus; ?>"/> +</rsa:RSAPublicKey> +<?php + } +} +?> |