/**
* 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-2006 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;
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);
abook_take_read_array($message->rfc822_header->to);
echo addSubmit(_("Take Address")) .
- '</center></form>';
+ '</div></form>';
}
function abook_take_pref()
{
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";
}
else
setPref($data_dir, $username, 'abook_take_verify', '');
}
-
-?>
\ No newline at end of file