コード例 #1
0
ファイル: index.php プロジェクト: jphilip124/Symbiota
        $dwcManager->setCustomWhereSql(" o.occid = {$occid} ");
        echo $dwcManager->getAsTurtle();
        $done = TRUE;
    }
    if ($mediarange == 'application/rdf+xml' || $format == 'rdf') {
        Header("Content-Type: application/rdf+xml; charset=" . $CHARSET);
        $dwcManager = new DwcArchiverOccurrence();
        $dwcManager->setCustomWhereSql(" o.occid = {$occid} ");
        echo $dwcManager->getAsRdfXml();
        $done = TRUE;
    }
    if ($mediarange == 'application/json' || $format == 'json') {
        Header("Content-Type: application/json; charset=" . $CHARSET);
        $dwcManager = new DwcArchiverOccurrence();
        $dwcManager->setCustomWhereSql(" o.occid = {$occid} ");
        echo $dwcManager->getAsJson();
        $done = TRUE;
    }
}
if ($done) {
    die;
}
if ($SYMB_UID) {
    //Check editing status
    if ($IS_ADMIN || array_key_exists('CollAdmin', $USER_RIGHTS) && in_array($collId, $USER_RIGHTS['CollAdmin'])) {
        $isEditor = true;
    } elseif (array_key_exists('CollEditor', $USER_RIGHTS) && in_array($collId, $USER_RIGHTS['CollEditor'])) {
        $isEditor = true;
    } elseif ($occArr['observeruid'] == $SYMB_UID) {
        $isEditor = true;
    } elseif ($indManager->isTaxonomicEditor()) {