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