示例#1
0
文件: profile.php 项目: Ekleog/platal
 function handler_vcard($page, $x = null)
 {
     if (is_null($x)) {
         return PL_NOT_FOUND;
     }
     global $globals;
     if (substr($x, -4) == '.vcf') {
         $x = substr($x, 0, strlen($x) - 4);
     }
     $vcard = new VCard();
     $vcard->addProfile(Profile::get($x, Profile::FETCH_ALL));
     $vcard->show();
 }