setup.php 1018 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * setup file for the IMAP server info plugin
  4. *
  5. * @author Jason Munro <jason at stdbev.com>
  6. * @copyright &copy; 1999-2007 The SquirrelMail Project Team
  7. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  8. * @version $Id$
  9. * @package plugins
  10. * @subpackage info
  11. */
  12. /**
  13. * Plugin init function
  14. * @access private
  15. */
  16. function squirrelmail_plugin_init_info() {
  17. global $squirrelmail_plugin_hooks;
  18. $squirrelmail_plugin_hooks['optpage_register_block']['info'] = 'info_opt';
  19. }
  20. /**
  21. * Plugin's block in option page
  22. * @access private
  23. */
  24. function info_opt() {
  25. global $optpage_blocks;
  26. $optpage_blocks[] = array(
  27. 'name' => _("IMAP server information"),
  28. 'url' => '../plugins/info/options.php',
  29. '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."),
  30. 'js' => false
  31. );
  32. }