{% extends 'admin.twig' %} {% set title %}{{ 'UserCountry_Geolocation'|translate }}{% endset %} {% block content %} {% import 'macros.twig' as piwik %}

{{ title }}

{{ 'UserCountry_GeolocationPageDesc'|translate }}

{% if not isThereWorkingProvider %}

{{ 'UserCountry_HowToSetupGeoIP'|translate }}

{{ 'UserCountry_HowToSetupGeoIPIntro'|translate }}

 

{% endif %}
{{ 'General_InfoFor'|translate(thisIP) }}
{% for id,provider in locationProviders if provider.isVisible %}

{% if provider.status == 0 %} {{ 'General_NotInstalled'|translate}} {% elseif provider.status == 1 %} {{ 'General_Installed'|translate }} {% elseif provider.status == 2 %} {{ 'General_Broken'|translate }} {% endif %}

{{ provider.description|translate|raw }}

{% if provider.status != 1 and provider.install_docs is defined %}

{{ provider.install_docs|raw }}

{% endif %}
{% if provider.status == 1 %}
{% if thisIP != '127.0.0.1' %} {{ 'UserCountry_CurrentLocationIntro'|translate }}:

{{ provider.location|raw }}
{% else %} {{ 'UserCountry_CannotLocalizeLocalIP'|translate(thisIP) }} {% endif %}
{% endif %} {% if provider.statusMessage is defined and provider.statusMessage %}
{% if provider.status == 2 %}{{ 'General_Error'|translate }}: {% endif %}{{ provider.statusMessage|raw }}
{% endif %} {% if provider.extra_message is defined and provider.extra_message %}
{{ provider.extra_message|raw }}
{% endif %}
{% endfor %}
{% if geoIPLegacyLocUrl is defined and geoIPLegacyLocUrl and isInternetEnabled %} {# The text in this part is not translatable on purpose, as it will be removed again soon #}

Setting up automatic updates for GeoIP Legacy is no longer supported.

{% if 'GeoLite' in geoIPLegacyLocUrl %}
Maxmind announced to discontinue updates to the GeoLite Legacy databases as of April 1, 2018.
{% endif %} Please consider switching to GeoIP 2 soon! GeoIP Legacy Support is deprecated and will be removed in one of the next major releases.
{% if geoIPLegacyLocUrl or geoIPLegacyIspUrl or geoIPLegacyOrgUrl %}

GeoIP Legacy Auto Update

Your previous configuration for automatic updates for GeoIP legacy databases is still up and running. It will be automatically disabled and removed after switching to GeoIP2.

Below you can find the current configuration:

{% if geoIPLegacyLocUrl %}

{{ 'UserCountry_LocationDatabase'|translate|e('html_attr') }}: {{ geoIPLegacyLocUrl }}

{% endif %} {% if geoIPLegacyIspUrl %}

{{ 'UserCountry_ISPDatabase'|translate|e('html_attr') }}: {{ geoIPLegacyIspUrl }}

{% endif %} {% if geoIPLegacyOrgUrl %}

{{ 'UserCountry_OrgDatabase'|translate|e('html_attr') }}: {{ geoIPLegacyOrgUrl }}

{% endif %} {% if geoIPLegacyUpdatePeriod %}

{{ 'UserCountry_DownloadNewDatabasesEvery'|translate|e('html_attr') }}: {{ geoIPLegacyUpdatePeriod }}

{% endif %} {% endif %}
{% endif %} {% if isInternetEnabled %}
{% if showGeoIPUpdateSection %} {% if not geoIPDatabasesInstalled %}

{{ 'UserCountry_PiwikNotManagingGeoIPDBs'|translate|e('html_attr') }}

{{ 'UserCountry_IWantToDownloadFreeGeoIP'|translate|raw }}

{{ 'UserCountry_IPurchasedGeoIPDBs'|translate('','')|raw }}

'~geoLiteFilename~'') ~ '...')|json_encode }}" progress="locationUpdater.progressFreeDownload">
{% endif %} {% include "@UserCountry/_updaterManage.twig" %} {% else %}

{{ 'UserCountry_CannotSetupGeoIPAutoUpdating'|translate }}

{% endif %}
{% endif %} {% endblock %}