Quote:
Originally Posted by itsblack
Hi Andrew, do you remember the download allowance problem I mentioned before?
I edited local_links.php file, moved these codes
PHP Code:
// Use filesize recorded in database to check that user has sufficient allowance to complete the download
$allow = check_user_allowances($linksize, $linkid);
if (!$allow['can_download']) {
eval(standard_error($allow['errormessage']));
exit;
}
before these codes
PHP Code:
if (!$links_permissions["can_access_link"]) {
ldmjump_access_error();
exit;
}
now everything goes OK.
|
Thanks - glad you've got things going how you want - but I don't think that that is a proper fix. You've moved the test to before the point where the code has worked out the size of the download. It's correct for links, but not for downloads.