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