X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fabook_take%2Fsetup.php;h=9bdb840950a6f86c9150e2f8ee9c2243f7c4829d;hb=629923d397e65b228b106ac109ed3a238be07a3b;hp=2f45a70470b0225001cc47897b65eaa0a0043a37;hpb=2798d75769082b5c3b74d9c52a9606f3c0a09fc6;p=squirrelmail.git diff --git a/plugins/abook_take/setup.php b/plugins/abook_take/setup.php index 2f45a704..9bdb8409 100755 --- a/plugins/abook_take/setup.php +++ b/plugins/abook_take/setup.php @@ -1,203 +1,118 @@ \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") .'