XFileSharing Pro - Next download delay per 100 Mb

Powerfull XFileSharing version

Moderator: admin

Message
Author
Timmy
Posts: 146
Joined: Feb 10, 2010 8:17 pm

Next download delay per 100 Mb

#1 Postby Timmy » Mar 26, 2010 11:41 am

hi guys,

what option do you have here in your website?
I have this:

Next download delay per 100 Mb
Anonymous: 1800
Registered: 1200
Premium: 0


But I tried using my website as Anonymous and when I tried to download a file, appeared this message:
You have to wait 2 hours, 58 minutes, 42 seconds till next download
Download files instantly with Premium-account


Is there anyway to add a delay per file and not per 100 Mb?
Thank you

Timmy
Posts: 146
Joined: Feb 10, 2010 8:17 pm

#2 Postby Timmy » Mar 30, 2010 2:28 pm

Please, anyone?

ankurs
Posts: 1054
Joined: Mar 10, 2009 2:34 am

#3 Postby ankurs » Mar 30, 2010 3:11 pm

nvm.
Last edited by ankurs on Apr 01, 2010 4:32 am, edited 1 time in total.

Timmy
Posts: 146
Joined: Feb 10, 2010 8:17 pm

#4 Postby Timmy » Mar 31, 2010 3:00 pm

adding per file as for limit instead of hours or days is better in my point of view.
look my first post to see what happened to me:
"You have to wait 2 hours, 58 minutes, 42 seconds till next download "

Timmy
Posts: 146
Joined: Feb 10, 2010 8:17 pm

#5 Postby Timmy » Apr 03, 2010 12:22 pm

please, anyone?

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#6 Postby PilgrimX182 » Apr 05, 2010 6:54 am

Try this hack: in index.cgi replace

Code: Select all

my $wait = int($c->{add_download_delay}*$last->{size}/(100*1048576)) - $last->{dt};

with

Code: Select all

my $wait = $c->{add_download_delay} - $last->{dt};

this will ignore last downloaded file size, and will add delay after each downloaded file.

Timmy
Posts: 146
Joined: Feb 10, 2010 8:17 pm

#7 Postby Timmy » Apr 06, 2010 3:46 pm

Great hack !!! Works like a charm !!!
Thank you so much PilgrimX182, YOU ARE THE MAN! :D

Timmy
Posts: 146
Joined: Feb 10, 2010 8:17 pm

#8 Postby Timmy » Apr 11, 2010 12:54 am

hi guys,

I'm having some problems since that I made this change.
My users are saying that they see always the message of "You have to wait 15 minutes till next download", even If they don't download anything.

I tried with a test account and everything is working fine for me, but already received many complains. What could be?

Can be because of this config?
Allow download from: Exact downloader IP

What is the difference of the above and the 111.222.333.*** , 11.222.***.*** and All IPs?


If you want to test as a member, please login with:
test / test

Can someone help me, please?
Last edited by Timmy on Apr 12, 2010 11:04 am, edited 1 time in total.

Timmy
Posts: 146
Joined: Feb 10, 2010 8:17 pm

#9 Postby Timmy » Apr 12, 2010 11:05 am

please help...

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#10 Postby PilgrimX182 » Apr 12, 2010 11:29 am

Replace

Code: Select all

my $wait = $c->{add_download_delay} - $last->{dt};

with

Code: Select all

my $wait = $last->{dt} ? $c->{add_download_delay} - $last->{dt} : 0;

Timmy
Posts: 146
Joined: Feb 10, 2010 8:17 pm

#11 Postby Timmy » Apr 12, 2010 11:59 am

Thank you PilgrimX182!
Think that the problem is finally solved! :-)

I notice that the problem that I had, only appeared to the new users after I change the line in the first time.

Now I think that everything is fine :)

Thank you again :)


Return to “XFileSharing Pro”

Who is online

Users browsing this forum: No registered users and 0 guests