define('CLEARENCE', true);
error_reporting(0);
require("_config.inc.php");
require("_config.var.php");
$command = explode("+", base64_decode($token));
$mainpath = $_SERVER['DOCUMENT_ROOT'] . "$command[0]/$command[1]";
$filesize2 = sprintf("%u", filesize($mainpath));
if(!$fdl=@fopen($mainpath,'r')){
print "
ERROR - Invalid Request (Downloadable file Missing or Unreadable)
";
die;
}else{
set_time_limit(0);
header("Cache-Control: ");# leave blank to avoid IE errors
header("Pragma: ");# leave blank to avoid IE errors
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=\"".$command[2]."\"");
header("Content-length:".(string)($filesize2));
sleep(1);
fpassthru($fdl);
}
?>