}
$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 ";
?>
</title>
	<meta http-equiv="Content-Type" content="text/html; charset=<?php 
echo $CHARSET;