Commit Graph
2790 Commits
Author SHA1 Message Date
Belle Aerni a5d15c2a99 Upgrade GeoIP functionality & replace the databases (#2471)
* 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
2024-10-31 19:31:50 +01:00
Belle Aerni 2b431f8757 Smaller fixes (#2474)
* Fixed a few issues in the order page

* Fixup and clean up the invoice auth check

* Allow tests to pass
2024-10-31 02:29:11 -07:00
renovate[bot]andBelle Aerni 06d564f611 fix(deps): update dependency league/csv to v9.18.0 (#2461)
* fix(deps): update dependency league/csv to v9.18.0

* Replace reference to deprecated function

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2024-10-19 20:59:49 -07:00
FOSSBilling BotandFOSSBilling Bot 7563e41401 Apply PHP Code Styling & Quality Changes (#2455)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2024-10-09 04:01:56 +01:00
Adam Daley 8d5b63d259 Update node/npm dependencies (#2454)
Update node/npm dependencies to latest versions, where possible.
2024-10-04 22:03:17 +01:00
Adam Daley 928d6034d3 Ignore false positive PHPStan offsetAccess.notFound errors (#2447) 2024-09-29 18:35:50 +01:00
FOSSBilling BotandFOSSBilling Bot 5e7bd05518 Apply PHP Code Styling & Quality Changes (#2440)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2024-09-29 17:47:58 +01:00
renovate[bot] 6f5b20e695 chore(deps): update dependency @ckeditor/ckeditor5-dev-utils to v43 (#2434)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-10 01:23:25 -07:00
renovate[bot] 4f1b001a69 chore(deps): update dependency @ckeditor/ckeditor5-dev-translations to v43 (#2433)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-10 01:13:42 -07:00
FOSSBilling BotandFOSSBilling Bot c73ea40ccf Apply PHP Code Styling & Quality Changes (#2425)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2024-09-03 22:52:46 +02:00
FOSSBilling BotandFOSSBilling Bot 18cd4005c4 Apply PHP Code Styling & Quality Changes (#2395)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2024-08-08 13:48:24 -07:00
renovate[bot] 156e9f91d1 chore(deps): update dependency ckeditor5 to v43 (#2394)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-08 13:43:37 -07:00
FOSSBilling BotandFOSSBilling Bot 6425de8872 Apply PHP Code Styling & Quality Changes (#2392)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2024-08-06 12:53:35 -07:00
Belle Aerni d2cf53f1f4 Ensure the error handler always has the needed classes (#2386)
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
2024-08-04 13:24:35 -07:00
Belle Aerni 44c7c18e78 Added the WYSIWYG editor to the huraga theme (#2384)
* Added the WYSIWYG editor to the huraga theme

* Apply the dark mode workaround for CKEditor
2024-08-04 01:40:38 -07:00
Stage4000 8b63348878 WHM SSO (#2381)
* 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
2024-08-04 00:54:45 -07:00
Belle Aerni a3b0f7d919 Disable fallback cron behavior for non preview / development enviroments (#2378)
* 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
2024-08-01 17:18:01 -07:00
Belle AerniandChristoph Schlaepfer 54ea9a2bbd Added a method to mask debug log parameters (#2377)
* Added a method to mask debug log parameters

Co-Authored-By: Christoph Schlaepfer <1939311+Anuril@users.noreply.github.com>

* Slightly clean up

Co-Authored-By: Christoph Schlaepfer <1939311+Anuril@users.noreply.github.com>

---------

Co-authored-by: Christoph Schlaepfer <1939311+Anuril@users.noreply.github.com>
2024-08-01 14:19:12 -07:00
renovate[bot] e6f1f3c121 chore(deps): update dependency @ckeditor/ckeditor5-dev-translations to v42 (#2367)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 13:52:15 -07:00
renovate[bot] 8f065c5a1a chore(deps): update dependency @ckeditor/ckeditor5-dev-utils to v42 (#2368)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 13:43:41 -07:00
renovate[bot] 28d4e8cfd8 chore(deps): update dependency @ckeditor/ckeditor5-dev-utils to v41 (#2358)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-24 14:02:10 -07:00
renovate[bot] 828fa1a653 chore(deps): update dependency @ckeditor/ckeditor5-dev-translations to v41 (#2357)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-24 03:04:28 -07:00
Belle Aerni 32315e2ddb Remove additional hardcoded lists (#2346)
* 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
2024-07-12 00:46:03 +01:00
Stage4000 feed0f8256 Fix Client Profile Layout Bug (#2340)
Update mod_client_profile.html.twig
2024-07-06 16:20:49 -07:00
FOSSBilling BotandFOSSBilling Bot 17d19c28ee Apply PHP Code Styling & Quality Changes (#2333)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2024-07-04 13:46:38 -07:00
Adam Daley 4f5b0872c3 Update cspell.json (#2330)
* Update cspell.json

* Fix `system:releasenotes` command description
2024-07-03 05:20:11 +01:00
Yağızhan d1904145eb Introducing the FOSSBilling CLI (#1021)
+CLI

Die when accessed through a browser

Move the commands under the modules

Added system:version

Added system:releasenotes

Added theme:list

Styling
2024-07-03 05:02:28 +01:00
Adam Daley 22dfd5f9ab Migrate CKEditor to new installation method (#2328) 2024-07-02 23:03:31 +01:00
Adam Daley 62d134644c Fix Babel dependencies (#2327) 2024-07-02 21:47:43 +01:00
Adam Daley c0cc400b9d Fix Live Tests (#2325)
* 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
2024-07-02 21:20:10 +01:00
Adam Daley 5e729f8288 Replace Babel depreciated dependencies (#2326)
Replace Babel depreciated dependencies with new versions merged with the ECMAScript standard.
2024-07-02 19:55:46 +01:00
Belle Aerni 945a201572 Small Currency Improvements (#2311)
* 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
2024-06-27 09:48:37 -07:00
chatphpanduser 49b7c228a4 fix pagination not show for order/service page (#2310)
Co-authored-by: user <user@example.com>
2024-06-25 14:15:49 -07:00
Belle Aerni 25e2ae599d Fixed PayPal referencing an undefined variable (#2307) 2024-06-20 21:09:21 -07:00
Belle Aerni e8055911c8 Fix the required params for the client profile (#2303) 2024-06-14 21:25:34 -07:00
Belle Aerni 76321faf8e Misc fixes and cleanup (#2299)
* Misc fixes and cleanup

* More misc cleanup

* Removed outdated / invalid tests

* Update SentryHelper.php
2024-06-10 20:32:44 -07:00
Belle Aerni 1451d735b7 Made the email log cleanup config seperate from other activity logs (#2297)
Also fixed a bug with the original code since it never referenced the specific config property
2024-06-09 17:52:48 -07:00
Belle Aerni 21e47dd686 Very small misc changes (#2296) 2024-06-07 21:56:16 -07:00
Belle Aerni 8ac5b00fe9 Misc fixes + product configuration page improvements (#2292)
* 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
2024-06-04 21:30:59 -07:00
fc67657d6c Add an item quantity option when creating invoices (#2284)
* Resolves https://github.com/FOSSBilling/FOSSBilling/issues/2283

* Update cspell.json

---------

Co-authored-by: Devadatta Sahoo <webmaster@nettantra.com>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2024-06-04 14:30:34 -07:00
98fde5e085 Add a default invoice note option (#2282)
* 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>
2024-05-28 20:02:33 -07:00
7f592fd7bf Make invoice number padding configurable (#2281)
* Resolving Issue https://github.com/FOSSBilling/FOSSBilling/issues/2275

* Modified as per suggestions in https://github.com/FOSSBilling/FOSSBilling/pull/2281#discussion_r1614315866

Modified as per suggestions in https://github.com/FOSSBilling/FOSSBilling/pull/2281#discussion_r1614315866

* Resolving

Resolving https://github.com/FOSSBilling/FOSSBilling/pull/2281#discussion_r1614317388 and https://github.com/FOSSBilling/FOSSBilling/pull/2281#discussion_r1614317805

* Updated the input field to allow 0

---------

Co-authored-by: Devadatta Sahoo <webmaster@nettantra.com>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2024-05-27 10:23:11 -07:00
Devadatta Sahoo 52fddf8b40 Resolves https://github.com/FOSSBilling/FOSSBilling/issues/2276 (#2277)
Resolves https://github.com/FOSSBilling/FOSSBilling/issues/2276
2024-05-24 16:18:15 -07:00
renovate[bot] db219bf668 chore(deps): update ckeditor to v40 (major) (#2268)
chore(deps): update ckeditor to v40

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-14 22:14:10 +01:00
Belle Aerni 549b05af3e Slight cleanup of the library folder (#2260)
* Slight cleanup of the library folder

* Test fixes

* More fixes for the tests
2024-05-01 15:36:59 -07:00
FOSSBilling BotandFOSSBilling Bot 695b71877e Apply PHP Code Styling & Quality Changes (#2258)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2024-04-26 15:23:13 -07:00
Belle Aerni 960c004558 Removed the bb_ prefix from IPN related params (#2239) 2024-04-24 14:01:19 +01:00
Belle Aerni 303f4cfa2d Code styling & rector config improvements (#2254)
* Bumped the Rector deadcode level

* Added the instanceof setlist

* Increasded type coverage and updated tests config too

* Bumped type coverage & ran PHP-cs-fixer
2024-04-23 10:38:18 -07:00
Belle Aerni 2bdf59479c Remove getTlds (#2253) 2024-04-22 09:56:58 -07:00
FOSSBilling BotandFOSSBilling Bot ce92f9f1d3 Apply PHP Code Styling & Quality Changes (#2240)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2024-04-18 13:08:30 -07:00