setup.php 914 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * setup.php
  4. *
  5. * Copyright (c) 1999-2005 The SquirrelMail Project Team
  6. * Licensed under the GNU GPL. For full terms see the file COPYING.
  7. *
  8. * Implementation of RFC 2369 for SquirrelMail.
  9. * When viewing a message from a mailinglist complying with this RFC,
  10. * this plugin displays a menu which gives the user a choice of mailinglist
  11. * commands such as (un)subscribe, help and list archives.
  12. *
  13. * @version $Id$
  14. * @package plugins
  15. * @subpackage listcommands
  16. */
  17. /**
  18. * Initialize the listcommands plugin
  19. */
  20. function squirrelmail_plugin_init_listcommands () {
  21. global $squirrelmail_plugin_hooks;
  22. $squirrelmail_plugin_hooks['read_body_header']['listcommands'] = 'plugin_listcommands_menu';
  23. }
  24. /**
  25. * Main function added to read_body_header
  26. */
  27. function plugin_listcommands_menu() {
  28. include_once(SM_PATH . 'plugins/listcommands/functions.php');
  29. plugin_listcommands_menu_do();
  30. }
  31. ?>