18 Commits

Author SHA1 Message Date
Matthias Fischer
6134b588a0 country.cgi: Fix for copy&paste typo
Fixes typo in line 103 (<-> is no tab...)

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-02-15 13:13:54 +00:00
Matthias Fischer
f65629dd47 country.cgi: Cosmetic fix for 'Back'-button'
While testing Peter's patch for Bug #12560 I noticed that the standard 'back'-button
at the end of the page - like in 'ipinfo.cgi' - was implemented as a text string.

I just took the code segment with the 'back'-*image* from 'ipinfo.cgi' to make this
link looking similar to the other pages.

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-12-24 11:59:14 +00:00
Peter Müller
4ed49291c2 country.cgi: fix location function call
Fixes: #12560

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-12-24 11:59:08 +00:00
Stefan Schantl
07e42be978 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>
2020-11-09 14:07:21 +00:00
Stefan Schantl
cb204ea100 country.cgi: Use own location-functions.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-09-24 17:36:38 +00:00
Stefan Schantl
d1a23835db country.cgi: Use location-functions.pl
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2020-06-12 17:53:29 +02:00
Michael Tremer
00793c27c9 GeoIP: Add lookup function for convenience
Instead of opening the database again for each lookup,
we will read it into memory on first use and every lookup
after that will be coming from cache.

Reviewed-by: Peter Müller <peter.mueller@link38.eu>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-11-13 22:37:19 +00:00
Stefan Schantl
8fba24ec15 country.cgi: Rework script.
* Introduce new method to get all country codes. In the past just the countries
has been used for which flag icons where available, which is just not what we
want.

* Finish column when the last element in the array has passed and we have an uneven
amount of items

* Improve code style.
2015-05-12 20:41:35 +02:00
Stefan Schantl
3ea01fe042 Multiple CGI's: Use &GeoIP::get_flag_icon for getting country flags. 2015-05-02 13:45:50 +02:00
Stefan Schantl
b013822b99 Rename Locale::Country to Locale::Codes::Country in various scripts.
The new Locale-Country version needs to be loaded and used by specifing
Locale::Codes::Country since an upstream API change. Adjusting various perl
scripts to use the module in the proper way again.
2015-04-22 18:18:38 +02:00
Alf Høgemark
326a764de6 firewalllog*.cgi and country.cgi: Use language strings, and align graphs
Put the piechart for firewalllog* in the center of the page horisontally,
this looks visually better. Add language string for count and details
submit button.

Add language strings for country.cgi.
Make html validate for country.cgi.
2014-03-01 14:32:52 +01:00
Alf Høgemark
534943c675 country.cgi: Use language string keys already defined 2014-02-15 15:24:58 +01:00
Alexander Marx
4250f386ce fifteen-theme: made country.cgi table themeable 2014-01-08 09:24:57 +01:00
Arne Fitzenreiter
95fb58a3d7 Fix countrycode list (thx to m.a.d). 2010-01-09 18:58:33 +01:00
ms
70df830214 Ein Paar Dateien fuer die GPLv3 angepasst.
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@853 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-08-29 13:25:32 +00:00
ms
0a58fbcb92 Einige Dateien hatten perm:755...
Das sollte im SVN nicht so sein ausser fuer unsere make.sh.


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@551 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-05-12 10:16:01 +00:00
ms
df8c781030 Hinzugefügt:
* Firewallhits


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@142 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2006-05-25 21:10:48 +00:00
ms
dace10b5e4 Hinzugefügt:
* GeoIP


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@140 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2006-05-25 19:49:10 +00:00