\n"; $abook_found_email[$hits[0]] = 1; } } return; } function abook_take_read_array($array) { $i = 0; while ($i < count($array)) { abook_take_read_string($array[$i]->getAddress()); $i ++; } } function abook_take_read() { global $color, $abook_take_location; global $body, $abook_take_hide, $message, $imapConnection; if ($abook_take_hide) return; echo '
' . "\n" . html_tag( 'table', '', $abook_take_location, $color[10], 'cellpadding="3" cellspacing="0" border="0"' ) . html_tag( 'tr' ) . html_tag( 'td', '', 'left' ) . html_tag( 'table', '', '', $color[5], 'cellpadding="2" cellspacing="1" border="0"' ) . html_tag( 'tr' ) . html_tag( 'td' ); if (isset($message->rfc822_header->from)) abook_take_read_array($message->rfc822_header->from); if (isset($message->rfc822_header->cc)) abook_take_read_array($message->rfc822_header->cc); if (isset($message->rfc822_header->reply_to)) abook_take_read_array($message->rfc822_header->reply_to); if (isset($message->rfc822_header->to)) abook_take_read_array($message->rfc822_header->to); $new_body = $body; $pos = strpos($new_body, '">' . _("Download this as a file") . '
'); if (is_int($pos)) { $new_body = substr($new_body, 0, $pos); } $trans = get_html_translation_table(HTML_ENTITIES); $trans[' '] = ' '; $trans = array_flip($trans); $new_body = strtr($new_body, $trans); $new_body = urldecode($new_body); $new_body = strip_tags($new_body); $new_body = strtr($new_body, "\n", ' '); abook_take_read_string($body); echo ''; ?>
' . '' . '' . '' . ' ' . _("on the Read screen") .'
' . ' ' . _("Hide the box") . '
' . ' ' . _("Try to verify addresses") . ''; } function abook_take_save() { global $username, $data_dir; global $abook_take_abook_take_location; global $abook_take_abook_take_hide; global $abook_take_abook_take_verify; if (isset($abook_take_abook_take_location)) { setPref($data_dir, $username, 'abook_take_location', $abook_take_abook_take_location); } else { setPref($data_dir, $username, 'abook_take_location', 'center'); } if (isset($abook_take_abook_take_hide)) { setPref($data_dir, $username, 'abook_take_hide', '1'); } else { setPref($data_dir, $username, 'abook_take_hide', ''); } if (isset($abook_take_abook_take_verify)) { setPref($data_dir, $username, 'abook_take_verify', '1'); } else { setPref($data_dir, $username, 'abook_take_verify', ''); } } ?>