SM_PATH only required for CALLED pages, not includes.
[squirrelmail.git] / plugins / administrator / setup.php
CommitLineData
abd7a3f8 1<?php
2
3/**
4 * setup.php
5 *
6 * Copyright (c) 1999-2002 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 */
13
7004cc32 14require_once('../plugins/administrator/auth.php');
15
abd7a3f8 16function 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 25function 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}
36?>