getUserType() != 1) header("Location: $maintdir"); // If we get past here, we're logged in // Change values $u = lookupUser($id); if ($new_name != "") $u->setGecos($new_name); if ($new_email != "") $u->setEmail($new_email); if ($new_admin == "yes" || $id == "admin") $u->setUserType("1"); else $u->setUserType("0"); 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)); } $u->save(); header("Location: edit-user.php3?id=$id");