X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fvcard.php;h=401e12087b3e2ac6a641e1237a4d9601ec03b951;hb=ecaf63527e8e4fea88480a896813419b3f5cefb5;hp=417ea07c3f74158648d6bedb6d663d522963238a;hpb=40a9d8b3c9e481f732027b3c0ea8050f111150d0;p=squirrelmail.git diff --git a/src/vcard.php b/src/vcard.php index 417ea07c..401e1208 100644 --- a/src/vcard.php +++ b/src/vcard.php @@ -22,14 +22,14 @@ require_once(SM_PATH . 'functions/mime.php'); require_once(SM_PATH . 'include/load_prefs.php'); /* globals */ -$key = $_COOKIE['key']; -$username = $_SESSION['username']; -$onetimepad = $_SESSION['onetimepad']; -$mailbox = decodeHeader($_GET['mailbox']); -$passed_id = (int) $_GET['passed_id']; -$ent_id = $_GET['ent_id']; -$passed_ent_id = $_GET['passed_ent_id']; -$startMessage = (int) $_GET['startMessage']; +sqgetGlobalVar('username', $username, SQ_SESSION); +sqgetGlobalVar('key', $key, SQ_COOKIE); +sqgetGlobalVar('onetimepad', $onetimepad, SQ_SESSION); + +sqgetGlobalVar('passed_id', $passed_id, SQ_GET); +sqgetGlobalVar('mailbox', $mailbox, SQ_GET); +sqgetGlobalVar('ent_id', $ent_id, SQ_GET); +sqgetGlobalVar('startMessage', $startMessage, SQ_GET); /* end globals */ $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); @@ -115,10 +115,11 @@ $ShowValues = array( echo '
' . '' . "\n"; -if (isset($vcard_safe['email;internet'])) { $vcard_safe['email;internet'] = '' . $vcard_safe['email;internet'] . - ''; +if (isset($vcard_safe['email;internet'])) { + $vcard_safe['email;internet'] = makeComposeLink('src/compose.php?send_to='.urlencode($vcard_safe['email;internet']), + $vcard_safe['email;internet']); } + if (isset($vcard_safe['url'])) { $vcard_safe['url'] = '' . $vcard_safe['url'] . ''; @@ -210,7 +211,7 @@ echo '' . '
' . '' . + '&ent_id=' . urlencode($ent_id) . '">' . _("Download this as a file") . '' . '
' .