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