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