Source for file setup.php
Documentation is available at setup.php
* Copyright (c) 1999-2006 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
* Address Take -- steals addresses from incoming email messages. Searches
* the To, Cc, From and Reply-To headers, also searches the body of the
* $Id: setup.php,v 1.8.2.5 2006/02/03 22:27:51 jervfors Exp $
/* SquirrelMail required files. */
require_once(SM_PATH .
'functions/url_parser.php');
global $squirrelmail_plugin_hooks;
$squirrelmail_plugin_hooks['read_body_bottom']['abook_take'] =
'abook_take_read';
$squirrelmail_plugin_hooks['loading_prefs']['abook_take'] =
'abook_take_pref';
$squirrelmail_plugin_hooks['options_display_inside']['abook_take'] =
'abook_take_options';
$squirrelmail_plugin_hooks['options_display_save']['abook_take'] =
'abook_take_save';
global $Email_RegExp_Match;
if (! eregi('^' .
$Email_RegExp_Match .
'$', $email))
global $abook_found_email, $Email_RegExp_Match;
while (eregi('(' .
$Email_RegExp_Match .
')', $str, $hits))
if (! isset
($abook_found_email[$hits[0]]))
echo
'<input type="hidden" name="email[]" value="' .
$abook_found_email[$hits[0]] =
1;
foreach ($array as $item)
echo
'<br /><form action="../plugins/abook_take/take.php" method="post"><center>'.
"\n";
if (isset
($message->rfc822_header->reply_to))
if (isset
($message->rfc822_header->from))
if (isset
($message->rfc822_header->cc))
if (isset
($message->rfc822_header->to))
echo
'<input type="submit" value="' .
_("Take Address") .
'" />' .
global $username, $data_dir, $abook_take_verify;
$abook_take_verify =
getPref($data_dir, $username, 'abook_take_verify');
global $abook_take_verify;
echo
'<tr>' .
html_tag('td',_("Address Book Take:"),'right','','nowrap') .
"\n" .
'<td><input name="abook_take_abook_take_verify" type="checkbox"';
if (isset
($abook_take_verify) &&
$abook_take_verify)
echo
' /> ' .
_("Try to verify addresses") .
"</td></tr>\n";
setPref($data_dir, $username, 'abook_take_verify', '1');
setPref($data_dir, $username, 'abook_take_verify', '');
Documentation generated on Sat, 07 Oct 2006 16:33:29 +0300 by phpDocumentor 1.3.0RC6