Source for file setup.php

Documentation is available at setup.php

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

Documentation generated on Mon, 13 Jan 2020 04:25:15 +0100 by phpDocumentor 1.4.3