Update copyright
[squirrelmail.git] / plugins / listcommands / setup.php
CommitLineData
73ee43b1 1<?php
519f07d7 2
3/**
4 * setup.php
5 *
73ee43b1 6 * Implementation of RFC 2369 for SquirrelMail.
7 * When viewing a message from a mailinglist complying with this RFC,
8 * this plugin displays a menu which gives the user a choice of mailinglist
9 * commands such as (un)subscribe, help and list archives.
10 *
79ba18dc 11 * @copyright 1999-2013 The SquirrelMail Project Team
4b4abf93 12 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
793566f0 13 * @version $Id$
ea5f4b8e 14 * @package plugins
15 * @subpackage listcommands
73ee43b1 16 */
519f07d7 17
ea5f4b8e 18/**
19 * Initialize the listcommands plugin
20 */
519f07d7 21function squirrelmail_plugin_init_listcommands () {
73ee43b1 22 global $squirrelmail_plugin_hooks;
23
2e58d6af 24 $squirrelmail_plugin_hooks['template_construct_read_headers.tpl']['listcommands'] = 'plugin_listcommands_menu';
e5f21a91 25 $squirrelmail_plugin_hooks['optpage_register_block']['listcommands'] = 'plugin_listcommands_optpage_register_block';
26
73ee43b1 27}
28
f4f2d73f 29/**
30 * Main function added to read_body_header
31 */
d54c9a9c 32function plugin_listcommands_menu() {
793566f0 33 include_once(SM_PATH . 'plugins/listcommands/functions.php');
2e58d6af 34 return plugin_listcommands_menu_do();
050722c4 35}
e5f21a91 36
37
38/**
39 * Show mailing list management option section on options page
40 */
41function plugin_listcommands_optpage_register_block() {
42 include_once(SM_PATH . 'plugins/listcommands/functions.php');
43 plugin_listcommands_optpage_register_block_do();
44}