XFileSharing Pro - XFileSharing 1.8 thread - Page 11

Message
Author
User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

Re: limitation issue

#151 Postby PilgrimX182 » Aug 10, 2010 8:36 am

gembels wrote:Hi,

A lot of our users back in Indonesia problem on limitation Max bandwidth last X day(s) settings, can we do limitation only on username only not IP's ? Because a lot of my user using Internet cafe's or university and they use same IP. The problem when you limit b/w on IP's its causing our premium its limited as well.

So I hope developer can help us to disabled limitation on IP Premium user.
Here goes quick hack for ya: in index.cgi find

Code: Select all

#my $cond = $ses->getUser ? "usr_id=".$ses->getUserId : "ip=INET_ATON('".$ses->getIP."')";
my $bw = $db->SelectOne("SELECT SUM(size) FROM IP2Files WHERE ip=INET_ATON(?) AND created > NOW()-INTERVAL ? DAY",$ses->getIP,$c->{bw_limit_days});
then uncomment 1st line and replace 2nd line with

Code: Select all

my $bw = $db->SelectOne("SELECT SUM(size) FROM IP2Files WHERE $cond AND created > NOW()-INTERVAL ? DAY",$ses->getIP,$c->{bw_limit_days});

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

#152 Postby PilgrimX182 » Aug 10, 2010 11:40 am

Changed Sharingmatrix leech to Filesonic since they've made a rebranding.
upload.cgi + index.cgi updated.

mastypk
Posts: 123
Joined: Apr 04, 2010 11:49 am

#153 Postby mastypk » Aug 10, 2010 12:23 pm

can we upgrade from v1.7 to v1.8

Can you please provide step by step instructions for those who have nginx & 100% download mod?

Regards

Dulci
Posts: 112
Joined: Jun 10, 2010 6:45 am

#154 Postby Dulci » Aug 11, 2010 7:05 am

There schould be a sub forum for costumers only with how tos that would be great.

adiga
Posts: 177
Joined: Jul 23, 2009 2:27 am

#155 Postby adiga » Aug 12, 2010 2:06 am

after enabled Hotlink original image all old images do not show and show instead the default image

nik0la
Posts: 102
Joined: Dec 30, 2009 1:50 pm

#156 Postby nik0la » Aug 12, 2010 2:09 am

filefactory.com leech is not working to if you need an account i have one..

idupload
Posts: 97
Joined: Jun 04, 2010 7:46 am

#157 Postby idupload » Aug 13, 2010 4:44 am

Report mod :

Can not leech 4shared.com

Code: Select all

http://www.4shared.com/get/4N_dUiZk/The_Temptations_-_My_Girl__aca.html
Filename: The_Temptations_-_My_Girl__aca.html
Error: Can not leech 4shared file
--------------------------------------------------------------------------------

For check files please provide all leech check files before download too admin just for suggestion. Thank you

----------------------------------------------------------------------------------

In remote upload please setup too for youtube to be mp3 or mp4 Thank you

idupload
Posts: 97
Joined: Jun 04, 2010 7:46 am

Re: limitation issue

#158 Postby idupload » Aug 13, 2010 6:13 am

PilgrimX182 wrote:
Here goes quick hack for ya: in index.cgi find

Code: Select all

#my $cond = $ses->getUser ? "usr_id=".$ses->getUserId : "ip=INET_ATON('".$ses->getIP."')";
my $bw = $db->SelectOne("SELECT SUM(size) FROM IP2Files WHERE ip=INET_ATON(?) AND created > NOW()-INTERVAL ? DAY",$ses->getIP,$c->{bw_limit_days});
then uncomment 1st line and replace 2nd line with

Code: Select all

my $bw = $db->SelectOne("SELECT SUM(size) FROM IP2Files WHERE $cond AND created > NOW()-INTERVAL ? DAY",$ses->getIP,$c->{bw_limit_days});


I did not yet find this script in index.cgi

Code: Select all

