RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AJAX upload progress bar

File sharing script

File mirror script

Newsletter script
downloader ip search

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro
View previous topic :: View next topic  
Author Message
qq_bbq



Joined: 05 Jul 2009
Posts: 114

PostPosted: Feb 23, 2010 7:23 am    Post subject: downloader ip search Reply with quote

In latest downloads admin section:
http://site.com/?op=admin_downloads_all

How can I make the downloader ip search not absolute?
Example: there is this downloader ip, 123.45.67.890

I want it so if I search 123.45.67 it will show 123.45.67.890, 123.45.67.891, 123.45.67.892, etc.

I know this is just a simple sql syntax to change, so what do I change?
Back to top
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 2109
Location: UFO Lab

PostPosted: Feb 23, 2010 5:26 pm    Post subject: Reply with quote

This is not easy since we keep IPs in integer binary form in DB. So need to use integer range to select all downloads from subnet.
This line is responsible for IP filter if you're interested:
Code:
my $filter_ip = "AND i.ip=INET_ATON('$f->{ip}')" if $f->{ip}=~/^[\d\.]+$/;
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group