![]() |
CMS
Version 3.9
|
Go to the source code of this file.
Variables | |
$attachment_id = checkNumeric($_GET["attachment_id"]) | |
$attachment = new Attachment($attachment_id) | |
$dir = $config['uploadbase'] . DIRECTORY_SEPARATOR | |
$filepath = sanitizePath($dir . $attachment->local_filename) | |
$mimeType = DocumentHandler::getDocMimeType($attachment->local_filename) | |
$f = fopen($filepath, "r") | |
$size = filesize($filepath) | |
$attachment = new Attachment($attachment_id) |
Definition at line 38 of file download.inc.
$attachment_id = checkNumeric($_GET["attachment_id"]) |
Definition at line 36 of file download.inc.
$dir = $config['uploadbase'] . DIRECTORY_SEPARATOR |
Definition at line 40 of file download.inc.
$f = fopen($filepath, "r") |
Definition at line 46 of file download.inc.
$filepath = sanitizePath($dir . $attachment->local_filename) |
Definition at line 42 of file download.inc.
$mimeType = DocumentHandler::getDocMimeType($attachment->local_filename) |
Definition at line 43 of file download.inc.
$size = filesize($filepath) |
Definition at line 47 of file download.inc.