#my $cond = $ses->getUser ? "usr_id=".$ses->getUserId : "ip=INET_ATON('".$ses->getIP."')";
I only found this line script in index.cgi

Code: Select all

my $bw = $db->SelectOne("SELECT SUM(size) FROM IP2Files WHERE ip=INET_ATON(?) AND created > NOW()-INTERVAL ? DAY",$ses->getIP,$c->{bw_limit_days});
after I replace with new line with this error found in my web

Code: Select all

my $bw = $db->SelectOne("SELECT SUM(size) FROM IP2Files WHERE $cond AND created > NOW()-INTERVAL ? DAY",$ses->getIP,$c->{bw_limit_days});
in our country Indonesia, many users have same IP to login. So could you please updated with limited bandwidth by username not with IP admin? Thank you

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

#159 Postby PilgrimX182 » Aug 13, 2010 8:36 am

idupload: sorry, it's in index_dl.pm

gembels
Posts: 24
Joined: May 21, 2010 6:53 am

#160 Postby gembels » Aug 13, 2010 4:24 pm

@pilgrim

it's sure only limited b/w based on id premium ? but when they use registered and guest login they still limited on IP ? correct ? otherwise registered user just need to register again, its not effective.

idupload
Posts: 97
Joined: Jun 04, 2010 7:46 am

#161 Postby idupload » Aug 13, 2010 11:46 pm

gembels wrote:@pilgrim

it's sure only limited b/w based on id premium ? but when they use registered and guest login they still limited on IP ? correct ? otherwise registered user just need to register again, its not effective.
gembels, so until now your users premium with same IP address public have same limitation bandwidth not different limitation with username??

Admin please help us to solve this solution. Thank you

idupload
Posts: 97
Joined: Jun 04, 2010 7:46 am

#162 Postby idupload » Aug 16, 2010 2:03 am

PilgrimX182 wrote:idupload: sorry, it's in index_dl.pm
My files was exist index.cgi and index_dl.cgi
and now I upload index_dl.pm but it seems limitation bandwidth is not working....

There is a connection between index.cgi - index_dl.cgi and with index_dl.pm ?

I set permission for index_dl.pm : 666

Please I need more advise for this problem admin. Thank you

idupload
Posts: 97
Joined: Jun 04, 2010 7:46 am

#163 Postby idupload » Aug 16, 2010 8:17 am

Report can not leech anymore from :
filesonic.com with this files

Code: Select all

http://filesonic.com/en/file/16809891/Inception.2010.720p.TS.XviD-PrisM.part11.rar
Filename: Inception.2010.720p.TS.XviD-PrisM.part11.rar
Error: Received HTML page instead of file
status my premium account still valid until
Premium Membership Valid Until:
2011-08-01 19:58:54

Please updated new system maybe to integrated filesonic.com admin. Thank you

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

#164 Postby PilgrimX182 » Aug 16, 2010 8:34 am

idupload, first make sure you have 1.8 version, then update upload.cgi on your fileserver. It was updated recently for filesonic.com instead of sharingmatrix.com

gembels, BW is limited by IP ONLY now.
If you're interested, you can modify the logic in index_dl.pm in this part of code:

Code: Select all

if($c->{bw_limit})
{
.....
}

idupload
Posts: 97
Joined: Jun 04, 2010 7:46 am

#165 Postby idupload » Aug 16, 2010 4:16 pm

PilgrimX182 wrote:idupload, first make sure you have 1.8 version, then update upload.cgi on your fileserver. It was updated recently for filesonic.com instead of sharingmatrix.com

gembels, BW is limited by IP ONLY now.
If you're interested, you can modify the logic in index_dl.pm in this part of code:

Code: Select all

if($c->{bw_limit})
{
.....
}

PilgrimX182
what is the mean way to replace bw_limit with username not from IP ?? Because we are have same problem like gembels.
Please more detail. Thank you

PilgrimX182 can you change system premium account on megaupload, hotfile, 4shared.com from username:password with cookies only??
Thank you