XFileSharing Pro - [QUESTION] Possible to change Max bandwidth, hour -> day

Message
Author
Rocket_Man
Posts: 19
Joined: May 28, 2008 12:56 am

[QUESTION] Possible to change Max bandwidth, hour -> day

#1 Postby Rocket_Man » May 28, 2008 12:06 pm

Hello,

I see in demo it is possible to control Users Limits with the parameter
Max bandwidth per hour (Mbytes per IP)

Is it easy/possible to adjust this to something like
Max bandwidth per day (Mbytes per IP)?

(i want the function Rapidshare has with 25GB/5days, this would almost be the same).

If this is possible I will go for your script ASAP.

-----

Additionally, is it possible to have the Users Limits to follow user account as well as IP? (Problem with this User Limit is if several people are using same account or people use non-static IP). Maybe a future feature?
Last edited by Rocket_Man on May 30, 2008 10:27 pm, edited 1 time in total.

Namaless
Posts: 107
Joined: Apr 20, 2008 12:10 pm

#2 Postby Namaless » May 28, 2008 12:34 pm

I like feature to limited to user account but in addictional to limited to ip (use all two limits).

Regards.

Rocket_Man
Posts: 19
Joined: May 28, 2008 12:56 am

#3 Postby Rocket_Man » May 29, 2008 2:04 pm

yes. Both options is very usefull.

----

Is it possible to control Users Limits to "max bandwidth" "per day" ?

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm

#4 Postby PilgrimX182 » May 30, 2008 9:43 am

This is in my TODO list, but I'm leaving on vacation next week, so next version will be in July only.

But here goes quick hack for you if you wanna use limit per day instead of per hour:
in index.cgi find

Code: Select all

3600*$file->{file_size}/($c->{mb_per_hour}*1048576

and replace 3600 with 3600*24

And use hour-limit in config as day-limit actually then.

Rocket_Man
Posts: 19
Joined: May 28, 2008 12:56 am

#5 Postby Rocket_Man » May 30, 2008 10:27 pm

Brilliant my friend. Thank you for info.

It is good to know your are working with development of the script.

Going to invest in it ;)

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm

#6 Postby PilgrimX182 » Jun 05, 2008 5:58 am

Yea. Yesterday implemented feature that you can limit each type of user bandwidth X Mb per last Y days. Kind of like in rapidshare.
Will be in next version.

Now not sure if I should remove that current feature when after download we calculate next time when you can download next file, so you see "Wait 12 minutes till next download".
What do you think?

Namaless
Posts: 107
Joined: Apr 20, 2008 12:10 pm

#7 Postby Namaless » Jun 05, 2008 7:37 am

PilgrimX182 wrote:Yea. Yesterday implemented feature that you can limit each type of user bandwidth X Mb per last Y days. Kind of like in rapidshare.
Will be in next version.

Now not sure if I should remove that current feature when after download we calculate next time when you can download next file, so you see "Wait 12 minutes till next download".
What do you think?

It's good..
I like this feature, but not remove hour/ip... add this to the script.. ;)

Regards.

Rocket_Man
Posts: 19
Joined: May 28, 2008 12:56 am

#8 Postby Rocket_Man » Jun 06, 2008 1:45 pm

PilgrimX182 wrote:[..]Now not sure if I should remove that current feature when after download we calculate next time when you can download next file, so you see "Wait 12 minutes till next download".
What do you think?

Please keep this feature.


Return to “XFileSharing Pro”



Who is online

Users browsing this forum: No registered users and 0 guests