how make a modification for "download speed limit" in version 2.1.xx ?
i see a solution but is for version 1.xx
must only modify download2.php????????
header('Content-type: application/octetstream');
header('Content-Length: ' . filesize("./storage/".$validdownload[0]));
header('Content-Disposition: attachment; filename="'.$validdownload[1].'"');
readfile("./storage/".$validdownload[0]);
die();
$speed_rate = 100;
//Speed is in KB/s (Kilobytes per second).
header('Cache-control: private');
header('Content-type: application/octetstream');
header('Content-Length: ' . filesize("./storage/".$validdownload[0]));
header('Content-Disposition: filename='.$validdownload[1]);
flush();
$dfile = fopen("./storage/".$validdownload[0], "r");
while (!feof($dfile)){
print fread($dfile, round($speed_rate * 1024));
flush();
sleep(1);
}
fclose($dfile);
Return to Hacks and Modifications
Users browsing this forum: No registered users and 4 guests