abd7a3f8 |
1 | <?php |
2 | |
3 | /** |
4 | * setup.php |
5 | * |
76911253 |
6 | * Copyright (c) 1999-2003 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$ |
12 | */ |
13 | |
52a6105d |
14 | require_once(SM_PATH . 'plugins/administrator/auth.php'); |
7004cc32 |
15 | |
abd7a3f8 |
16 | function squirrelmail_plugin_init_administrator() { |
17 | global $squirrelmail_plugin_hooks, $username; |
18 | |
7004cc32 |
19 | if ( adm_check_user() ) { |
20 | $squirrelmail_plugin_hooks['optpage_register_block']['administrator'] = |
21 | 'squirrelmail_administrator_optpage_register_block'; |
abd7a3f8 |
22 | } |
23 | } |
24 | |
91e811f0 |
25 | function squirrelmail_administrator_optpage_register_block() { |
abd7a3f8 |
26 | global $optpage_blocks; |
27 | global $AllowSpamFilters; |
28 | |
29 | $optpage_blocks[] = array( |
30 | 'name' => _("Administration"), |
31 | 'url' => '../plugins/administrator/options.php', |
6a9acbca |
32 | 'desc' => _("This module allows administrators to manage SquirrelMail main configuration remotely."), |
abd7a3f8 |
33 | 'js' => false |
34 | ); |
35 | } |
52a6105d |
36 | ?> |