setup.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. /**
  3. * setup.php
  4. *
  5. * Copyright (c) 1999-2004 The SquirrelMail Project Team
  6. * Licensed under the GNU GPL. For full terms see the file COPYING.
  7. *
  8. * Address Take -- steals addresses from incoming email messages. Searches
  9. * the To, Cc, From and Reply-To headers, also searches the body of the
  10. * message.
  11. *
  12. * $Id$
  13. * @package plugins
  14. * @subpackage abook_take
  15. */
  16. /**
  17. * If SM_PATH isn't defined, define it. Required to include files.
  18. * @ignore
  19. */
  20. if (!defined('SM_PATH')) {
  21. define('SM_PATH','../../');
  22. }
  23. /**
  24. * Initialize the plugin
  25. */
  26. function squirrelmail_plugin_init_abook_take()
  27. {
  28. global $squirrelmail_plugin_hooks;
  29. $squirrelmail_plugin_hooks['read_body_bottom']['abook_take'] = 'abook_take_read_body_bottom';
  30. $squirrelmail_plugin_hooks['loading_prefs']['abook_take'] = 'abook_take_loading_prefs';
  31. $squirrelmail_plugin_hooks['options_display_inside']['abook_take'] = 'abook_take_options_display_inside';
  32. $squirrelmail_plugin_hooks['options_display_save']['abook_take'] = 'abook_take_options_display_save';
  33. }
  34. function abook_take_read_body_bottom() {
  35. include_once(SM_PATH . 'plugins/abook_take/functions.php');
  36. abook_take_read();
  37. }
  38. function abook_take_loading_prefs() {
  39. include_once(SM_PATH . 'plugins/abook_take/functions.php');
  40. abook_take_pref();
  41. }
  42. function abook_take_options_display_inside() {
  43. include_once(SM_PATH . 'plugins/abook_take/functions.php');
  44. abook_take_options();
  45. }
  46. function abook_take_options_display_save() {
  47. include_once(SM_PATH . 'plugins/abook_take/functions.php');
  48. abook_take_save();
  49. }
  50. ?>