Stud.IP  trunk Revision
sendfile.php File Reference

Namespaces

 studip_core
 

Variables

 $file_id = escapeshellcmd(basename(Request::get('file_id')))
 
 $type = Request::int('type')
 
 $no_access = true
 
if(in_array($type, [0, 6, 7])) if($type==1) if($type==4) if($no_access) $file_name = FileManager::cleanFileName(basename(Request::get('file_name')))
 
while(ob_get_level()) if(isset($file_ref) && $file_ref->file->url_access_type=='redirect') $content_blacklisted
 
if($content_blacklisted($content_type)) if(Request::int('force_download')|| $content_type=="application/octet-stream") else
 
 $start = $end = null
 

Variable Documentation

◆ $content_blacklisted

while (ob_get_level()) if (isset( $file_ref) &&$file_ref->file->url_access_type=='redirect') $content_blacklisted
Initial value:
= function ($mime) {
foreach (['html', 'javascript', 'svg', 'xml'] as $check) {
if (stripos($mime, $check) !== false) {
return true;
}
}
return false;
}
$check
Definition: studip-compat.php:139

◆ $file_id

$file_id = escapeshellcmd(basename(Request::get('file_id')))

◆ $file_name

if (in_array( $type, [0, 6, 7])) if ( $type==1) if ( $type==4) if ( $no_access) $file_name = FileManager::cleanFileName(basename(Request::get('file_name')))

◆ $no_access

$no_access = true

◆ $start

$start = $end = null

◆ $type

$type = Request::int('type')

◆ else

if ( $_SERVER[ 'HTTPS']=="on") else
Initial value:
{
$content_disposition = "inline"