removed local directory name used for testing.
[squirrelmail.git] / plugins / administrator / setup.php
... / ...
CommitLineData
1<?php
2/**
3 * Administrator plugin - Setup script
4 *
5 * Plugin allows remote administration.
6 *
7 * @version $Id$
8 * @author Philippe Mingo
9 * @copyright (c) 1999-2005 The SquirrelMail Project Team
10 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
11 * @package plugins
12 * @subpackage administrator
13 */
14
15/**
16 * Init the plugin
17 * @access private
18 */
19function squirrelmail_plugin_init_administrator() {
20 global $squirrelmail_plugin_hooks;
21
22 $squirrelmail_plugin_hooks['optpage_register_block']['administrator'] =
23 'squirrelmail_administrator_optpage_register_block';
24}
25
26/**
27 * Register option block
28 * @access private
29 */
30function squirrelmail_administrator_optpage_register_block() {
31 /** add authentication functions */
32 include_once(SM_PATH . 'plugins/administrator/auth.php');
33
34 if ( adm_check_user() ) {
35 global $optpage_blocks;
36
37 $optpage_blocks[] = array(
38 'name' => _("Administration"),
39 'url' => SM_PATH . 'plugins/administrator/options.php',
40 'desc' => _("This module allows administrators to manage SquirrelMail main configuration remotely."),
41 'js' => false
42 );
43 }
44}
45?>