Source for file setup.php

Documentation is available at setup.php

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

Documentation generated on 2020年1月13日 04:23:32 +0100 by phpDocumentor 1.4.3

AltStyle によって変換されたページ (->オリジナル) /