getMLText("invalid_doc_id"))),getMLText("invalid_doc_id")); } $documentid = $_GET["documentid"]; $document = $dms->getDocument($documentid); if (!is_object($document)) { UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id")); } $folder = $document->getFolder(); $docPathHTML = getFolderPathHTML($folder, true). " / ".htmlspecialchars($document->getName()).""; if ($document->getAccessMode($user) < M_READ) { UI::exitError(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName()))),getMLText("access_denied")); } $notifyList = $document->getNotifyList(); UI::htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName())))); UI::globalNavigation($folder); UI::pageNavigation($docPathHTML, "view_document"); ?> \n"; if ((count($notifyList["users"]) == 0) && (count($notifyList["groups"]) == 0)) { print "