Happy New Year
[squirrelmail.git] / plugins / change_password / setup.php
CommitLineData
27663afe 1<?php
2
087508d9 3/**
4 * setup.php - Generic Change Password plugin
5 *
27663afe 6 * This plugin aims to provide a general framework for all password
7 * changing methods that currently have their own plugins.
8 *
4b28020b 9 * @copyright 2003-2023 The SquirrelMail Project Team
4b4abf93 10 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
882acf90 11 * @version $Id$
087508d9 12 * @package plugins
13 * @subpackage change_password
27663afe 14 */
15
882acf90 16/**
17 * Plugin init function
18 */
27663afe 19function squirrelmail_plugin_init_change_password() {
20 global $squirrelmail_plugin_hooks;
21
22 $squirrelmail_plugin_hooks['optpage_register_block']['change_password'] = 'change_password_optpage';
75adae57 23 $squirrelmail_plugin_hooks['optpage_set_loadinfo']['change_password'] = 'change_password_loadinfo';
27663afe 24}
25
882acf90 26/**
27 * Add plugin option block
28 */
27663afe 29function change_password_optpage() {
30 global $optpage_blocks;
31
32 $optpage_blocks[] = array(
33 'name' => _("Change Password"),
34 'url' => '../plugins/change_password/options.php',
35 'desc' => _("Use this to change your email password."),
36 'js' => FALSE
37 );
38}
39
75adae57 40/**
41 * Displays information after "Successfully Saved Options:"
42 * @since 1.5.1
43 */
44function change_password_loadinfo() {
45 global $optpage, $optpage_name;
46 if ($optpage=='change_password') {
47 // i18n: is displayed after "Successfully Saved Options:"
48 $optpage_name=_("User's Password");
76063016 49 }
75adae57 50}
51
882acf90 52/**
53 * Return version information
54 * @return string version number
55 */
27663afe 56function change_password_version() {
087508d9 57 return '0.2';
27663afe 58}