Quote:
Originally Posted by Liquid_N2
I seem to have an issue where a user cannot download for 1165 seconds after clicking a download no matter what I set the time to.
Any ideas?
|
There is a built in delay based on the size of the file that was downloaded last. The idea is to prevent someone from launching a denial of service attack on your site by repeatedly downloading a very large file in short periods of time. If you want to disable this feature, in downloads.php
FIND (on or about line 513):
PHP Code:
if ((TIMENOW - ($temptime['time'] + $temptime['filesize']/400000)) < 0 OR (TIMENOW - $temptime['time'] < $vbulletin->options['ecdownloaddelay']))
REPLACE WITH:
PHP Code:
if ((TIMENOW + ($temptime['time'] + $temptime['filesize']/400000)) < 0 OR (TIMENOW - $temptime['time'] < $vbulletin->options['ecdownloaddelay']))
(The first minus is changed to a plus. The only "delay" check will now be based on what you set in admincp.