0c248705b951bd33223d3fe3afa54ba73284d800
[squirrelmail.git] / plugins / administrator / setup.php
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 * $Id$
12 * @package plugins
13 * @subpackage administrator
14 */
15
16 /** @ignore */
17 require_once(SM_PATH . 'plugins/administrator/auth.php');
18
19 function squirrelmail_plugin_init_administrator() {
20 global $squirrelmail_plugin_hooks, $username;
21
22 if ( adm_check_user() ) {
23 $squirrelmail_plugin_hooks['optpage_register_block']['administrator'] =
24 'squirrelmail_administrator_optpage_register_block';
25 }
26 }
27
28 function squirrelmail_administrator_optpage_register_block() {
29 global $optpage_blocks;
30 global $AllowSpamFilters;
31
32 $optpage_blocks[] = array(
33 'name' => _("Administration"),
34 'url' => '../plugins/administrator/options.php',
35 'desc' => _("This module allows administrators to manage SquirrelMail main configuration remotely."),
36 'js' => false
37 );
38 }
39 ?>