This is a really sloppy fix for the mktime{} issue.
It will work properly on a 7 day time scale.
open includes/modules/downloads.php
Find:
Replace with:Code:$download_timestamp = mktime(23, 59, 59, $dt_month, $dt_day + $downloads['download_maxdays'], $dt_year);
If you need to change your days you will have to adjust the line manuallyCode:$download_timestamp = mktime(23, 59, 59, $dt_month - 2, $dt_day + 16 + $downloads['download_maxdays'], $dt_year + 8);
Heres the base (which will give you todays date)
Now lets say you want to give users 2 days to download the file.Code:$download_timestamp = mktime(23, 59, 59, $dt_month - 2, $dt_day + 9 + $downloads['download_maxdays'], $dt_year + 8);
Now if someone can just prevent users from going to checkout_success and downloading files we will be doing something.Code:$dt_day + 11 + $downloads['download_maxdays'],
For now, this will at least give you the ability to allow downloads.





LinkBack URL
About LinkBacks






Bookmarks