X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fabook_take%2Fsetup.php;h=73ca0a5adce61e614bd497e9dda6325e17bdaef1;hp=2f45a70470b0225001cc47897b65eaa0a0043a37;hb=27663afe63c34d8c329a3f1b09070893c7b25d41;hpb=2798d75769082b5c3b74d9c52a9606f3c0a09fc6 diff --git a/plugins/abook_take/setup.php b/plugins/abook_take/setup.php index 2f45a704..73ca0a5a 100755 --- a/plugins/abook_take/setup.php +++ b/plugins/abook_take/setup.php @@ -1,203 +1,127 @@ \n"; + $abook_found_email[$hits[0]] = 1; + } + } - while (eregi('(' . $Email_RegExp_Match . ')', $str, $hits)) - { - $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; + return; } - function abook_take_read_array($array) { - $i = 0; - while ($i < count($array)) - { - abook_take_read_string($array[$i]); - $i ++; - } + foreach ($array as $item) + abook_take_read_string($item->getAddress()); } - function abook_take_read() { - global $color, $abook_take_location; - global $body, $abook_take_hide, $message, $imapConnection; + global $message; - if ($abook_take_hide) - return; - - echo '
- '; } function abook_take_pref() { - global $username, $data_dir; - global $abook_take_hide, $abook_take_location, $abook_take_verify; + global $username, $data_dir, $abook_take_verify; - $abook_take_location = getPref($data_dir, $username, 'abook_take_location'); - if ($abook_take_location == '') - $abook_take_location = 'center'; - - $abook_take_hide = getPref($data_dir, $username, 'abook_take_hide'); - $abook_take_verify = getPref($data_dir, $username, 'abook_take_verify'); + $abook_take_verify = getPref($data_dir, $username, 'abook_take_verify'); } - function abook_take_options() { - global $abook_take_location, $abook_take_hide, $abook_take_verify; - - echo html_tag( 'tr' ) . - html_tag( 'td', _("Address Book Take") . ':', 'right', '', 'nowrap valign="top"' ) . - html_tag( 'td', '', 'left' ) . - ' ' . _("on the Read screen") .'