/**
 * Changelog
 *
 * @package         GeoIP
 *
 * @author          Peter van Westen <info@regularlabs.com>
 * @link            https://regularlabs.com
 * @copyright       Copyright © 2023 Regular Labs - All Rights Reserved
 * @license         GNU General Public License version 2 or later
 */

/**
 * + Addition
 * ! Removal
 * ^ Change
 * # Fix
 */

06-Feb-2025 : v6.1.4
 ^ Improves support for IPv6

13-Jan-2025 : v6.1.3
 # Fixes issue with ips through Cloudflare not working

21-Sep-2024 : v6.1.2
 ^ Updates translations: tr-TR
 # Fixes issue Regular Labs library plugin conflicting with save event of Firecoders
 # Fixes issue with php errors about undefined subdivisions in some cases

09-Jul-2024 : v6.1.1
 ^ Updates translations: sv-SE
 # Fixes issue php error when uploading media
 # Fixes issue with not all location data being returned in geo object correctly

04-Jun-2024 : v6.1.0
 + Adds option to enter the MaxMind account ID in order to use the new License Keys
 ^ Updates some deprecated code

28-Mar-2024 : v6.0.5
 # Fixes issue with country conditions not working

04-Mar-2024 : v6.0.4
 # Fixes issue with RegularLabs\Scoped being output in some cases

04-Mar-2024 : v6.0.3
 # Fixes issue with PHP error on some IP addresses where country is not found
 # Scopes external composer libraries to prevent conflicts

20-Feb-2024 : v6.0.2
 # Fixes issue with errors when trying to install/update via CLI
 # Fixes issue with php warning about dynamic property $database_file

02-Dec-2023 : v6.0.1
 ^ Refactors some code
 # Fixes issue with return value on getGeo not being an object

21-Sep-2023 : v6.0.0
 ! [J3] Removes Joomla 3 support
 ^ [J4][J5] Updates code to PHP 8.1 standards
 # [J5] Fixes issue with errors on installation

04-Sep-2023 : v5.4.0
 ^ [J4] Increases minimum php version to 8.1

27-Aug-2023 : v5.3.1
 # [J5] Fixes issue with extension getting disabled on Joomla 5

02-Aug-2023 : v5.3.0
 + [J5] Makes it possible to install on Joomla 5

23-May-2023 : v5.2.3
 ^ [J4] Improves memory usage preventing memory exhaustion in some cases

27-Mar-2023 : v5.2.2
 # [J4] Fixes issue with PHP errors/warnings on PHP 8.2

13-Jan-2023 : v5.2.1
 ^ Removes not-used language files after installation
 # Fixes issue with GeoIP database file being emptied when updating to a new version
 # Fixes issue with incorrect prefix characters for comments in the language files
 # [J4] Fixes issue with 'Combine Admin Menu' option in the Regular Labs Library plugin not working

11-Oct-2022 : v5.2.0
 ^ Changes code styling: tabs to spaces
 ^ Changes installer to use a package manifest instead of a custom installer plugin
 ^ Refactors some code
 ^ Updated some php code to use PHP 7.4 standards
 ^ Updates MaxMind GeoIP2 code to version 2.13
 ^ Updates translations: tr-TR
 # [J4] Fixes issue with extensions not being re-enabled after upgrading from J3 to J4

11-Jun-2022 : v5.1.1
 # [J4] Fixes issue with installation breaking on Joomla 4.2

22-Apr-2022 : v5.1.0
 ^ Updates MaxMind GeoIP2 code to version 2.12
 # [J4] Fixes issue with potential php warnings about NULL value in strpos, on PHP 8.1+
 # [J4] Refactors some code

11-Feb-2022 : v5.0.1
 # [J4] Fixes issue with error on installation

11-Feb-2022 : v5.0.0
 + [J4] Adds Joomla 4 support
 ^ Increases minimum php version to 7.4.0
 ^ Updates translations: tr-TR
 # Fixes issue with error on installation when using php 8.1 or higher
 # Fixes issue with some error messages that should only show in admin side also showing on frontend

14-Aug-2021 : v4.0.0
 ! Removes deprecated global GeoIP classname (deprecated since 05 October 2017)
 ^ Improves upgrade/update check information in Joomla updater

11-Aug-2021 : v3.1.1
 # Fixes issue with admin messages showing multiple times on same page

06-Aug-2021 : v3.1.0
 ^ Cleans up code
 ^ Improves dealing with Joomla 3 code (disabling plugins) after upgrading to Joomla 4
 ^ Increases minimum php version to 7.2.0
 # Fixes issue with incorrect update urls on plugins
 # Fixes issue with non-html pages (like raw) being forced to html format in some case
 # Fixes issue with php TypeError being thrown on some xml pages

14-Apr-2021 : v3.0.8
 ^ Changes code in minified javascript files to not use eval
 # Fixes issue with fatal php error when regularlabs library folder is deleted

14-Sep-2020 : v3.0.7
 ^ More preparations for Joomla 4 (in)compatibility

17-Aug-2020 : v3.0.6
 ^ Updates some library code

28-Jul-2020 : v3.0.5
 ^ Ignores local IP addresses

