From 75adae57ab5c05d52e4a4da78037ab42d6b749a3 Mon Sep 17 00:00:00 2001 From: tokul Date: Sun, 20 Mar 2005 10:34:23 +0000 Subject: [PATCH] adding "Successfully save options: User's password" message git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9088 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/change_password/functions.php | 2 +- plugins/change_password/setup.php | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/plugins/change_password/functions.php b/plugins/change_password/functions.php index b7deb89f..7a487fdc 100644 --- a/plugins/change_password/functions.php +++ b/plugins/change_password/functions.php @@ -106,6 +106,6 @@ function cpw_do_change() /* make sure we write the session data before we redirect */ session_write_close(); - header('Location: '.SM_PATH. 'src/options.php?optmode=submit&plugin_change_password=1'); + header('Location: '.SM_PATH. 'src/options.php?optmode=submit&optpage=change_password&plugin_change_password=1'); exit; } diff --git a/plugins/change_password/setup.php b/plugins/change_password/setup.php index 1c8c96c2..9b7ca21b 100644 --- a/plugins/change_password/setup.php +++ b/plugins/change_password/setup.php @@ -21,6 +21,7 @@ function squirrelmail_plugin_init_change_password() { global $squirrelmail_plugin_hooks; $squirrelmail_plugin_hooks['optpage_register_block']['change_password'] = 'change_password_optpage'; + $squirrelmail_plugin_hooks['optpage_set_loadinfo']['change_password'] = 'change_password_loadinfo'; } /** @@ -37,6 +38,19 @@ function change_password_optpage() { ); } +/** + * Displays information after "Successfully Saved Options:" + * @since 1.5.1 + */ +function change_password_loadinfo() { + global $optpage, $optpage_name; + if ($optpage=='change_password') { + // i18n: is displayed after "Successfully Saved Options:" + $optpage_name=_("User's Password"); + } + +} + /** * Return version information * @return string version number -- 2.25.1