if ($isAdmin || array_key_exists("Taxonomy", $userRights)) { $editable = true; } $statusStr = ''; if ($editable) { if (array_key_exists("taxonedits", $_POST)) { $statusStr = $taxonEditorObj->submitTaxonEdits($_POST); } elseif ($submitAction == 'updatetaxstatus') { $tsArr = array(); $tsArr["tid"] = $target; $tsArr["tidaccepted"] = $_REQUEST["tidaccepted"]; if (isset($_REQUEST["family"])) { $tsArr["family"] = $_REQUEST["family"]; } $tsArr["parenttid"] = $_REQUEST["parenttid"]; $statusStr = $taxonEditorObj->submitTaxstatusEdits($tsArr); } elseif (array_key_exists("synonymedits", $_REQUEST)) { $synEditArr = array(); $synEditArr["tid"] = $_REQUEST["tid"]; $synEditArr["tidaccepted"] = $target; $synEditArr["unacceptabilityreason"] = $_REQUEST["unacceptabilityreason"]; $synEditArr["notes"] = $_REQUEST["notes"]; $synEditArr["sortsequence"] = $_REQUEST["sortsequence"]; $statusStr = $taxonEditorObj->submitSynEdits($synEditArr); } elseif ($submitAction == 'linktoaccepted') { $deleteOther = array_key_exists("deleteother", $_REQUEST) ? true : false; $statusStr = $taxonEditorObj->submitAddAcceptedLink($target, $_REQUEST["tidaccepted"], $deleteOther); } elseif (array_key_exists("changetoaccepted", $_REQUEST)) { $tidAccepted = $_REQUEST["tidaccepted"]; $switchAcceptance = false; if (array_key_exists("switchacceptance", $_REQUEST)) {