05-Jul-2020 : v3.0.4
 # Fixes issue with php errors when ip address is not found in the database

21-Jun-2020 : v3.0.3
 ^ Makes IP address be taken from the HTTP_X_FORWARDED_FOR value if set
 ^ Updates MaxMind DB library to current latest
 ^ Updates translations: de-DE, sv-SE, tr-TR

12-Jan-2020 : v3.0.2
 # Fixes issue with public functions never returning anything anymore

11-Jan-2020 : v3.0.1
 # Fixes issue with fatal php error wen GeoIP database file is empty

08-Jan-2020 : v3.0.0
 > <h4>GeoIP now requires a MaxMind License Key!</h4>For the full details, check out <a href="https://docs3.regularlabs.com/geoip" target="_blank">the tutorial</a>.
 + Adds field to enter the MaxMind License Key
 + Adds translations: pl-PL
 ^ Improves layout of options in the system plugin settings
 ^ Improves method of updating the GeoIP database to server
 ^ Improves some language strings
 ^ Updates code to require and work with the now required MaxMind License Key

11-Apr-2019 : v2.5.0
 + Adds translations: et-EE, zh-CN
 ^ Changes minimum requirement from Joomla 3.8.0 to Joomla 3.9.0
 ^ Changes use of RL toggler scripts to use Joomla core showon scripts
 ^ Improves way Regular Labs Library scripts and styles are loaded on admin side
 ^ Refactors some code
 # Fixes issue with some servers not recognizing visitor IP address

29-Oct-2018 : v2.4.1
 ^ Changes minimum requirement from Joomla 3.7.0 to Joomla 3.8.0
 ^ Rearranges plugin options
 # Fixes issue with country 'Russian Federation' sometimes returning as 'Russia'

08-Mar-2018 : v2.4.0
 + Adds Regions for Bulgaria, Cyprus, Czech Republic, Denmark, Greece, Hungary, Iceland, Ireland, Israel, Poland, Romania, Slovakia, Slovenia, South Africa, Sweden, Switzerland, Taiwan, Thailand, Turkey, Ukraine and the United Arab Emirates

12-Feb-2018 : v2.3.0
 ^ Changes minimum requirement from Joomla 3.6.0 to Joomla 3.7.0
 ^ Updates MaxMind DB to version 1.2.0
 ^ Updates MaxMind GeoIP2 code to version 2.8.0
 # Fixes some javascript issues in admin side on Joomla 3.7.0

05-Oct-2017 : v2.2.0
 + Adds translations: bg-BG, da-DK, pl-PL
 # Fixes issue with potential fatal error about redeclaring class GeoIp when using AdAgency

12-Jul-2017 : v2.1.0
 + Adds translations: cs-CZ
 ^ Updates geoip library to v2.6.0

21-Jun-2017 : v2.0.2
 ^ Updates geoip library to v2.5.0
 # Fixes issue with fatal error when ip address is not found

16-Feb-2017 : v2.0.1
 # Fixes issue with missing files

16-Feb-2017 : v2.0.0
 + Adds translations: de-DE, id-ID
 ! Removes redundant composer files
 ^ Changes minimum requirement from Joomla 3.4.1 to Joomla 3.6.0
 ^ Changes minimum requirement from php 5.3.13 to php 5.4
 ^ Completely recoded the extension and Regular Labs Library (now using namespaces)
 ^ Updates MaxMind GeoIP2 code to version 2.4.5
 # Fixes issue with uninstallation giving an error

29-Sep-2016 : v1.2.3
 ^ Makes object return country and continent names by default

16-Jun-2016 : v1.2.2
 # Fixes issue with fatal error on local setups using IP address ::1

06-May-2016 : v1.2.0
 + Adds translations: sv-SE
 ^ Improves way database package is unpacked
 ^ Moves database file out of extension package and gets downloaded upon installation
 # Fixes issue with library not working!

23-Apr-2016 : v1.0.1
 # Fixes issue with feed pages breaking

16-Apr-2016 : v1.0.0
 ^ Moves from NoNumber to Regular Labs branding
 ^ Updates GeoIP database to version April 2016

05-Mar-2016 : v0.4.2
 ^ Updates GeoIP database to version March 2016
 # Fixes issue with fatal error when IP is not know in GeoIP database
 # [PRO] Fixes issue with assignment to regions in some countries not working

28-Jan-2016 : v0.4.1
 + Adds translations: hu-HU, uk-UA
 ^ Updates GeoIP database to version January 2016
 # Fixes issues with Joomla 3.5 and php7 compatibility

21-Nov-2015 : v0.4.0
 ^ Moves to autoloading via composer instead of JLoader::registerNamespace()
 # Fixes issue with incorrect casing of namespaces

04-Nov-2015 : v0.3.0
 ^ Updates GeoIP database to version November 2015
 # Fixes issue with difference in casing of folder when updating database file

11-Sep-2015 : v0.2.0
 + Adds plugin to be able to update the GeoIP database

31-Aug-2015 : v0.1.1
 + Adds ability to give the getGeo method a pre-defined IP address
 ^ Made getGeo method public
 # Fixes issue with casing in folder names causing autoloading to fail

31-Aug-2015 : v0.1.0
 + First beta release