Przeglądaj źródła

initial files for using vcard in the gui

centaurix 22 lat temu
rodzic
commit
26cadeaec0
2 zmienionych plików z 32 dodań i 0 usunięć
  1. 4 0
      functions/page_header.php
  2. 28 0
      src/addressbook_vcard.php

+ 4 - 0
functions/page_header.php

@@ -238,7 +238,11 @@ function displayPageHeader($color, $mailbox, $xtra='', $session=false) {
         displayInternalLink ("src/compose.php?mailbox=$urlMailbox", _("Compose"), 'right');
     } 
     echo "  \n";
+    if (getPref($data_dir, $username,"vcard")==1)  {
+      displayInternalLink ('src/addressbook_vcard.php', _("Addresses"), 'right');
+    } else {
     displayInternalLink ('src/addressbook.php', _("Addresses"), 'right');
+    }
     echo "  \n";
     displayInternalLink ('src/folders.php', _("Folders"), 'right');
     echo "  \n";

+ 28 - 0
src/addressbook_vcard.php

@@ -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>