private static function download_headers($file_path, $filename)
{
self::check_server_config();
self::clean_buffers();
nocache_headers();
header("X-Robots-Tag: noindex, nofollow", true);
header("Content-Type: " . self::get_download_content_type($file_path));
header("Content-Description: File Transfer");
header("Content-Disposition: attachment; filename=\"" . $filename . "\";");
header("Content-Transfer-Encoding: binary");
if ($size = @filesize($file_path)) {
header("Content-Length: " . $size);
}
}