login($username, $fPassword_current)) { $error += 1; $pPassword_password_current_text = $PALANG['pPassword_password_current_text_error']; } if (empty ($fPassword) or ($fPassword != $fPassword2)) { $error = 1; $pPassword_password_text = $PALANG['pPassword_password_text_error']; } if ($error != 1) { if($uh->change_pass($username, $fPassword_current, $fPassword)) { flash_info($PALANG['pPassword_result_success']); header("Location: main.php"); exit(0); } else { $tMessage = $PALANG['pPassword_result_error']; } } } include ("../templates/header.php"); include ("../templates/users_menu.php"); include ("../templates/users_password.php"); include ("../templates/footer.php"); /* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */ ?>