CMS  Version 3.9
download.inc File Reference

Go to the source code of this file.

Variables

 $setting_id = checkNumeric($_GET["setting_id"])
 
 $setting = new Settings($setting_id)
 
 $dir = $config['uploadbase'] . DIRECTORY_SEPARATOR
 
 $filepath = sanitizePath($dir . $setting->value)
 
 $mimeType = getMimeType($setting->value)
 
 $f = fopen($filepath, "r")
 
 $size = filesize($filepath)
 

Variable Documentation

◆ $dir

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

Definition at line 12 of file download.inc.

◆ $f

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

Definition at line 20 of file download.inc.

◆ $filepath

$filepath = sanitizePath($dir . $setting->value)

Definition at line 16 of file download.inc.

◆ $mimeType

$mimeType = getMimeType($setting->value)

Definition at line 17 of file download.inc.

◆ $setting

$setting = new Settings($setting_id)

Definition at line 10 of file download.inc.

◆ $setting_id

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

Definition at line 8 of file download.inc.

◆ $size

$size = filesize($filepath)

Definition at line 21 of file download.inc.