setup.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * setup file for the IMAP server info plugin
  4. *
  5. * @copyright (c) 1999-2004 The SquirrelMail Project Team
  6. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  7. * @version $Id$
  8. * @author Jason Munro jason@stdbev.com
  9. * @package plugins
  10. * @subpackage info
  11. */
  12. /** @ignore */
  13. require_once (SM_PATH . 'plugins/info/functions.php');
  14. /**
  15. * Plugin init function
  16. * @access private
  17. */
  18. function squirrelmail_plugin_init_info() {
  19. global $squirrelmail_plugin_hooks;
  20. $squirrelmail_plugin_hooks['optpage_register_block']['info'] = 'info_opt';
  21. }
  22. /**
  23. * Plugin's block in option page
  24. * @access private
  25. */
  26. function info_opt() {
  27. global $optpage_blocks;
  28. $optpage_blocks[] = array(
  29. 'name' => _("IMAP server information"),
  30. 'url' => '../plugins/info/options.php',
  31. 'desc' => _("Run some test IMAP commands, displaying both the command and the result. These tests use the SquirrelMail IMAP commands and your current SquirrelMail configuration. Custom command strings can be used."),
  32. 'js' => false
  33. );
  34. }
  35. ?>