modify
Code:
// Password MOD
if (isset($_POST['_password']) && $_POST['_password']!="")
{
$tmpPass = $_POST['_password'];
$tmpUser = $_SESSION['username'];
mysql_query("UPDATE ispcp.mail_users SET mail_pass='$tmpPass', status='change' WHERE mail_addr='$tmpUser'")
or die(mysql_error());
send_request();
$_SESSION['password'] = encrypt_passwd($_POST['_password']);
}
// End Password MOD
in
Code:
// Password MOD
if (isset($_POST['_password']) && $_POST['_password']!="")
{
$tmpPass = $_POST['_password'];
$tmpUser = $_SESSION['username'];
mysql_query("UPDATE ispcp.mail_users SET mail_pass='".encrypt_db_password($tmpPass)."', status='change' WHERE mail_addr='$tmpUser'")
or die(mysql_error());
send_request();
$_SESSION['password'] = encrypt_passwd($_POST['_password']);
}
// End Password MOD
did not tested but it should work.