downloader ip search

Powerfull XFileSharing version

Moderator: admin

Message
Author
qq_bbq
Posts: 122
Joined: Jul 05, 2009 11:33 pm

downloader ip search

#1 Postby qq_bbq » Feb 23, 2010 7:23 am

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?

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

#2 Postby PilgrimX182 » Feb 23, 2010 5:26 pm

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: Select all

my $filter_ip = "AND i.ip=INET_ATON('$f->{ip}')" if $f->{ip}=~/^[\d\.]+$/;


Return to “XFileSharing Pro”

Who is online

Users browsing this forum: No registered users and 0 guests