6 * Copyright (c) 1999-2002 The SquirrelMail Project Team
7 * Licensed under the GNU GPL. For full terms see the file COPYING.
9 * Administrator plugin. Allows remote administration. Philippe Mingo
14 function squirrelmail_plugin_init_administrator() {
15 global $squirrelmail_plugin_hooks, $username;
17 if ( $adm_id = fileowner('../config/config.php') ) {
18 $adm = posix_getpwuid( $adm_id );
19 if ( $username == $adm['name'] ) {
20 $squirrelmail_plugin_hooks['optpage_register_block']['administrator'] =
21 'squirrelmail_administrator_optpage_register_block';
26 function squirrelmail_administrator_optpage_register_block() {
27 global $optpage_blocks;
28 global $AllowSpamFilters;
30 $optpage_blocks[] = array(
31 'name' => _("Administration"),
32 'url' => '../plugins/administrator/options.php',
33 'desc' => _("This module allows administrators to run SquirrelMail configuration remotely."),