X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fabook_take%2Fsetup.php;h=f135f467db7ab997a088fa67a5f17f756efd8d5e;hb=cc201b463e7d240bd4656795e5a3f0af14fb05c8;hp=0fb52eb8ad02cdb82429c777b5b5a07ce9e4ed54;hpb=d55c0f66fc0f73d886fc2040936a28d7a17fa1ea;p=squirrelmail.git diff --git a/plugins/abook_take/setup.php b/plugins/abook_take/setup.php index 0fb52eb8..f135f467 100755 --- a/plugins/abook_take/setup.php +++ b/plugins/abook_take/setup.php @@ -1,208 +1,53 @@ \n"; - $abook_found_email[$hits[0]] = 1; - } - } - return; + abook_take_read(); } +function abook_take_loading_prefs() { + include_once(SM_PATH . 'plugins/abook_take/functions.php'); -function abook_take_read_array($array) -{ - $i = 0; - while ($i < count($array)) - { - abook_take_read_string($array[$i]); - $i ++; - } + abook_take_pref(); } +function abook_take_options_display_inside() { + include_once(SM_PATH . 'plugins/abook_take/functions.php'); -function abook_take_read() -{ - global $color, $abook_take_location; - global $body, $abook_take_hide, $message, $imapConnection; - - if ($abook_take_hide) - return; - - ?> -
- - - - -
- - - - -
- 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
'); - 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); - ?> - -
-
-
- Address Book Take: - on the Read screen
- > Hide the box
- > Try to verify addresses -