<?php include_once '../../config/symbini.php'; include_once $SERVER_ROOT . '/classes/TaxonomyEditorManager.php'; header("Content-Type: text/html; charset=" . $CHARSET); if (!$SYMB_UID) { header('Location: ' . $CLIENT_ROOT . '/profile/index.php?refurl=../taxa/admin/taxonomyeditor.php?' . $_SERVER['QUERY_STRING']); } $submitAction = array_key_exists('submitaction', $_REQUEST) ? $_REQUEST['submitaction'] : ''; $tabIndex = array_key_exists('tabindex', $_REQUEST) ? $_REQUEST['tabindex'] : 0; $tid = $_REQUEST["tid"]; $taxAuthId = array_key_exists('taxauthid', $_REQUEST) ? $_REQUEST["taxauthid"] : 1; $taxonEditorObj = new TaxonomyEditorManager(); $taxonEditorObj->setTid($tid); $taxonEditorObj->setTaxAuthId($taxAuthId); $editable = false; if ($IS_ADMIN || array_key_exists("Taxonomy", $USER_RIGHTS)) { $editable = true; } $statusStr = ''; if ($editable) { if (array_key_exists("taxonedits", $_POST)) { $statusStr = $taxonEditorObj->submitTaxonEdits($_POST); } elseif ($submitAction == 'updatetaxstatus') { $statusStr = $taxonEditorObj->submitTaxStatusEdits($_POST['parenttid'], $_POST['tidaccepted']); } elseif (array_key_exists("synonymedits", $_REQUEST)) { $statusStr = $taxonEditorObj->submitSynonymEdits($_POST['tidsyn'], $tid, $_POST['unacceptabilityreason'], $_POST['notes'], $_POST['sortsequence']); } elseif ($submitAction == 'linktoaccepted') { $deleteOther = array_key_exists("deleteother", $_REQUEST) ? true : false; $statusStr = $taxonEditorObj->submitAddAcceptedLink($_REQUEST["tidaccepted"], $deleteOther); } elseif (array_key_exists('deltidaccepted', $_REQUEST)) {
<?php include_once '../../config/symbini.php'; include_once $serverRoot . '/classes/TaxonomyEditorManager.php'; header("Content-Type: text/html; charset=" . $charset); if (!$SYMB_UID) { header('Location: ' . $clientRoot . '/profile/index.php?refurl=../taxa/admin/taxonomyeditor.php?' . $_SERVER['QUERY_STRING']); } $submitAction = array_key_exists('submitaction', $_REQUEST) ? $_REQUEST['submitaction'] : ''; $tabIndex = array_key_exists('tabindex', $_REQUEST) ? $_REQUEST['tabindex'] : 0; $target = $_REQUEST["target"]; $taxonEditorObj = new TaxonomyEditorManager(); $taxonEditorObj->setTid($target); if (array_key_exists("taxauthid", $_REQUEST)) { $taxonEditorObj->setTaxAuthId($_REQUEST["taxauthid"]); } $editable = false; 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"]; }