Add "Security:" with relevant changelog items and add CVE id's.
[squirrelmail.git] / plugins / administrator / setup.php
CommitLineData
abd7a3f8 1<?php
abd7a3f8 2/**
fb579f0b 3 * Administrator plugin - Setup script
abd7a3f8 4 *
fb579f0b 5 * Plugin allows remote administration.
abd7a3f8 6 *
0df03ce7 7 * @version $Id$
fb579f0b 8 * @author Philippe Mingo
9 * @copyright (c) 1999-2004 The SquirrelMail Project Team
10 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
ea5f4b8e 11 * @package plugins
12 * @subpackage administrator
abd7a3f8 13 */
14
ea5f4b8e 15/** @ignore */
52a6105d 16require_once(SM_PATH . 'plugins/administrator/auth.php');
7004cc32 17
0df03ce7 18/**
19 * Init the plugin
20 * @access private
21 */
abd7a3f8 22function squirrelmail_plugin_init_administrator() {
ce68b76b 23 global $squirrelmail_plugin_hooks;
abd7a3f8 24
91e0dccc 25 if ( adm_check_user() ) {
7004cc32 26 $squirrelmail_plugin_hooks['optpage_register_block']['administrator'] =
27 'squirrelmail_administrator_optpage_register_block';
abd7a3f8 28 }
29}
30
0df03ce7 31/**
32 * Register option block
33 * @access private
34 */
91e811f0 35function squirrelmail_administrator_optpage_register_block() {
abd7a3f8 36 global $optpage_blocks;
abd7a3f8 37
38 $optpage_blocks[] = array(
39 'name' => _("Administration"),
847e3483 40 'url' => SM_PATH . 'plugins/administrator/options.php',
6a9acbca 41 'desc' => _("This module allows administrators to manage SquirrelMail main configuration remotely."),
abd7a3f8 42 'js' => false
43 );
44}
0df03ce7 45?>