コード例 #1
0
ファイル: viewprofile.php プロジェクト: Symbiota/Symbiota
     $isPublic = array_key_exists("ispublic", $_REQUEST) ? $_REQUEST["ispublic"] : "";
     $newPerson = new Person();
     $newPerson->setUid($userId);
     $newPerson->setFirstName($firstname);
     $newPerson->setLastName($lastname);
     $newPerson->setTitle($title);
     $newPerson->setInstitution($institution);
     $newPerson->setCity($city);
     $newPerson->setState($state);
     $newPerson->setZip($zip);
     $newPerson->setCountry($country);
     $newPerson->setEmail($email);
     $newPerson->setUrl($url);
     $newPerson->setBiography($biography);
     $newPerson->setIsPublic($isPublic);
     if (!$pHandler->updateProfile($newPerson)) {
         $statusStr = "Profile update failed!";
     }
     $person = $pHandler->getPerson();
     if ($person->getIsTaxonomyEditor()) {
         $tabIndex = 3;
     } else {
         $tabIndex = 2;
     }
 } elseif ($action == "Change Password") {
     $newPwd = $_REQUEST["newpwd"];
     $updateStatus = false;
     if ($isSelf) {
         $oldPwd = $_REQUEST["oldpwd"];
         $updateStatus = $pHandler->changePassword($newPwd, $oldPwd, $isSelf);
     } else {