getContentByVersion($version);
if (!$version) die("error: could not get version $version");
printHTMLHead( getMLText("document_title", array("documentname" => $document->getName()) ) );
printTitleBar($document->getFolder());
printCenterStart();
printStartBox(getMLText("rm_version"));
print "
";
if ($document->getAccessMode($user) < M_ALL)
{
printMLText("operation_not_allowed");
printGoBack();
}
else
{
printMLText("removing_version", array("version" => $version->getVersion()));
if (!$version->remove())
{
printMLText("error_occured");
printGoBack();
}
else
{
printMLText("op_finished");
printGoto(array(array($document->getName(), "../out/out.ViewDocument.php?documentid=".$document->getID())));
}
}
print "
";
printEndBox();
printCenterEnd();
printHTMLFoot();
?>