include_once $SERVER_ROOT . '/classes/TaxonomyUtilities.php'; if (!$SYMB_UID) { header('Location: ../../profile/index.php?refurl=../taxa/admin/taxonomymaintenance.php?' . $_SERVER['QUERY_STRING']); } $action = array_key_exists("action", $_REQUEST) ? $_REQUEST["action"] : ""; $taxonManager = new TaxonomyUtilities(); $isEditor = false; if ($isAdmin || array_key_exists("Taxonomy", $userRights)) { $isEditor = true; } if ($isEditor) { if ($action == 'buildenumtree') { if ($taxonManager->buildHierarchyEnumTree()) { $statusStr = 'SUCCESS building Taxonomic Index'; } else { $statusStr = 'ERROR building Taxonomic Index: ' . $taxonManager->getErrorMessage(); } } elseif ($action == 'rebuildenumtree') { if ($taxonManager->rebuildHierarchyEnumTree()) { $statusStr = 'SUCCESS building Taxonomic Index'; } else { $statusStr = 'ERROR building Taxonomic Index: ' . $taxonManager->getErrorMessage(); } } } ?> <html> <head> <title><?php echo $DEFAULT_TITLE . " Taxonomy Maintenance "; ?>