setup.php 922 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * setup.php
  4. *
  5. * Implementation of RFC 2369 for SquirrelMail.
  6. * When viewing a message from a mailinglist complying with this RFC,
  7. * this plugin displays a menu which gives the user a choice of mailinglist
  8. * commands such as (un)subscribe, help and list archives.
  9. *
  10. * @copyright &copy; 1999-2006 The SquirrelMail Project Team
  11. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  12. * @version $Id$
  13. * @package plugins
  14. * @subpackage listcommands
  15. */
  16. /**
  17. * Initialize the listcommands plugin
  18. */
  19. function squirrelmail_plugin_init_listcommands () {
  20. global $squirrelmail_plugin_hooks;
  21. $squirrelmail_plugin_hooks['read_body_header']['listcommands'] = 'plugin_listcommands_menu';
  22. }
  23. /**
  24. * Main function added to read_body_header
  25. */
  26. function plugin_listcommands_menu() {
  27. include_once(SM_PATH . 'plugins/listcommands/functions.php');
  28. plugin_listcommands_menu_do();
  29. }