Hello,
1-i would like to know how the delay timer working for free users so i can set it correctly as i want.
2- how can i make the remaining time to download apears like countdown rather than letting user reload the page from time to time ?
Regards,
XFileSharing Pro - How the delay timer working for free users ?
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
You're talking about Download Delay caused by previuos download?
When user download file, we calculate the delay and put it to database according to user IP. Then check by IP when user can download file and show the difference (estimation time).
2) I can give you quick hack to put seconds delay to page instead of text, so u can create JS countdown if you need. No time to write this countdown for you.
When user download file, we calculate the delay and put it to database according to user IP. Then check by IP when user can download file and show the difference (estimation time).
2) I can give you quick hack to put seconds delay to page instead of text, so u can create JS countdown if you need. No time to write this countdown for you.
YesPilgrimX182 wrote:You're talking about Download Delay caused by previuos download?
but how can i control this time?When user download file, we calculate the delay and put it to database according to user IP. Then check by IP when user can download file and show the difference (estimation time).
when user try to down load 100 mb file but not complete the download then try to download another file he must wait 4 hours +
what if i want to make this time only 1 hour or 30 minuts ?
yes please and i will try to do something with it.2) I can give you quick hack to put seconds delay to page instead of text, so u can create JS countdown if you need. No time to write this countdown for you.
Regards,
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
You control this delay with "BW Per Day" limit. We calculate delay dividing this limit by 24 hours. So higher limit - shorter delay.
Hack:
1) create new file wait.html in Templates with content like this:
2) In index.cgi find
and replace it with
That's it. In wait variable you'll get number of seconds to wait. Now you can implement your own JS code.
Hack:
1) create new file wait.html in Templates with content like this:
Code: Select all
Wait <TMPL_VAR wait> seconds
Code: Select all
$ses->message("You have reached the download-limit for free-users.<br>Get your own Premium-account now!<br>(Or wait $elapsed)");
Code: Select all
$ses->PrintTemplate("wait.html",'wait'=>$wait);