// -*- c++ -*- $maintdir = ".."; require("$maintdir/constants.php3"); require("$authdir/get-login.php3"); get_login(true); if ($theUser->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 |