setup.php 1007 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * setup.php
  4. *
  5. * Copyright (c) 1999-2002 The SquirrelMail Project Team
  6. * Licensed under the GNU GPL. For full terms see the file COPYING.
  7. *
  8. * Administrator plugin. Allows remote administration. Philippe Mingo
  9. *
  10. * $Id$
  11. */
  12. require_once('../plugins/administrator/auth.php');
  13. function squirrelmail_plugin_init_administrator() {
  14. global $squirrelmail_plugin_hooks, $username;
  15. if ( adm_check_user() ) {
  16. $squirrelmail_plugin_hooks['optpage_register_block']['administrator'] =
  17. 'squirrelmail_administrator_optpage_register_block';
  18. }
  19. }
  20. function squirrelmail_administrator_optpage_register_block() {
  21. global $optpage_blocks;
  22. global $AllowSpamFilters;
  23. $optpage_blocks[] = array(
  24. 'name' => _("Administration"),
  25. 'url' => '../plugins/administrator/options.php',
  26. 'desc' => _("This module allows administrators to manage SquirrelMail main configuration remotely."),
  27. 'js' => false
  28. );
  29. }
  30. ?>