$statusStr = "<span color='green'>Password update successful!</span>"; } else { $statusStr = "Password update failed! Are you sure you typed the old password correctly?"; } $person = $pHandler->getPerson(); if ($person->getIsTaxonomyEditor()) { $tabIndex = 3; } else { $tabIndex = 2; } } elseif ($action == "Change Login") { $pwd = ''; if ($isSelf && isset($_POST["newloginpwd"])) { $pwd = $_POST["newloginpwd"]; } if (!$pHandler->changeLogin($_POST["newlogin"], $pwd)) { $statusStr = $pHandler->getErrorStr(); } $person = $pHandler->getPerson(); if ($person->getIsTaxonomyEditor()) { $tabIndex = 3; } else { $tabIndex = 2; } } elseif ($action == "Delete Profile") { if ($pHandler->deleteProfile($userId, $isSelf)) { header("Location: ../index.php"); } else { $statusStr = "Profile deletion failed! Please contact the system administrator"; } } elseif ($action == "Create Checklist") {