added starttls support
[squirrelmail.git] / src / addressbook.php
index 419b73b920d1fe4ffb6616f4e8b83fe2c192930f..50b16a9229865842540c6ddc9bc152add5dce65b 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Manage personal address book.
  *
- * @copyright © 1999-2005 The SquirrelMail Project Team
+ * @copyright © 1999-2006 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
@@ -19,7 +19,7 @@
 define('SM_PATH','../');
 
 /** SquirrelMail required files. */
-require_once(SM_PATH . 'include/validate.php');
+include_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/forms.php');
@@ -284,7 +284,7 @@ if ($showaddrlist) {
                                 html_tag( 'th', _("Info") .
                                     show_abook_sort_button($abook_sort_order, _("sort by info"), 6, 7),
                                     'left', '', 'width="1%"' ) .
-                                  ($abook->add_extra_field ? html_tag( 'th', ' ','left', '', 'width="1%"'): '') . 
+                                  ($abook->add_extra_field ? html_tag( 'th', ' ','left', '', 'width="1%"'): '') .
                                 "\n",
                                 '', $color[9] ) . "\n";
                 }
@@ -328,8 +328,8 @@ if ($showaddrlist) {
                                ' ' ,
                                'center', '', 'valign="top" width="1%"' );
             }
-            echo html_tag( 'td', 
-                           ' ' . htmlspecialchars($row['nickname']) . ' ', 
+            echo html_tag( 'td',
+                           ' ' . htmlspecialchars($row['nickname']) . ' ',
                            'left', '', 'valign="top" width="1%" style="white-space: nowrap;"' );
 
             // different full name display formating for Japanese translation
@@ -338,7 +338,7 @@ if ($showaddrlist) {
                  * translation uses euc-jp character set internally.
                  * htmlspecialchars() should not break any characters.
                  */
-                echo html_tag( 'td', 
+                echo html_tag( 'td',
                                ' ' . htmlspecialchars($row['lastname']) . ' ' . htmlspecialchars($row['firstname']) . ' ',
                                'left', '', 'valign="top" width="1%" style="white-space: nowrap;"' );
             } else {
@@ -359,7 +359,7 @@ if ($showaddrlist) {
 
             // add extra column if third party backend needs it
             if ($abook->add_extra_field) {
-                echo html_tag( 'td', 
+                echo html_tag( 'td',
                                ' ' . (isset($row['extra']) ? $row['extra'] : '') . ' ',
                                'left', '', 'valign="top" width="1%"' );
             }
@@ -394,6 +394,5 @@ echo "</form>\n";
 echo "<!-- start of addressbook_bottom hook-->\n";
 do_hook('addressbook_bottom');
 echo "\n<!-- end of addressbook_bottom hook-->\n";
-
-?>
-</body></html>
\ No newline at end of file
+$oTemplate->display('footer.tpl');
+?>
\ No newline at end of file