X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fabook_take%2Fsetup.php;h=1130d9241e39649c81bca9203783eb5a4fa043c0;hp=7659d814e0199205bbbfa99031f82ddd4ef33fbd;hb=8ba05cbe54f4bdd7988dca9fa75b6a2ca8da1cec;hpb=e8b140ab102cbad01c36685d7e8e2779e0a8ddb4 diff --git a/plugins/abook_take/setup.php b/plugins/abook_take/setup.php index 7659d81..1130d92 100755 --- a/plugins/abook_take/setup.php +++ b/plugins/abook_take/setup.php @@ -1,5 +1,10 @@ ' . $chances[$i] . - // '' . "\n"; - echo "\n"; - $abook_found_email[$chances[$i]] = 1; - } - $i ++; + $str = substr(strstr($str, $hits[0]), strlen($hits[0])); + if (! isset($abook_found_email[$hits[0]])) + { + echo "\n"; + $abook_found_email[$hits[0]] = 1; + } } + return; } @@ -79,21 +75,14 @@ function abook_take_read() if ($abook_take_hide) return; - ?> -
- - - - ' . + '' . + '' . + '' . + ' ' . _("on the Read screen") .'
' . + ' ' . _("Hide the box") . '
' . + ' ' . _("Try to verify addresses") . ''; }
- - -
- ' . "\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); @@ -102,7 +91,7 @@ function abook_take_read() $new_body = $body; $pos = strpos($new_body, - '">Download this as a file
'); + '">' . _("Download this as a file") . '
'); if (is_int($pos)) { $new_body = substr($new_body, 0, $pos); @@ -119,8 +108,9 @@ function abook_take_read() $new_body = strtr($new_body, "\n", ' '); abook_take_read_string($body); + + echo ''; ?> -
@@ -149,30 +139,31 @@ function abook_take_options() { global $abook_take_location, $abook_take_hide, $abook_take_verify; - ?>
Address Book Take: on the Read screen
- > Hide the box
- > Try to verify addresses -