$document->getName()) ) );
printTitleBar($document->getFolder());
printCenterStart();
printStartBox(getMLText("unlock_document"));
print "
";
if ($document->getAccessMode($user) < M_READWRITE)
{
printMLText("operation_not_allowed");
printGoBack();
}
else
{
if (!$document->isLocked())
{
printMLText("document_is_not_locked");
printGoBack();
}
else
{
$lockingUser = $document->getLockingUser();
if (($lockingUser->getID() == $user->getID()) || ($document->getAccessMode($user) == M_ALL))
{
printMLText("unlocking_document");
if ($document->setLocked("false"))
{
printMLText("op_finished");
printGoto(array(array($document->getName(), "../out/out.ViewDocument.php?documentid=".$document->getID())));
}
else
{
printMLText("error_occured");
printGoBack();
}
}
else
{
printMLText("unlocking_denied");
printGoBack();
}
}
}
print "
";
printEndBox();
printCenterEnd();
printHTMLFoot();
?>