checkPolicy("pop",$username,$_POST['acp_newpass'])) { $errstr=_("This password is not strong enough for your policy, set a stronger password or call your administrator"); } else { */ // ok, let's change the password $acp_newpass=$_POST['acp_newpass']; $newp=_md5cr($acp_newpass); mysql_query("UPDATE address SET password='".addslashes($newp)."' WHERE id=".$c["id"]." ;"); $errstr=_("Your password has been successfully changed. Don't forget to change it in your mail software if you are using one (Outlook, Mozilla, Thunderbird, Eudora ...)"); // Write new cookies for the password $onetimepad = OneTimePadCreate(strlen($acp_newpass)); sqsession_register($onetimepad,'onetimepad'); $key = OneTimePadEncrypt($acp_newpass, $onetimepad); setcookie("key", $key, 0, $base_uri); // } } } } } // POSTED data ? textdomain("squirrelmail"); displayPageHeader($color, 'None'); textdomain("alternc-changepass"); if ($errstr) echo "
".$errstr."
"; ?>