78 trace(
"Download: document filename to download {$document->file}", 3);
84 trace(
"Download: opening document with filepath {$filepath} and mimeType {$mimeType}", 3);
86 trace(
"Download: opened document {$document_id}", 3);
91 header(
"Pragma: private");
92 header(
"Content-Disposition: {$disposition};filename=\"" . basename(
$document->file) .
"\"");
93 header(
"Cache-Control: must-revalidate");
94 header(
"Content-Type: $mimeType");
98 header(
"X-SendFile: $filepath");
106 header(
"Content-Length: $size");
112 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.
static getValue($component, $name)
Retrieve the value of the specified Setting.
if(!checkRole($library->allow_access) &&! $library->allowAccess()) if(!checkRole($document->allow_access)) $d