$user['virtualalias'] = $res->fetchOneCell();
+ // get photo
+ $res = XDB::query(
+ "SELECT attach
+ FROM photo AS p
+ INNER JOIN aliases AS a ON (a.id = p.uid AND a.type = 'a_vie')
+ WHERE a.alias = {?}", $login);
+ if ($res->numRows()) {
+ $user['photo'] = $res->fetchOneCell();
+ }
$page->assign_by_ref('vcard', $user);
header("Pragma: ");
{else}
NOTE;ENCODING=QUOTED-PRINTABLE:{"(X`$vcard.promo`)\n`$vcard.libre`"|qp_enc}
{/if}
+{if $vcard.photo}
+PHOTO;BASE64:{$vcard.photo|base64_encode}
+{/if}
SORT-STRING;ENCODING=QUOTED-PRINTABLE:{$vcard.nom|qp_enc}
REV:{$vcard.date|date_format:"%Y%m%dT000000Z"}
END:VCARD