getMLText("invalid_doc_id"))),getMLText("invalid_doc_id")); } if(!$settings->_enableLargeFileUpload) { UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("access_denied")); } $documentid = intval($_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_READWRITE) { UI::exitError(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName()))),getMLText("access_denied")); } UI::htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName())))); UI::globalNavigation($folder); UI::pageNavigation($docPathHTML, "view_document"); UI::contentHeading(getMLText("update_document") . ": " . htmlspecialchars($document->getName())); UI::contentContainerStart(); if ($document->isLocked()) { $lockingUser = $document->getLockingUser(); print "
"; printMLText("update_locked_msg", array("username" => htmlspecialchars($lockingUser->getFullName()), "email" => htmlspecialchars($lockingUser->getEmail()))); if ($lockingUser->getID() == $user->getID()) printMLText("unlock_cause_locking_user"); else if ($document->getAccessMode($user) == M_ALL) printMLText("unlock_cause_access_mode_all"); else { printMLText("no_update_cause_locked"); print "
"; UI::contentContainerEnd(); UI::htmlEndPage(); exit; } print "
"; } // Retrieve a list of all users and groups that have review / approve // privileges. $docAccess = $document->getApproversList(); UI::printUploadApplet('../op/op.UpdateDocument2.php', array('folderid'=>$folder->getId(), 'documentid'=>$document->getId()), 1, array('version_comment'=>1)); UI::contentContainerEnd(); UI::htmlEndPage(); ?>