73 trace(
"Download: document filename to download {$document->file}", 3);
79 trace(
"Download: opening document with filepath {$filepath} and mimeType {$mimeType}", 3);
81 trace(
"Download: opened document {$document_id}", 3);
83 header(
"Pragma: private");
84 header(
"Content-Disposition: inline;filename=\"" . basename(
$document->file) .
"\"");
85 header(
"Cache-Control: must-revalidate");
86 header(
"Content-Type: $mimeType");
90 header(
"X-SendFile: $filepath");
98 header(
"Content-Length: $size");
104 session_write_close();
This class maps the publication table.
static detectXSendFileSupport()
Determines whether the mod_xsendfile extension is present, when running under Apache.
static using()
Import the datamodels, views and manifest for the specified component(s).
static end($message="")
Use this method to terminate execution of a script instead of using the php keywords exit() or die().
static redirectToLogin()
Redirect the user to the login page.
if(!checkRole($library->allow_access) &&! $library->allowAccess()) if(!checkRole($document->allow_access)) $d