* Replaced Maxmind's IP database
* Began rebuilding GeoIP reader functionality
The GeoIP2 package does not worth with DB's that aren't built by maxmind themselves, making it rather unhelpful for us.
Since my long-term goal is for someone to be able to bring in their own DB, making a custom implementation seems like the reasonable choice.
(Plus my aim is already to replace the MaxMind DB due to it's licencing)
* Created an IP address lookup page
* + ASN info
* Bump last patch
* Make PHPStan happy
* Very minor refactor + PHPDocs
With the order of operations, it was possible for the error handler to be triggered without the auto-loader functional, resulting in these classes to not be loaded.
This fixes that
* Update Whm.php
* I rock
Removed extra CURL handler and made things much nicer.
* WHM SSO
I actually did the things I said this time instead of pushing a broken commit.
* Update Whm.php
Fixed an issue where I was trying to json decode a stdClass.
* Update Whm.php
Remove redundant variables
* Update Whm.php
* Dynamic Error URLs
Updated error returns so that the returned default url is /whm for resellers.
* Split up functions
I decided to split the functions instead of just hoping and praying that the dynamic function would work.
* remove unused variables
remove unused variables
* remove unused var
* Only enable the fallback cron behavior for testing / dev setups
* Clean up the cron error message
We don't need to worry about it clearing the message on prod environments going forward as the fallback will be disabled
* Fixed CS
* Remove additional hardcoded lists (countries & phone codes)
Also fixed a few UI oddities I noticed
* Bugfixes
* Removed the old reference to the polyfill
* Fixed a typo
* Refactor `getExternalIP()` to use `RetryableHttpClient`
Refactor `FOSSBilling\Tools` `getExternalIP()` function to use `RetryableHttpClient`.
* Fix incorrect parameter names and add cURL timeout
* Disable Network Interface live-tests
* Removed the hardcoded currencies list
Also streamlined the process of adding new currencies by allowing the title & exchange rate to automatically be determined.
* Use an existing translatable string
* Update the test workflows
* Dropped the legacy test, wrote two new ones
* Fixed a typo in my assert
* Whooooops
* Fixed our Rector config. Closes#2272
* Much improved the product configuration page
Fixed a bug and significantly improved the visuals for that page
* Place the period text after the cost
Closes#2242
* Misc changes
* Slightly shrunk the addon buttons, updated cspell
* Resolves https://github.com/FOSSBilling/FOSSBilling/issues/2279
* Made "notes" singular
While technically the DB name is notes and it'll appear as notes under the invoice, the option where you set the default is only a single text input so "notes" seems a bit odd to use there
---------
Co-authored-by: Devadatta Sahoo <webmaster@nettantra.com>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
* Bumped the Rector deadcode level
* Added the instanceof setlist
* Increasded type coverage and updated tests config too
* Bumped type coverage & ran PHP-cs-fixer