getPassword(), 0, 2); $check = crypt($old_pw, $salt); if (0 && $check != $theUser->getPassword()) { do_header("Bad old password"); exit; } // Change values if ($new_name != "") $theUser->setGecos($new_name); if ($new_email != "") $theUser->setEmail($new_email); if ($new_pw1 != $new_pw2) { do_header("Passwords did not match"); ?>
Return to the user profile
Return to the main menu
setPassword(crypt($new_pw1, $salt)); } $theUser->save(); do_header("Information changed successfully"); ?>

Return to main menu