/* 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;
}
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';
}
/**
);
}
+/**
+ * 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