initial files for using vcard in the gui
authorcentaurix <centaurix@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 21 Jan 2003 21:05:08 +0000 (21:05 +0000)
committercentaurix <centaurix@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 21 Jan 2003 21:05:08 +0000 (21:05 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4444 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/page_header.php
src/addressbook_vcard.php [new file with mode: 0644]

index 00c26d4f2f728365ebd698d5f539b67a0830dc3b..568053be4c7ace8553f0785486f6f1a442cd16aa 100644 (file)
@@ -238,7 +238,11 @@ function displayPageHeader($color, $mailbox, $xtra='', $session=false) {
         displayInternalLink ("src/compose.php?mailbox=$urlMailbox", _("Compose"), 'right');
     } 
     echo "&nbsp;&nbsp;\n";
+    if (getPref($data_dir, $username,"vcard")==1)  {
+      displayInternalLink ('src/addressbook_vcard.php', _("Addresses"), 'right');
+    } else {
     displayInternalLink ('src/addressbook.php', _("Addresses"), 'right');
+    }
     echo "&nbsp;&nbsp;\n";
     displayInternalLink ('src/folders.php', _("Folders"), 'right');
     echo "&nbsp;&nbsp;\n";
diff --git a/src/addressbook_vcard.php b/src/addressbook_vcard.php
new file mode 100644 (file)
index 0000000..f3d1c98
--- /dev/null
@@ -0,0 +1,28 @@
+<?php
+
+/**
+ * addressbook.php
+ *
+ * Copyright (c) 1999-2003 The SquirrelMail Project Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
+ *
+ * Addressbook vcard, sm@sels.com
+ *
+ * $Id$
+ */
+
+/* Path for SquirrelMail required files. */
+define('SM_PATH','../');
+
+/* SquirrelMail required files. */
+require_once(SM_PATH . 'include/validate.php');
+require_once(SM_PATH . 'functions/display_messages.php');
+require_once(SM_PATH . 'functions/addressbook.php');
+require_once(SM_PATH . 'functions/strings.php');
+require_once(SM_PATH . 'functions/html.php');
+
+/* Add hook for anything that wants on the bottom */
+do_hook('addressbook_bottom');
+?>
+
+</BODY></HTML>