X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fvcard.php;h=a1f8005e366aa9133cb55f42177967894305eb29;hb=cd60d6082e0060ed5d5182baa24e1cab6db5ad05;hp=693cabed70eefdfe2628dbb672c10bf6e8003613;hpb=202bcbcc2b67c7c153db1b09b608b62beeba0496;p=squirrelmail.git
diff --git a/src/vcard.php b/src/vcard.php
index 693cabed..a1f8005e 100644
--- a/src/vcard.php
+++ b/src/vcard.php
@@ -5,27 +5,35 @@
*
* This file shows an attched vcard
*
- * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @copyright © 1999-2007 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
*/
+/** This is the vcard page */
+define('PAGE_NAME', 'vcard');
+
/**
* Include the SquirrelMail initialization file.
*/
require('../include/init.php');
/* SquirrelMail required files. */
-require_once(SM_PATH . 'functions/mime.php');
-require_once(SM_PATH . 'functions/url_parser.php');
-require_once(SM_PATH . 'functions/imap_general.php');
-require_once(SM_PATH . 'functions/imap_messages.php');
+
+/** imap functions depend on date functions */
+include_once(SM_PATH . 'functions/date.php');
+/** form functions */
+include_once(SM_PATH . 'functions/forms.php');
+/** mime decoding */
+include_once(SM_PATH . 'functions/mime.php');
+/** url parser */
+include_once(SM_PATH . 'functions/url_parser.php');
+/** imap functions used to retrieve vcard */
+include_once(SM_PATH . 'functions/imap_general.php');
+include_once(SM_PATH . 'functions/imap_messages.php');
/* globals */
-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);
@@ -33,25 +41,16 @@ sqgetGlobalVar('ent_id', $ent_id, SQ_GET);
sqgetGlobalVar('startMessage', $startMessage, SQ_GET);
/* end globals */
-$imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
+$imapConnection = sqimap_login($username, false, $imapServerAddress, $imapPort, 0);
sqimap_mailbox_select($imapConnection, $mailbox);
-displayPageHeader($color, 'None');
-
-echo '
' .
- _("Viewing a Business Card") . " - ";
+displayPageHeader($color);
$msg_url = 'read_body.php?mailbox='.urlencode($mailbox).
'&startMessage='.urlencode($startMessage).
'&passed_id='.urlencode($passed_id);
-
$msg_url = set_url_var($msg_url, 'ent_id', 0);
-echo ''. _("View message") . '' .
- ' | ||
' . - sprintf(_("vCard Version %s is not supported. Some information might not be converted correctly."), - htmlspecialchars($vcard_nice['version'])) . - " | ||
' . - '
- |
-
- | ||||||||
- -
| ||||||||
-' . - _("Download this as a file") . ''; -?> - |
- |