specific checks before starting. Fix a bug in the Location:
redirect which redirected the user back to the plugin, which
should have been the general options page.
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6175
7612ce4b-ef26-0410-bec9-
ea0150e637f0
global $squirrelmail_plugin_hooks;
$squirrelmail_plugin_hooks['change_password_dochange']['template'] =
'cpw_template_dochange';
+$squirrelmail_plugin_hooks['change_password_init']['template'] =
+ 'cpw_template_init';
+
+
+/**
+ * Use this function to do any backend-specific initialization,
+ * e.g. checking requirements, before the password change form
+ * is displayed to the user.
+ */
+function cpw_template_init()
+{
+
+}
+
/**
* This is the function that is specific to your backend. It takes
/* make sure we write the session data before we redirect */
session_write_close();
- header('Location: '.get_location(). '/options.php?optmode=submit&plugin_change_password=1');
+ header('Location: '.SM_PATH. 'src/options.php?optmode=submit&plugin_change_password=1');
exit;
}
displayPageHeader($color, 'None');
+do_hook('change_password_init');
?>
<br />