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