Exemplo n.º 1
0
         $vcard->data[$address_type . '_address'] = $address_street;
         $vcard->data[$address_type . '_extended_address'] = $address_extended;
         $vcard->data[$address_type . '_city'] = $address_locality;
         $vcard->data[$address_type . '_state'] = $address_region;
         $vcard->data[$address_type . '_postal_code'] = $address_postal_code;
         $vcard->data[$address_type . '_country'] = $address_country;
     }
     unset($prep_statement);
 }
 //download the vcard
 if ($_GET['type'] == "download") {
     $vcard->download();
 }
 //show the vcard in a text qr code
 if ($_GET['type'] == "text") {
     $vcard->build();
     $content = $vcard->card;
     if ($qr_vcard) {
         $qr_vcard = $content;
     } else {
         echo $content;
     }
 }
 //show the vcard in an image qr code
 if ($_GET['type'] == "image" || $_GET['type'] == "html") {
     $vcard->build();
     $content = $vcard->card;
     if (isset($_GET['debug'])) {
         echo "<pre>";
         print_r($vcard->data);
         echo "</pre>";