mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
remote.cgi: Use location-functions.pl
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -28,7 +28,7 @@ use strict;
|
|||||||
use IO::Socket;
|
use IO::Socket;
|
||||||
|
|
||||||
require '/var/ipfire/general-functions.pl';
|
require '/var/ipfire/general-functions.pl';
|
||||||
require "${General::swroot}/geoip-functions.pl";
|
require "${General::swroot}/location-functions.pl";
|
||||||
require "${General::swroot}/lang.pl";
|
require "${General::swroot}/lang.pl";
|
||||||
require "${General::swroot}/header.pl";
|
require "${General::swroot}/header.pl";
|
||||||
|
|
||||||
@@ -279,7 +279,7 @@ sub printactivelogins()
|
|||||||
# list active logins...
|
# list active logins...
|
||||||
|
|
||||||
# Libloc database handle.
|
# Libloc database handle.
|
||||||
my $libloc_db_handle = &GeoIP::init();
|
my $libloc_db_handle = &Location::Functions::init();
|
||||||
|
|
||||||
foreach my $line (@output)
|
foreach my $line (@output)
|
||||||
{
|
{
|
||||||
@@ -291,8 +291,8 @@ sub printactivelogins()
|
|||||||
$remoteip =~ s/[()]//g;
|
$remoteip =~ s/[()]//g;
|
||||||
|
|
||||||
# display more information about that IP adress...
|
# display more information about that IP adress...
|
||||||
my $ccode = &GeoIP::lookup_country_code($libloc_db_handle, $remoteip);
|
my $ccode = &Location::Functions::lookup_country_code($libloc_db_handle, $remoteip);
|
||||||
my $flag_icon = &GeoIP::get_flag_icon($ccode);
|
my $flag_icon = &Location::Functions::get_flag_icon($ccode);
|
||||||
|
|
||||||
# get rDNS...
|
# get rDNS...
|
||||||
my $iaddr = inet_aton($remoteip);
|
my $iaddr = inet_aton($remoteip);
|
||||||
|
|||||||
Reference in New Issue
Block a user