Happy New Year
[squirrelmail.git] / templates / default / vcard.tpl
index d89cd426ad0aefb4b18378986f843ea72d11d135..b8b9a426e45a014c2c5ac20a27710ee0e8bfd8d7 100644 (file)
@@ -2,11 +2,24 @@
 /**
  * vcard.tpl
  *
- * Description
+ * Template to display a vCard
  * 
  * The following variables are available in this template:
+ *      $view_message_link  - URL to go back to the message
+ *      $download_link      - URL to download the vCard
+ *      $nickname           - Default nickname for the address book add form
+ *      $firstname          - First name for the address book add from
+ *      $last name          - Last name for the add form
+ *      $email              - Email for the add form
+ *      $info               - array of Additional info for the add form.  May be
+ *                            empty if no additional info is provided by the
+ *                            card.  Index of each element is the value for the
+ *                            option, value of each element is the name.
+ *      $vcard              - array containing vCard data, scrubbed and i-18-n'ed.
+ *                            Index of each element is the field name, value of
+ *                            each element is the field value.
  *
- * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @copyright 1999-2018 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
@@ -54,6 +67,7 @@ extract($t);
  </tr>
 </table>
 <form action="../src/addressbook.php" method="post" name="f_add">
+<input type="hidden" name="smtoken" value="<?php echo sm_generate_security_token(); ?>" />
 <input type="hidden" name="addaddr[firstname]" value="<?php echo $firstname; ?>" />
 <input type="hidden" name="addaddr[lastname]" value="<?php echo $lastname; ?>" />
 <table cellspacing="0" class="table1">
@@ -117,4 +131,4 @@ extract($t);
  </tr>
 </table>
 </form>
-</div>
\ No newline at end of file
+</div>