diff --git a/op/op.SetReviewersApprovers.php b/op/op.SetReviewersApprovers.php
index 58fd244d3..57ab8f749 100644
--- a/op/op.SetReviewersApprovers.php
+++ b/op/op.SetReviewersApprovers.php
@@ -19,7 +19,7 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
include("../inc/inc.Settings.php");
-include("../inc/inc.LogInit.php");
+include("../inc/inc.LogInit.php");
include("../inc/inc.ClassEmail.php");
include("../inc/inc.DBInit.php");
include("../inc/inc.Utils.php");
diff --git a/out/out.UpdateDocument.php b/out/out.UpdateDocument.php
index 196ed4cde..34af133ed 100644
--- a/out/out.UpdateDocument.php
+++ b/out/out.UpdateDocument.php
@@ -1,235 +1,235 @@
- getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
-}
-$documentid = $_GET["documentid"];
+include("../inc/inc.Language.php");
+include("../inc/inc.ClassUI.php");
+include("../inc/inc.Authentication.php");
+
+if (!isset($_GET["documentid"]) || !is_numeric($_GET["documentid"]) || intval($_GET["documentid"])<1) {
+ UI::exitError(getMLText("document_title", array("documentname" => 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_READWRITE) {
- UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
+
+if (!is_object($document)) {
+ UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
}
-UI::htmlStartPage(getMLText("document_title", array("documentname" => $document->getName())));
-UI::globalNavigation($folder);
+$folder = $document->getFolder();
+$docPathHTML = getFolderPathHTML($folder, true). " / ".htmlspecialchars($document->getName())."";
+
+if ($document->getAccessMode($user) < M_READWRITE) {
+ UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
+}
+
+UI::htmlStartPage(getMLText("document_title", array("documentname" => $document->getName())));
+UI::globalNavigation($folder);
UI::pageNavigation($docPathHTML, "view_document");
-
-?>
-
-
-
-isLocked()) {
-
- $lockingUser = $document->getLockingUser();
-
- print "
";
-
- printMLText("update_locked_msg", array("username" => htmlspecialchars($lockingUser->getFullName()), "email" => $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;
+
+?>
+
+
+
+isLocked()) {
+
+ $lockingUser = $document->getLockingUser();
+
+ print "";
+
+ printMLText("update_locked_msg", array("username" => htmlspecialchars($lockingUser->getFullName()), "email" => $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();
+?>
+
|
-
+
_enableLargeFileUpload) {
?>
|
-
+
-
-
+
+