- if ($abook_take_hide)
- return;
-
- echo '<form action="../plugins/abook_take/take.php" method="post">' . "\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' );
-
- abook_take_read_string($message->header->from);
- abook_take_read_array($message->header->cc);
- abook_take_read_array($message->header->reply_to);
- abook_take_read_array($message->header->to);
-
-
- $new_body = $body;
- $pos = strpos($new_body,
- '">' . _("Download this as a file") . '</a></center><br></small>');
- 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 '<input type="submit" value="' . _("Take Address") . '">';
- ?>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </form>
- <?PHP
+ echo '<br /><form action="../plugins/abook_take/take.php" method="post"><center>'."\n";
+
+ if (isset($message->rfc822_header->reply_to))
+ abook_take_read_array($message->rfc822_header->reply_to);
+ 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->to))
+ abook_take_read_array($message->rfc822_header->to);
+
+ echo '<input type="submit" value="' . _("Take Address") . '" />' .
+ '</center></form>';