Revize 1052
Přidáno uživatelem Michal Kliment před více než 13 roky(ů)
freenetis/trunk/kohana/application/controllers/download.php | ||
---|---|---|
<?php
|
||
$file = urldecode ($_GET['file']);
|
||
$path_parts = pathinfo ($file);
|
||
|
||
header("Content-Disposition: attachment; filename=" . urlencode($path_parts['basename']));
|
||
header("Content-Type: application/force-download");
|
||
header("Content-Type: application/octet-stream");
|
||
header("Content-Type: application/download");
|
||
header("Content-Description: File Transfer");
|
||
header("Content-Length: " . filesize($file));
|
||
|
||
readfile($file);
|
||
?>
|
Také k dispozici: Unified diff
Merge opravy kriticke chyby z testingu do trunku.