| View previous topic :: View next topic |
| Author |
Message |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2109 Location: UFO Lab
|
Posted: Aug 10, 2010 8:36 am Post subject: Re: limitation issue |
|
|
| 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: | #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: | | my $bw = $db->SelectOne("SELECT SUM(size) FROM IP2Files WHERE $cond AND created > NOW()-INTERVAL ? DAY",$ses->getIP,$c->{bw_limit_days}); |
|
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2109 Location: UFO Lab
|
Posted: Aug 10, 2010 11:40 am Post subject: |
|
|
Changed Sharingmatrix leech to Filesonic since they've made a rebranding.
upload.cgi + index.cgi updated. |
|
| Back to top |
|
 |
mastypk
Joined: 04 Apr 2010 Posts: 124
|
Posted: Aug 10, 2010 12:23 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
Dulci
Joined: 10 Jun 2010 Posts: 78 Location: Netherlands
|
Posted: Aug 11, 2010 7:05 am Post subject: |
|
|
| There schould be a sub forum for costumers only with how tos that would be great. |
|
| Back to top |
|
 |
adiga
Joined: 23 Jul 2009 Posts: 117
|
Posted: Aug 12, 2010 2:06 am Post subject: |
|
|
| after enabled Hotlink original image all old images do not show and show instead the default image |
|
| Back to top |
|
 |
nik0la
Joined: 30 Dec 2009 Posts: 102
|
Posted: Aug 12, 2010 2:09 am Post subject: |
|
|
| filefactory.com leech is not working to if you need an account i have one.. |
|
| Back to top |
|
 |
idupload
Joined: 04 Jun 2010 Posts: 97 Location: Indonesia
|
Posted: Aug 13, 2010 4:44 am Post subject: |
|
|
Report mod :
Can not leech 4shared.com
| Code: | | http://www.4shared.com/get/4N_dUiZk/The_Temptations_-_My_Girl__aca.html |
| Quote: | 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 |
|
| Back to top |
|
 |
idupload
Joined: 04 Jun 2010 Posts: 97 Location: Indonesia
|
Posted: Aug 13, 2010 6:13 am Post subject: Re: limitation issue |
|
|
| PilgrimX182 wrote: |
Here goes quick hack for ya: in index.cgi find
| Code: | #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: | | 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: |
#my $cond = $ses->getUser ? "usr_id=".$ses->getUserId : "ip=INET_ATON('".$ses->getIP."')";
|
I only found this line script in index.cgi
| Code: | | 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: | | 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 |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2109 Location: UFO Lab
|
Posted: Aug 13, 2010 8:36 am Post subject: |
|
|
| idupload: sorry, it's in index_dl.pm |
|
| Back to top |
|
 |
gembels
Joined: 21 May 2010 Posts: 23
|
Posted: Aug 13, 2010 4:24 pm Post subject: |
|
|
@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. |
|
| Back to top |
|
 |
idupload
Joined: 04 Jun 2010 Posts: 97 Location: Indonesia
|
Posted: Aug 13, 2010 11:46 pm Post subject: |
|
|
| 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 |
|
| Back to top |
|
 |
idupload
Joined: 04 Jun 2010 Posts: 97 Location: Indonesia
|
Posted: Aug 16, 2010 2:03 am Post subject: |
|
|
| 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 |
|
| Back to top |
|
 |
idupload
Joined: 04 Jun 2010 Posts: 97 Location: Indonesia
|
Posted: Aug 16, 2010 8:17 am Post subject: |
|
|
Report can not leech anymore from :
filesonic.com with this files
| Code: | | http://filesonic.com/en/file/16809891/Inception.2010.720p.TS.XviD-PrisM.part11.rar |
| Quote: | Filename: Inception.2010.720p.TS.XviD-PrisM.part11.rar
Error: Received HTML page instead of file |
status my premium account still valid until
| Quote: | Premium Membership Valid Until:
2011-08-01 19:58:54 |
Please updated new system maybe to integrated filesonic.com admin. Thank you |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2109 Location: UFO Lab
|
Posted: Aug 16, 2010 8:34 am Post subject: |
|
|
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: | if($c->{bw_limit})
{
.....
} |
|
|
| Back to top |
|
 |
idupload
Joined: 04 Jun 2010 Posts: 97 Location: Indonesia
|
Posted: Aug 16, 2010 4:16 pm Post subject: |
|
|
| 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: | 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 |
|
| Back to top |
|
 |
|