289 Commits
Author SHA1 Message Date
Adam Daley d4e4207d83 Update locations with extension manager naming (#1169)
Update remaining locations with new `extension_manager` naming.
2023-04-26 02:46:56 +02:00
Adam Daley a3764ea435 Update Product promotion handling to fix various bugs (#1167)
Update the Product service promotion handling to fix various errors. Resolves #1055.
2023-04-25 15:51:07 -07:00
Belle Aerni c5c85d7e97 Fix the MassMailer error (#1166)
* Fix the MassMailer error

* Shh. There was no extra space here
2023-04-25 21:17:43 +02:00
Adam Daley e01c601d6b Fix SQL error on cancelling invoice (#1162)
* Fix SQL error on cancelling invoice

Update Invoice service to check for empty string when setting `gateway_id` to fix SQL error.

* Update Invoice `gateway_id` check

Update Invoice `gateway_id` check to simplify by just checking for `empty()`.
2023-04-25 11:29:51 -07:00
Adam Daley 04dd00259b Update Currency service to check for no API key (#1165)
Update the Currency service to check if Currencylayer API key null to prevent undefined array key error.
2023-04-25 11:28:49 -07:00
Adam Daley 93d76996a3 Fix owndomain TLD handling to include period (#1163)
Fix handling of owndomain TLDs to always include the leading period (.), as is required.
2023-04-25 06:08:15 +02:00
Adam Daley 4a4b9dbf64 Update DirectAdmin server Manager with various fixes (#1161)
Update DirectAdmin server manager to fix username generation, password updating, and some minor other improvements.
2023-04-25 06:06:13 +02:00
Adam Daley 795d59b752 Fix error on client creation when no group selected (#1164)
Fix SQL error when creating a new client with no group selected by checking `group_id` for an empty string.
2023-04-25 06:04:24 +02:00
Adam Daley 67fd972efd Repace DI http-client with direct calls to symfomy/http-client (#1153) 2023-04-22 22:29:42 -07:00
YağızhanandAdam Daley 63d5847da2 New ExtensionDirectory class (#1141)
* Caught a typo

* New ExtensionDirectory class

* Tests

* Tests and error handling

* Stuff

* Literally the same outcome anyway. Will write this in the future.

* Removed tests for a function that does nothing

* "stable" -> "release"

* Fix misnamed exception errors

* Update class name to ExtensionManager

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2023-04-22 23:45:24 +01:00
Yağızhan 191233ff86 Renamed Box_Requirements and Box_Version (#1146)
* Renamed Box_Requirements and Box_Version

* Fixed the reference in the GitHub workflow
2023-04-22 18:55:48 +02:00
Yağızhan a406876cb7 Minor PHPDoc update (#1145)
* Dropped Box_FileCacheException

* Minor PHPDoc update
2023-04-22 17:40:11 +01:00
Belle Aerni 0c822244d7 Ensure the next invoice # is interpreted as an int (#1139) 2023-04-22 09:31:39 -07:00
Yağızhan 98b8a804ab Minor changes to the extension directory templates (#1130) 2023-04-22 14:24:52 +03:00
Adam Daley 69193e402f Remove Box/Zip in favour of library (#1123)
Remove custom Box/Zip class in favour of nelexa/zip library.
2023-04-22 07:21:34 +02:00
Yağızhan 57444aa0c7 A little overhaul for the SEO module (#1030) 2023-04-21 09:57:02 -07:00
Adam Daley ca67aeb44f Refactor request handling to use native functionality (#1122)
Refactor request handling to remove custom library/Box/Request class where possible and instead use native PHP functionality.
2023-04-21 15:07:59 +02:00
Belle Aerni 3c0ef5b4da Remove a few more useless classes (#1129)
* Remove a few more useless classes

* Fix a small typo

* Fix that test

Unless I am missing something, this must have never worked correctly.
2023-04-21 02:35:21 -07:00
Belle Aerni b96caa2cd8 Remove the FTP layer (#1128) 2023-04-20 12:27:10 +02:00
Adam Daley f5fc940ae6 Update Product links fields to be read only (#1121) 2023-04-19 21:33:46 -07:00
FOSSBilling BotandFOSSBilling Bot 3c6dec8e04 Update CKEditor and Related Dependencies (#1120)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-04-19 14:26:38 +02:00
Belle Aerni 6c872d01f6 Allow server manager-defined username generation (#1118) 2023-04-19 11:09:08 +01:00
Adam Daley a2abdbddfa Refactor Box/Tools to remove unnecessary functions (#1115)
* Refactor Box/Tools to remove unnecessary functions

Refactor Box/Tools to remove functions which essentially duplicate PHP functionality, or provide a thin wrapper around such functions.

* Move config migrate/update to relevant class

Move config update functionality from Box/Tools to Box/Update.

* Move Gravatar function to class where used

Moved Gravatar function to Twig filter where it is used, rather than in a custom Box/Tool function.
2023-04-17 20:48:49 -07:00
Adam Daley 1360b4d81c Move system update functionality to System module (#1116)
Move system update, and config update, config migration/update to relevant System module.
2023-04-17 20:48:28 -07:00
Belle Aerni 16c929f5e7 Automatically select locale based on browser info (#1109)
* Detect browser locale

* Workaround for two char locales being detected
2023-04-16 19:28:03 +02:00
Belle Aerni 0a5fb92b05 Various improvements to translatable strings (#1108)
* Various improvements to translatable strings

* Tests
2023-04-15 03:51:18 -07:00
Belle Aerni 7346261ced Allow usage of admin default encore with custom themes (#1061)
* Allow client themes to use admin_default encore

* Update TwigExtensions.php

* Also allow for admin themes
2023-04-13 21:29:37 +02:00
Belle Aerni 21b819c864 Remove jqBootstrapValidation (#1101) 2023-04-13 20:16:22 +01:00
FOSSBilling BotandFOSSBilling Bot f0ad80dd57 Update CKEditor and Related Dependencies (#1104)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-04-13 05:50:37 -07:00
Belle Aerni 1e32a600b0 Make client profile respect "required" params (#1097) 2023-04-11 09:23:49 +01:00
Belle Aerni a6e5ba88a0 Move to using symfony/mailer for emails (#1091)
* Move to using symfony/mailer for emails

* Is now working as intended

* Missed removals

* Fix front-end & allow usage of custom DSN

* Also remove the old package files

And fixed the fact that I put the admin_default cleanup under a patch that was for a previous release we made.
2023-04-09 02:11:08 -07:00
Belle Aerni 628b6f559a Minor admin_default improvements (#1080) 2023-04-07 00:04:27 -07:00
Belle Aerni 50fc50163f Clean up deprecated CSS (#1063)
* Clean up deprecated CSS

* Fix a few old button classes

* Port Servicelicense pages to tabler

* Remove a bunch of old icons

* Run Huraga and Installer CSS through autoprefixer
2023-04-06 15:05:28 -07:00
Adam Daley b08fc53d72 Update rewrite rules, improve error handling, and some related cleanup (#1075)
* Rename htaccess to be applied automatically

Rename the htaccess file, improve handling when .htaccess is missing, and remove from .gitignore so that rules are automatically applied on supported web servers.

* Clean up .gitignore file

* Update .htaccess to improve security

Update .htaccess file to improve general security, handle missing mod_rewrite, and to simplify the required rules.

* Improve HTTP and generic error handling

Improve handling of HTTP errors, and make the error handling code more generic to permit catching more errors.

* Remove outdated example web server config files

Remove the outdated and unmaintained example web server configuration files in favour of FOSSBilling/config-generator.

* Remove support for non-search engine friendly URLs

Remove support for non-search engine friendly URLs as these are depreciated.

* Revert "Remove support for non-search engine friendly URLs"

This reverts commit 724b1eb274.

* Update config migration backup handling
2023-04-06 21:59:25 +02:00
Belle Aerni 7b6fde3768 Quick fix to make CKEditor usable in dark mode (#1078) 2023-04-06 13:36:28 +01:00
Belle Aerni 116f55851f Revert fix for sub-folder installations (#1073) 2023-04-06 01:52:45 +01:00
FOSSBilling BotandFOSSBilling Bot d597a2d855 Update CKEditor and Related Dependencies (#1067)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-04-05 08:19:34 -07:00
Belle Aerni 3672abf525 Fix order "history" tab responsiveness (#1062) 2023-04-05 10:02:00 +02:00
Belle Aerni 5eb9452dc6 Fix unknown encore_entry_link_tags function (#1048) 2023-04-04 01:18:19 -07:00
FOSSBilling BotandFOSSBilling Bot e173fcc0fc Update CKEditor and Related Dependencies (#1036)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-04-03 16:35:57 +03:00
FOSSBilling BotandFOSSBilling Bot 03818635d6 Update CKEditor and Related Dependencies (#1020)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-03-29 14:13:25 -07:00
FOSSBilling BotandFOSSBilling Bot 2cb06d2727 Update CKEditor and Related Dependencies (#1011)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-03-28 15:20:47 +02:00
Shamshid 185466f374 Major and minor design improvements to modules (#999) 2023-03-28 07:46:59 +01:00
Belle Aerni 9faa981c58 Replace usage of array_get (#989)
* Replace usage of array_get

* Fixes

* And a few more

* Remove remaining references

* Update Service.php

* Few more fixes

* Fix.. I think?

* Fix Client / Invoice updates

* Fix stats

* Fix issues noticed during code review

* More fixes

* And some more fixes :)
2023-03-27 23:44:30 -07:00
Adam Daley 9bc5e06e95 Fix Servicelicense and Servicedownloadable product period bug (#1005)
Fix issue with the Servicelicense and Servicedownloadable modules when product configuration not defined causing cart/order data to be lost (resulting in invalid period exception).
2023-03-28 08:31:21 +03:00
Belle Aerni 5516a81b9d Fix a few warnings with PHP 8.1 (#1003)
As the tin says. Just fixes a couple instances where warnings would be thrown because `null` was being passed
2023-03-28 00:05:26 +01:00
Adam Daley 9fb19e02d7 Improve date/datetime format handling and customisability (#948)
* Replace custom Twig bb_date/bb_datetime filters

Replace bb_date and bb_datetime Twig filters with format_date / format_datetime to better support i18n and customisability.

* Update templates to use format_date/format_datetime

Update all templates to use format_date/format_datetime (where appropriate and where not already used).

* Update locale configuration options

Update configuration options to include new locale settings, and ensure new options are used throughout.

* Add reset button to admin theme date picker

Add a reset button to the admin_default theme date picker to allow dates to be cleared, and fix an issue with Order module not allow blank dates. Resolves #938.
2023-03-24 23:16:07 +00:00
FOSSBilling BotandFOSSBilling Bot cf6f75cba1 Update CKEditor and Related Dependencies (#993)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-03-24 12:55:43 -07:00
Belle Aerni ba51391731 Fix currencylayer (#985)
* Fix currencylayer

* Fix PHPStan and from currencies other than USD

* Add back European Central Bank

* Use placeholders
2023-03-24 00:56:28 -07:00
Belle Aerni fc76549163 Remove the settings "routes" (#984) 2023-03-24 00:12:39 -07:00