CMS  Version 3.9
download.inc File Reference

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)
 

Variable Documentation

◆ $attachment

$attachment = new Attachment($attachment_id)

Definition at line 38 of file download.inc.

◆ $attachment_id

$attachment_id = checkNumeric($_GET["attachment_id"])

Definition at line 36 of file download.inc.

◆ $dir

$dir = $config['uploadbase'] . DIRECTORY_SEPARATOR

Definition at line 40 of file download.inc.

◆ $f

$f = fopen($filepath, "r")

Definition at line 46 of file download.inc.

◆ $filepath

$filepath = sanitizePath($dir . $attachment->local_filename)

Definition at line 42 of file download.inc.

◆ $mimeType

$mimeType = DocumentHandler::getDocMimeType($attachment->local_filename)

Definition at line 43 of file download.inc.

◆ $size

$size = filesize($filepath)

Definition at line 47 of file download.inc.