Stud.IP  jlu_3.3 Revision
sendfile.php File Reference

Namespaces

namespace  studip_core
 

Variables

 $file_id = escapeshellcmd(basename(Request::get('file_id')))
 
 $type = Request::int('type')
 
 $document = new StudipDocument($file_id)
 
 $object_id = $document->getValue('seminar_id')
 
 $no_access = true
 
if( $object_id &&in_array( $type, array(0, 6, 7))) if($type==1) if( $type==5) if(in_array($type, array(2, 3, 4))) if( $no_access) switch($type$file_name = prepareFilename(basename(Request::get('file_name')))
 
if(Request::int('zip') &&is_file($path_file)) $content_type = get_mime_type($file_name)
 
if(Request::int('force_download')|| $content_type=="application/octet-stream") else
 
 $start = $end = null
 

Variable Documentation

◆ $content_type

if (Request::int( 'zip') &&is_file( $path_file)) $content_type = get_mime_type($file_name)

◆ $document

$document = new StudipDocument($file_id)

◆ $file_id

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

◆ $file_name

if($object_id &&in_array($type, array(0, 6, 7))) if( $type==1) if($type==5) if(in_array( $type, array(2, 3, 4))) if($no_access) switch ( $type) $file_name = prepareFilename(basename(Request::get('file_name')))

◆ $no_access

$no_access = true

◆ $object_id

$object_id = $document->getValue('seminar_id')

◆ $start

$start = $end = null

◆ $type

◆ else

if ( $type !=5) else
Initial value:
{
$content_disposition = "inline"