<?php
ob_clean ();
$load = $link->hrefquery ();

$name = explode ( '&', $load [1] );

$finalname = $name [0];

$path = $load [2];

if ($path != '' && $finalname != '') {
	$file = $path . $finalname; // file location;
	
	header ( 'Content-Type: application/octet-stream' );
	header ( 'Content-Disposition: attachment; filename=' . $finalname . '' );
	header ( 'Content-Length: ' . filesize ( $file ) );
	readfile ( $file );
}

?>