setup.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?php
  2. /**
  3. * SquirrelMail Test Plugin
  4. * @copyright 2006-2025 The SquirrelMail Project Team
  5. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  6. * @version $Id$
  7. * @package plugins
  8. * @subpackage test
  9. */
  10. /**
  11. * Register this plugin with SquirrelMail
  12. *
  13. * @return void
  14. *
  15. */
  16. function squirrelmail_plugin_init_test() {
  17. global $squirrelmail_plugin_hooks;
  18. $squirrelmail_plugin_hooks['template_construct_page_header.tpl']['test']
  19. = 'test_menuline';
  20. }
  21. /**
  22. * Add link to menu at top of content pane
  23. *
  24. * @return void
  25. *
  26. */
  27. function test_menuline() {
  28. include_once(SM_PATH . 'plugins/test/functions.php');
  29. return test_menuline_do();
  30. }
  31. /**
  32. * Returns info about this plugin
  33. *
  34. * @return array An array of plugin information.
  35. *
  36. */
  37. function test_info()
  38. {
  39. return array(
  40. 'english_name' => 'Test',
  41. 'version' => 'CORE',
  42. 'summary' => 'This plugin provides some test mechanisms for further diagnosis of the system upon which you are attempting to run SquirrelMail.',
  43. 'details' => 'This plugin provides some test mechanisms for further diagnosis of the system upon which you are attempting to run SquirrelMail.',
  44. 'requires_configuration' => 0,
  45. 'requires_source_patch' => 0,
  46. );
  47. }
  48. /**
  49. * Returns version info about this plugin
  50. *
  51. */
  52. function test_version()
  53. {
  54. $info = test_info();
  55. return $info['version'];
  56. }