Stud.IP  6.0
sendfile.php File Reference

Namespaces

 studip_core
 

Variables

 $file_id = basename(Request::get('file_id'))
 
 $type = Request::int('type')
 
if($type< 0|| $type > 7) $no_access = true
 
 $file_missing = false
 
 $file = null
 
 $file_ref = null
 
switch($type) if($file_missing) if($no_access) $file_name = FileManager::cleanFileName(Request::get('file_name'))
 
 $path_file = ''
 
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(!parse_url($path_file, PHP_URL_SCHEME) &&!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

◆ $allowed_mime_types

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 (!parse_url( $path_file, PHP_URL_SCHEME) &&!file_exists( $path_file)) $allowed_mime_types = get_mime_types()

◆ $file

FileType $file = null

◆ $file_id

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

◆ $file_missing

$file_missing = false

◆ $file_name

switch ( $type) if ( $file_missing) if ( $no_access) $file_name = FileManager::cleanFileName(Request::get('file_name'))

◆ $file_ref

$file_ref = null

◆ $filesize

switch ( $type) $filesize = 0

◆ $no_access

if ( $type< 0||$type > 7) $no_access = true

◆ $path_file

$path_file = ''

◆ $start

$start = $end = null

◆ $type

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

◆ else

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