* * -------------------------------------------- * * This program is free software; you can redistribute it and/or modify it * * under the terms of the GNU General Public License as published by the * * Free Software Foundation; either version 2 of the License, or (at your * * option) any later version. * \**************************************************************************/ /* $Id$ */ $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True); $phpgw_info["flags"]["currentapp"] = "preferences"; include("../header.inc.php"); if ($phpgw_info["user"]["permissions"]["anonymous"]) { Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/")); exit; } if (! $submit) { $phpgw->common->header(); $phpgw->common->navbar(); ?>
">
">


   
common->navbar(); echo "


$error

"; exit; } $phpgw->db->query("update accounts set account_pwd='" . md5($n_passwd) . "', " . "account_lastpwd_change='" . time() . "' where account_lid='" . $phpgw_info["user"]["userid"] . "'"); // Since they are logged in, we need to change the password in sessions // in case they decied to check there mail. $phpgw->db->query("update sessions set session_pwd='" . $phpgw->common->encrypt($n_passwd) . "' where session_lid='" . $phpgw_info["user"]["userid"] . "'"); Header("Location: " . $phpgw->link($phpgw_info["server"]["webserver_url"] . "/preferences/","cd=18")); } ?>