Stud.IP  4.0
 All Data Structures Namespaces Files Functions Variables Groups
sendfile.php File Reference

Namespaces

 studip_core
 

Variables

 $file_id = escapeshellcmd(basename(Request::get('file_id')))
 
 $type = Request::int('type')
 
if($type< 0||$type > 7) $no_access = true
 
 $file_missing = false
 
switch($type) if($file_missing)
if($no_access) 
$file_name = FileManager::cleanFileName(Request::get('file_name'))
 
switch($type$filesize = 0
 
while(ob_get_level()) if(isset($file_ref,
$file_ref->file, $file_ref->
file->metadata['access_type'])&&$file_ref->
file->metadata['access_type']===
'redirect') if(!file_exists($path_file)) 
$allowed_mime_types = get_mime_types()
 
if(!in_array($content_type,
$allowed_mime_types)) if(Request::int('force_download')||$content_type=="application/octet-stream") 
else
 
 $start = $end = null
 

Variable Documentation

while (ob_get_level()) if (isset($file_ref, $file_ref->file, $file_ref->file->metadata['access_type'])&&$file_ref->file->metadata['access_type']=== 'redirect') if (!file_exists($path_file)) $allowed_mime_types = get_mime_types()
$file_id = escapeshellcmd(basename(Request::get('file_id')))
$file_missing = false
switch ($type) if ($file_missing) if ($no_access) $file_name = FileManager::cleanFileName(Request::get('file_name'))
switch ($type) $filesize = 0
if ($type< 0||$type > 7) $no_access = true
$start = $end = null
string $type = Request::int('type')
if (isset($_SERVER['HTTPS'])&&$_SERVER['HTTPS']=== 'on') else
Initial value:
{
$content_disposition = "inline"