--- /dev/null
+# <your language> SquirrelMail change_pass Plugin Translation File
+# Copyright (C) 2009 The SquirrelMail Development Team
+# This file is distributed under the same license as the SquirrelMail package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: change_pass\n"
+"Report-Msgid-Bugs-To: SquirrelMail Internationalization <squirrelmail-i18n@lists.sourceforge.net>\n"
+"POT-Creation-Date: 2009-05-09 11:25-0600\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: SquirrelMail Language Team <squirrelmail-i18n@lists.sourceforge.net>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: functions.php:13 options.php:86
+msgid "Change Password"
+msgstr ""
+
+#: functions.php:35
+#, c-format
+msgid "Connection error: %s"
+msgstr ""
+
+#: options.php:108
+msgid "Current Password:"
+msgstr ""
+
+#: options.php:112
+msgid "New Password:"
+msgstr ""
+
+#: functions.php:56
+msgid "Password change was not successful!"
+msgstr ""
+
+#: functions.php:15
+msgid "Use this to change your email password."
+msgstr ""
+
+#: functions.php:138
+msgid "User's Password"
+msgstr ""
+
+#: options.php:116
+msgid "Verify New Password:"
+msgstr ""
+
+#: options.php:52
+msgid "You must also type in your new password in the verify box."
+msgstr ""
+
+#: options.php:48
+msgid "You must type in a new password."
+msgstr ""
+
+#: options.php:44
+msgid "You must type in your current password."
+msgstr ""
+
+#: options.php:69
+msgid "Your current password is not correct."
+msgstr ""
+
+#: options.php:57
+msgid "Your new password does not match the verify password."
+msgstr ""
+
+#: options.php:61
+#, c-format
+msgid "Your new password should be %s to %s characters long."
+msgstr ""
-$Id: ChangeLog,v 1.2 2009/05/09 17:35:38 indiri69 Exp $
+$Id: ChangeLog,v 1.3 2009/12/09 00:29:58 indiri69 Exp $
+* Tue Dec 8 2009 Seth Randall <indiri69@users.sourceforge.net>
+- Updated version number to 3.1
+- Added support for smtoken
+
* Sat May 9 2009 Seth Randall <indiri69@users.sourceforge.net>
- Code cleanups and changes
- Updated version number to 3.0
The functionality it provides is already included in the
change_password plugin that is part of 1.5.x.
+ This plugin requires SquirrelMail 1.4.20 or later (or 1.4.0+ and
+ Compatibility 2.0.16).
+
1) Start with untaring the file into the plugins directory.
- Here is an example for the 3.0 version of the change_pass plugin.
+ Here is an example for the 3.1 version of the change_pass plugin.
$ cd plugins
- $ tar -zxf change_pass-3.0-1.4.0.tar.gz
+ $ tar -zxf change_pass-3.1-1.4.0.tar.gz
2) By default, the plugin will connect to the IMAP server configured
for SquirrelMail on port 106 to change passwords.
$ cd ../../../../config/
$ ./conf.pl
-4) If not being used with SquirrelMail 1.4.16+,
- please verify that you have the "Compatibility" plugin
- installed (but not necessarily activated).
-
-5) Translations are not included in this package. To get a
+4) Translations are not included in this package. To get a
translation, download the language pack needed from:
http://www.squirrelmail.org/download.php
change_pass plugin for SquirrelMail
===================================
-Version 3.0, 2009/05/09
+Version 3.1, 2009/05/09
Ritchie Low
Tyler Akins
/*
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
- * $Id: functions.php,v 1.7 2009/05/14 02:33:01 indiri69 Exp $
+ * $Id: functions.php,v 1.8 2009/12/09 00:21:11 indiri69 Exp $
*/
function change_pass_option_link_do() {
change_pass_closeport($pop_socket, $debug);
sqauth_save_password($change_pass_new);
session_write_close();
- header('Location: ' . sqm_baseuri() . 'src/options.php?optmode=submit&optpage=change_pass&plugin_change_pass=1');
+ header('Location: ' . sqm_baseuri() . 'src/options.php?optmode=submit&optpage=change_pass&plugin_change_pass=1&smtoken=' . sm_generate_security_token());
exit;
}
}
'sm_site_username' => 'randall',
),
),
- 'version' => '3.0',
+ 'version' => '3.1',
'required_sm_version' => '1.4.0',
'requires_configuration' => 0,
'requires_source_patch' => 0,
'required_plugins' => array(),
'per_version_requirements' => array(
'1.5.0' => SQ_INCOMPATIBLE,
- '1.4.16' => array(
+ '1.4.20' => array(
'required_plugins' => array()
),
'1.4.0' => array(
'required_plugins' => array(
'compatibility' => array(
- 'version' => '2.0.13',
+ 'version' => '2.0.16',
'activate' => FALSE
)
)
/*
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
- * $Id: options.php,v 1.7 2009/05/05 03:09:22 indiri69 Exp $
+ * $Id: options.php,v 1.8 2009/12/09 00:21:11 indiri69 Exp $
*/
define('SM_PATH', '../../');
$debug = false;
+if(!sqgetGlobalVar('smtoken', $submitted_token, SQ_POST)) {
+ $submitted_token = '';
+}
+
// Make sure the plugin is activated
global $plugins;
if(!in_array('change_pass', $plugins)) {
$showform = true;
if (isset($change_pass_form)) {
+ sm_validate_security_token($submitted_token, 3600, TRUE);
sq_change_text_domain('change_pass');
sqgetGlobalVar('change_pass_old', $change_pass_old, SQ_POST);
sqgetGlobalVar('change_pass_new', $change_pass_new, SQ_POST);
}
if($showform) {
- echo addForm($PHP_SELF);
+ echo addForm(sqm_baseuri() . 'plugins/change_pass/options.php');
+ echo addHidden('smtoken', sm_generate_security_token());
echo
html_tag('table', "\n" .
html_tag('tr', "\n" .
Change Password
-3.0
+3.1