mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
add fold marks
This commit is contained in:
parent
4b4595181b
commit
063b950b3a
|
@ -46,7 +46,7 @@ if ($document->getAccessMode($user) < M_READ) {
|
|||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
|
||||
}
|
||||
|
||||
if(isset($_GET["version"])) {
|
||||
if(isset($_GET["version"])) { /* {{{ */
|
||||
$version = $_GET["version"];
|
||||
|
||||
if (!is_numeric($version)) {
|
||||
|
@ -59,7 +59,8 @@ if(isset($_GET["version"])) {
|
|||
if(!$controller->run()) {
|
||||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version"));
|
||||
}
|
||||
} elseif(isset($_GET["file"])) {
|
||||
} /* }}} */
|
||||
elseif(isset($_GET["file"])) { /* {{{ */
|
||||
$fileid = $_GET["file"];
|
||||
|
||||
if (!is_numeric($fileid) || intval($fileid)<1) {
|
||||
|
@ -83,7 +84,7 @@ if(isset($_GET["version"])) {
|
|||
|
||||
ob_clean();
|
||||
readfile($dms->contentDir . $file->getPath());
|
||||
}
|
||||
} /* }}} */
|
||||
|
||||
add_log_line();
|
||||
exit;
|
||||
|
|
Loading…
Reference in New Issue
Block a user