Je moet ingelogd zijn om te stemmen.
<? $dir = $_SERVER['DOCUMENT_ROOT'].'/download/'; $file = $dir.basename($_REQUEST['dl']); if (isset($_REQUEST['dl']) && file_exists($file) ) { header('Content-type: application/force-download'); header('Content-Transfer-Encoding: Binary'); header('Content-length: '.filesize($file)); header('Content-disposition: attachment; filename='.basename($file)); readfile($file); } else { echo 'No file with this name for download.'; }?>
<?$dir = $_SERVER['DOCUMENT_ROOT'].'/download/';$file = $dir.basename($_REQUEST['dl']); if (isset($_REQUEST['dl']) && file_exists($file) ) { header('Content-type: application/force-download'); header('Content-Transfer-Encoding: Binary'); header('Content-length: '.filesize($file)); header('Content-disposition: attachment; filename='.basename($file)); readfile($file);} else { echo 'No file with this name for download.';}?>