} else { $statusStr = $collid; } } } elseif ($action == 'Link Address') { if (!$collManager->linkAddress($_POST['iid'])) { $statusStr = $collManager->getErrorStr(); } } elseif (array_key_exists('removeiid', $_GET)) { if (!$collManager->removeAddress($_GET['removeiid'])) { $statusStr = $collManager->getErrorStr(); } } } if (isset($GBIF_USERNAME) && isset($GBIF_PASSWORD) && isset($GBIF_ORG_KEY) && $collid) { $collPubArr = $collManager->getCollPubArr($collid); if ($collPubArr[$collid]['publishToGbif']) { $publishGBIF = true; } if ($collPubArr[$collid]['publishToIdigbio']) { $publishIDIGBIO = true; } } $collData = $collManager->getCollectionData(true); ?> <html> <head> <title><?php echo $defaultTitle . " " . ($collid ? $collData["collectionname"] : ""); ?> Collection Profiles</title>