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