some phpdoc blocks
[squirrelmail.git] / plugins / administrator / setup.php
CommitLineData
abd7a3f8 1<?php
2
3/**
4 * setup.php
5 *
82d304a0 6 * Copyright (c) 1999-2004 The SquirrelMail Project Team
abd7a3f8 7 * Licensed under the GNU GPL. For full terms see the file COPYING.
8 *
9 * Administrator plugin. Allows remote administration. Philippe Mingo
10 *
11 * $Id$
ea5f4b8e 12 * @package plugins
13 * @subpackage administrator
abd7a3f8 14 */
15
ea5f4b8e 16/** @ignore */
52a6105d 17require_once(SM_PATH . 'plugins/administrator/auth.php');
7004cc32 18
abd7a3f8 19function squirrelmail_plugin_init_administrator() {
20 global $squirrelmail_plugin_hooks, $username;
21
7004cc32 22 if ( adm_check_user() ) {
23 $squirrelmail_plugin_hooks['optpage_register_block']['administrator'] =
24 'squirrelmail_administrator_optpage_register_block';
abd7a3f8 25 }
26}
27
91e811f0 28function squirrelmail_administrator_optpage_register_block() {
abd7a3f8 29 global $optpage_blocks;
30 global $AllowSpamFilters;
31
32 $optpage_blocks[] = array(
33 'name' => _("Administration"),
34 'url' => '../plugins/administrator/options.php',
6a9acbca 35 'desc' => _("This module allows administrators to manage SquirrelMail main configuration remotely."),
abd7a3f8 36 'js' => false
37 );
38}
52a6105d 39?>