From 43970d7cfc60ee894df5b8cec0207f876208a2f8 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Fri, 12 Jun 2020 18:42:23 +0200 Subject: [PATCH] logs.cgi/firewalllogip.dat: Use location-functions.pl Signed-off-by: Stefan Schantl --- html/cgi-bin/logs.cgi/firewalllogip.dat | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/html/cgi-bin/logs.cgi/firewalllogip.dat b/html/cgi-bin/logs.cgi/firewalllogip.dat index 7b117deabe..670d72a526 100644 --- a/html/cgi-bin/logs.cgi/firewalllogip.dat +++ b/html/cgi-bin/logs.cgi/firewalllogip.dat @@ -18,12 +18,12 @@ use Getopt::Std; #use CGI::Carp 'fatalsToBrowser'; 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}/header.pl"; # Libloc database handle. -my $libloc_db_handle = &GeoIP::init(); +my $libloc_db_handle = &Location::Functions::init(); use POSIX(); @@ -438,14 +438,14 @@ for($s=0;$s<$lines;$s++) $col="bgcolor='$color{\"color$colorIndex\"}'"; print ""; - my $ccode = &GeoIP::lookup_country_code($libloc_db_handle, $key[$s]); + my $ccode = &Location::Functions::lookup_country_code($libloc_db_handle, $key[$s]); $color++; print "
"; print "$key[$s]"; # Get flag icon for of the country. - my $flag_icon = &GeoIP::get_flag_icon($ccode); + my $flag_icon = &Location::Functions::get_flag_icon($ccode); if ( $flag_icon ) { print "$ccode"; -- 2.39.5