All this document.write stuff is overkill when we already have checkForJavascript...
[squirrelmail.git] / plugins / abook_take / functions.php
index f91814faeda8b263da030f4ff28d5bbac2d2c6af..e9918a0ca9756c86fac6acede82b4a78282da361 100644 (file)
@@ -3,20 +3,16 @@
 /**
  * functions.php
  *
- * Copyright (c) 1999-2004 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
  * Functions for the Address Take plugin
  *
- * $Id$
+ * @copyright © 1999-2007 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
+ * @version $Id$
  * @package plugins
  * @subpackage abook_take
  */
 
-/* SquirrelMail required files. */
-require_once(SM_PATH . 'functions/url_parser.php');
-require_once(SM_PATH . 'functions/forms.php');
-
+/** */
 function valid_email ($email, $verify)
 {
     global $Email_RegExp_Match;
@@ -58,7 +54,7 @@ function abook_take_read()
     global $message;
 
     echo '<br />' . addForm(SM_PATH . 'plugins/abook_take/take.php') .
-         '<center>' . "\n";
+         '<div style="text-align: center;">' . "\n";
 
     if (isset($message->rfc822_header->reply_to))
         abook_take_read_array($message->rfc822_header->reply_to);
@@ -70,7 +66,7 @@ function abook_take_read()
         abook_take_read_array($message->rfc822_header->to);
 
     echo addSubmit(_("Take Address")) .
-         '</center>';
+         '</div></form>';
 }
 
 function abook_take_pref()
@@ -84,7 +80,7 @@ function abook_take_options()
 {
     global $abook_take_verify;
 
-    echo '<tr>' . html_tag('td',_("Address Book Take:"),'right','','nowrap') . "\n" .  '<td>' .
+    echo '<tr>' . html_tag('td',_("Address Book Take:"),'right','','style="white-space: nowrap;"') . "\n" .  '<td>' .
          addCheckbox('abook_take_abook_take_verify', $abook_take_verify) .
          _("Try to verify addresses") . "</td></tr>\n";
 }
@@ -98,5 +94,3 @@ function abook_take_save()
     else
         setPref($data_dir, $username, 'abook_take_verify', '');
 }
-
-?>