mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
country.cgi: Use location-functions.pl
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -28,7 +28,7 @@ my $lines = '1';
|
||||
my $lines2 = '';
|
||||
|
||||
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";
|
||||
|
||||
@@ -63,10 +63,10 @@ foreach my $country (@countries) {
|
||||
$country = uc($country);
|
||||
|
||||
# Get flag icon for of the country.
|
||||
my $flag_icon = &GeoIP::get_flag_icon($country);
|
||||
my $flag_icon = &Location::Functions::get_flag_icon($country);
|
||||
|
||||
# Get country name.
|
||||
my $name = &GeoIP::get_full_country_name($country);
|
||||
my $name = &Location::Functions::get_full_country_name($country);
|
||||
|
||||
if ($lines % 2) {
|
||||
print "<td $col><a id='$country'><img src='$flag_icon' alt='$country' title='$country'/></a></td>";
|
||||
|
||||
Reference in New Issue
Block a user