-
- $squirrelmail_plugin_hooks['read_body_bottom']['abook_take'] = 'abook_take_read';
- $squirrelmail_plugin_hooks['loading_prefs']['abook_take'] = 'abook_take_pref';
- $squirrelmail_plugin_hooks['options_display_inside']['abook_take'] = 'abook_take_options';
- $squirrelmail_plugin_hooks['options_display_save']['abook_take'] = 'abook_take_save';
-}
-
-function valid_email ($email, $verify)
-{
- global $Email_RegExp_Match;
-
- if (! eregi('^' . $Email_RegExp_Match . '$', $email))
- return false;
-
- if (! $verify)
- return true;
-
- return checkdnsrr(substr(strstr($email, '@'), 1), 'ANY') ;
-}
-
-function abook_take_read_string($str)
-{
- global $abook_found_email, $Email_RegExp_Match;
-
- while (eregi('(' . $Email_RegExp_Match . ')', $str, $hits))
- {
- $str = substr(strstr($str, $hits[0]), strlen($hits[0]));
- if (! isset($abook_found_email[$hits[0]]))
- {
- echo '<input type="hidden" name="email[]" value="' .
- htmlspecialchars($hits[0]) . "\" />\n";
- $abook_found_email[$hits[0]] = 1;
- }
- }
-
- return;
-}