//error_reporting(E_ALL);
include_once '../../config/symbini.php';
include_once $serverRoot . '/classes/TaxonomyCleaner.php';
header("Content-Type: text/html; charset=" . $charset);
$collId = $_REQUEST["collid"];
$displayIndex = array_key_exists('displayindex', $_REQUEST) ? $_REQUEST['displayindex'] : 0;
$analyzeIndex = array_key_exists('analyzeindex', $_REQUEST) ? $_REQUEST['analyzeindex'] : 0;
$taxAuthId = array_key_exists('taxauthid', $_REQUEST) ? $_REQUEST['taxauthid'] : 0;
$cleanManager;
$collName = '';
if ($collId) {
    $cleanManager = new TaxonomyCleaner();
    $cleanManager->setCollId($collId);
    $collName = $cleanManager->getCollectionName();
} else {
    $cleanManager = new TaxonomyCleaner();
}
if ($taxAuthId) {
    $cleanManager->setTaxAuthId($taxAuthId);
}
$isEditor = false;
if ($isAdmin) {
    $isEditor = true;
} else {
    if ($collId) {
        if (array_key_exists("CollAdmin", $userRights) && in_array($collId, $userRights["CollAdmin"])) {
            $isEditor = true;
        }
    } else {
        if (array_key_exists("Taxonomy", $userRights)) {
            $isEditor = true;
 function __destruct()
 {
     parent::__destruct();
 }