Prva inacica za Debian Jessie
[squirrelmail-change-pass.git] / functions.php
index 28ed9c2..20afc9e 100644 (file)
@@ -2,7 +2,7 @@
 /*
  * 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() {
@@ -59,7 +59,7 @@ function change_pass_dochange($change_pass_old, $change_pass_new, $debug = false
                                 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;
                             }
                         }
@@ -105,20 +105,20 @@ function change_pass_info_real() {
                 '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
                     )
                 )