예제 #1
0
        $dwcaManager->setRedactLocalities(0);
    }
    $dwcaManager->setTargetPath($serverRoot . (substr($serverRoot, -1) == '/' ? '' : '/') . 'collections/datasets/dwc/');
}
$isEditor = 0;
if ($isAdmin || array_key_exists("CollAdmin", $userRights) && in_array($collId, $userRights["CollAdmin"])) {
    $isEditor = 1;
}
$collArr = array();
if ($collId) {
    $dwcaManager->setCollArr($collId);
    $collArr = $dwcaManager->getCollArr();
}
if ($isEditor) {
    if (array_key_exists('colliddel', $_POST)) {
        $dwcaManager->deleteArchive($_POST['colliddel']);
    }
}
?>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=<?php 
echo $charset;
?>
">
	<title>Darwin Core Archiver Publisher</title>
	<link href="../../css/base.css?<?php 
echo $CSS_VERSION;
?>
" type="text/css" rel="stylesheet" />
    <link href="../../css/main.css?<?php