コード例 #1
0
ファイル: viewprofile.php プロジェクト: Symbiota/Symbiota
     $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 {
         $updateStatus = $pHandler->changePassword($newPwd);
     }
     if ($updateStatus) {
         $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") {