$userId = $SYMB_UID; } if ($userId == $SYMB_UID) { $isSelf = 1; } if ($isSelf || $isAdmin) { $isEditor = 1; } } if (!$userId) { header('Location: index.php?refurl=viewprofile.php'); } $statusStr = ""; $pHandler = new ProfileManager(); $pHandler->setUid($userId); $pClManager = new PersonalChecklistManager(); $person = null; if ($isEditor) { // ****************************** editing a profile ************************************// if ($action == "Submit Edits") { $firstname = $_REQUEST["firstname"]; $lastname = $_REQUEST["lastname"]; $email = $_REQUEST["email"]; $title = array_key_exists("title", $_REQUEST) ? $_REQUEST["title"] : ""; $institution = array_key_exists("institution", $_REQUEST) ? $_REQUEST["institution"] : ""; $city = array_key_exists("city", $_REQUEST) ? $_REQUEST["city"] : ""; $state = array_key_exists("state", $_REQUEST) ? $_REQUEST["state"] : ""; $zip = array_key_exists("zip", $_REQUEST) ? $_REQUEST["zip"] : ""; $country = array_key_exists("country", $_REQUEST) ? $_REQUEST["country"] : ""; $url = array_key_exists("url", $_REQUEST) ? $_REQUEST["url"] : ""; $biography = array_key_exists("biography", $_REQUEST) ? $_REQUEST["biography"] : "";