" . __('Security error. Please contact the administrator.') . ""; } else if (!empty($file) && !empty($hash)) { //echo $file; if (!file_exists($file)) $file = $_SERVER['DOCUMENT_ROOT'] . $file; if (!file_exists($file)) { echo "

" . __("File is missing in disk storage. Please contact the administrator.") . "

"; } else { header('Content-type: aplication/octet-stream;'); header('Content-type: ' . mime_content_type($file) . ';'); header("Content-Length: " . filesize($file)); header('Content-Disposition: attachment; filename="' . basename($file) . '"'); readfile($file); } } ?>