setup.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * setup.php - Generic Change Password plugin
  4. *
  5. * Copyright (c) 2003-2004 The SquirrelMail Project Team
  6. * Licensed under the GNU GPL. For full terms see the file COPYING.
  7. *
  8. * This plugin aims to provide a general framework for all password
  9. * changing methods that currently have their own plugins.
  10. *
  11. * @version $Id$
  12. * @package plugins
  13. * @subpackage change_password
  14. */
  15. /**
  16. * Plugin init function
  17. */
  18. function squirrelmail_plugin_init_change_password() {
  19. global $squirrelmail_plugin_hooks;
  20. $squirrelmail_plugin_hooks['optpage_register_block']['change_password'] = 'change_password_optpage';
  21. }
  22. /**
  23. * Add plugin option block
  24. */
  25. function change_password_optpage() {
  26. global $optpage_blocks;
  27. $optpage_blocks[] = array(
  28. 'name' => _("Change Password"),
  29. 'url' => '../plugins/change_password/options.php',
  30. 'desc' => _("Use this to change your email password."),
  31. 'js' => FALSE
  32. );
  33. }
  34. /**
  35. * Return version information
  36. * @return string version number
  37. */
  38. function change_password_version() {
  39. return '0.2';
  40. }
  41. ?>