Stud.IP
5.4
|
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 | |
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() |
FileType $file = null |
$file_id = basename(Request::get('file_id')) |
$file_missing = false |
switch ($type) if ($file_missing) if ($no_access) $file_name = FileManager::cleanFileName(Request::get('file_name')) |
$file_ref = null |
switch ($type) $filesize = 0 |
$path_file = '' |
$start = $end = null |
string $type = Request::int('type') |
if (isset($_SERVER['HTTPS'])&&$_SERVER['HTTPS']=== 'on') else |