Adjust CGI files to work with latest location-function.pl changes.

Fixes #12515.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Stefan Schantl
2020-11-07 19:47:24 +01:00
committed by Michael Tremer
parent 427190d578
commit 07e42be978
11 changed files with 17 additions and 47 deletions

View File

@@ -3002,9 +3002,6 @@ END
&Header::openbigbox('100%', 'LEFT', '', '');
&Header::openbox('100%', 'LEFT', $Lang::tr{'ovpn con stat'});
# Libloc database handle.
my $libloc_db_handle = &Location::Functions::init();
#
# <td><b>$Lang::tr{'protocol'}</b></td>
# protocol temp removed
@@ -3055,7 +3052,7 @@ END
$users[$uid]{'Proto'} = $proto;
# get country code for "RealAddress"...
my $ccode = &Location::Functions::lookup_country_code($libloc_db_handle, (split ':', $users[$uid]{'RealAddress'})[0]);
my $ccode = &Location::Functions::lookup_country_code((split ':', $users[$uid]{'RealAddress'})[0]);
my $flag_icon = &Location::Functions::get_flag_icon($ccode);
$users[$uid]{'Country'} = "<a href='country.cgi#$ccode'><img src='$flag_icon' border='0' align='absmiddle' alt='$ccode' title='$ccode' /></a>";
$uid++;