387 Commits
Author SHA1 Message Date
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 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
Belle Aerni 789189c24e Fix downloading extensions (#979)
* Fix extension downloading & cleanup functionality

* Update ServiceTest.php
2023-03-23 21:50:56 +00:00
Adam de0bed20ec Replace various HTTP client implementations with symfony/http-client (#861)
* Replace guzzlehttp/guzzle with symfony/http-client

Replace guzzlehttp/guzzle with symfony/http-client to standardise around one globally available HTTP client.

* Replace Box\Curl library and native cURL with symfony/http-client

Replace the Box\Curl library and native cURL with symfony/http-client to standardise around one well supported HTTP client, reduce unnecessary code, and improve compatibility.

* Remove obsolete functionality from Spamchecker module

Remove obsolete functions from Spamchecker module which depended upon cURL.
2023-03-15 11:11:28 +01:00
Belle Aerni e43a450934 Remove the example module (#909)
* Remove the example module

* Update Box_ModTest.php

* Update Box_TwigLoaderTest.php
2023-03-07 21:33:49 -08:00
Adam 11a1906ee7 Fix broken module tests (#867)
* Fix typo in Email module tests

Fix missing semicolon in tests for Email module causing PHPUnit to fail.

* Fix module test errors due to RedBean

Fix module tests causing error due to RedBean when being mocked in PHPUnit.

* Fix module test failures

Update module tests to fix failures, and remove obsoleted tests causing failure.
2023-02-27 10:38:20 -08:00
Belle Aerni 7ecaf786d5 Move RedBeanPHP to composer (#767)
* Move RedBeanPHP to composer

* Remove missed references to rb.php

* This *should* fix the tests

* Update DummyBean.php

* Remove payment adapter tests

They.. honestly didn't test much and are proving to cause issues when moving rb.php to composer
2023-02-05 08:43:37 -08:00
Belle Aerni 4d7b341e03 Removed / cleaned up deprecated functions (#755)
* Add PHPStan extension for deprecation function usage

* Removed some deprecated functions

* And a few more

* Also remove the deprecated API calls

* Fix references to deprecated API calls

* Oh, and this too
2023-02-01 03:36:02 -08:00
Belle Aerni d8d04b24fa Revert "Improved period strings for non-plural periods"
This reverts commit df5610ea57.
2023-01-26 16:03:27 -08:00
Belle Aerni df5610ea57 Improved period strings for non-plural periods 2023-01-26 15:31:48 -08:00
Belle Aerni 226c4766d4 Fix that test, and add another one 2023-01-26 15:08:09 -08:00
Belle Aerni efa70f1019 Fix the period strings (#667)
* Fix the period strings

* Update Box_PeriodTest.php
2023-01-06 11:41:58 +01:00
Belle Aerni 3011c8a4b0 Move PHPStan to it's own action & bump the scanning level (#629)
* Move PHPStan to it's own action

* Bump PHPStan to level 1

* This fix it?

* Update Box_MailTest.php

* And fix a typo in the action

* Update phpstan.yml

* Update phpstan.yml

* Test
2022-12-28 04:32:17 -08:00
Jaap Marcus c96a45157f Feature | Disable email when in Demo mode (#570)
* Disable Email when Demo mode is enabled

* And for mass mail

* Fix tests
2022-12-11 02:57:09 -08:00
Belle Aerni a68c1d7261 Fix checks 2022-12-08 17:06:32 -08:00
Belle Aerni c243f91b3d Create custom "__trans" function & use that 2022-12-08 12:18:22 -08:00
Belle Aerni 18ee32f357 Move the locales to a submodule (#537)
* Move the locale folder to a submodule

* Create locale

* Update the tasks

* Remove that part of the check
2022-12-06 18:52:51 -08:00
Yağızhan 59027f6535 Dark variant option for the company logo (#497)
* +dark variant option for the company logo

* Updated content dates

* Fixed the default logo not being picked up

* Tests
2022-12-01 21:08:05 +01:00
Belle Aerni 417a048885 bb-config.php --> config.php 2022-11-28 17:22:51 +03:00
Belle Aerni edb163f442 BB_PATH --> PATH 2022-11-28 17:22:51 +03:00
Belle Aerni ee676ca33a Update file references 2022-11-28 17:22:50 +03:00
Belle Aerni edd6f72634 Drop the "BB" prefix 2022-11-28 17:22:50 +03:00
Yağızhan a2e257420f Implementing the new extension store (#480)
* Syncing extension store work

* these two can stay the same

* Updates

* Let the user activate it instead

* Doing my best at tests

* Extension site -> Extension store

* Extension site -> Extension store

* Update Service.php

* Update ServiceTest.php

* Missed semicolon

* I'm trying

* Updated tests

* Tests

* Working on tests

* Update ServiceTest.php

* Removed tests related to Ne-Lexa/php-zip

* Special check for tests

* Bring ZIP tests back, with a catch.

* Special test case

* Update ServiceTest.php

* We're close

* Update ServiceTest.php
2022-11-27 12:35:43 -08:00
evrifaessa d6b79c6d4a Remainings of the SolusVM module. 2022-11-22 22:15:53 +03:00
Belle Aerni 5dfa99a447 Fix testTicketCreateForGuest
Switched to SHA256 instead of SHA1, so the expected length is now 64
2022-11-16 17:18:15 -08:00
Belle Aerni b27c8a8951 Disabled tests 2022-11-07 17:38:51 -08:00
Yağızhan 834d7b3db8 eh? 2022-11-06 08:47:34 +03:00
Belle Aerni af85f70f03 This should fix the tests 2022-11-05 22:37:44 -07:00
Belle Aerni 1de308f21c Address review 2022-11-01 22:15:42 -07:00
Belle Aerni 6d557ce39c Fix remaining typos 2022-11-01 18:53:36 -07:00
Belle Aerni 1aab2653cd Update AdminTest.php 2022-10-28 21:09:44 -07:00
Belle Aerni b5b2d2dd9f Attempt to create a test for the config migrator 2022-10-28 21:04:41 -07:00
Belle Aerni 0b1eba4506 workaround since I don't want to complicate it 2022-10-27 17:52:29 -07:00
Belle Aerni 4ce004ee86 Should fix the tests 2022-10-27 17:35:39 -07:00
Belle Aerni 4d9fde7b04 Fix validateAndSanitizeEmail for international domains (#386)
* Fix validateAndSanitizeEmail for international

And write tests to prove it works as intended

* Update FOSS_Tools.php

* Update tests

* Update FOSS_ToolsTest.php

* This should fix it

* Disabled test

* Require intl polyfill
2022-10-26 22:31:40 +02:00
Belle Aerni ea30d5b160 Validate Emails Addresses & Other Security Tweaks(#385)
* Use generatePassword rather than a shortened hash

* Tweak how cron credentials are created

* Use the standard PHP function to validate emails

* Validate and sanitize emails

* Fix typos

* Use idn_to_ascii when validating emails

* Only use idn_to_ascii when validating the email

* Fix tests

* More text fixing

* We should only have one more failure now

* sighs

* Disable that since it's failing for no reason
2022-10-25 02:09:33 -07:00
Belle Aerni f7abf20039 Adjust Password Requirements (#369)
* Increase password requirements & check them more

* This should fix tests

* Actually fix tests
2022-10-22 08:46:00 +02:00
Belle Aerni 1aec4ade28 Replace strftime() with date() (#360)
strftime is depreciated as of PHP 8.1
2022-10-18 09:16:26 -07:00
evrifaessa 5c49ffc65d Dropped the forum module. 2022-09-30 20:56:37 +03:00
AnyxandBenjamin Aerni 4e8d83eafb Default to Huraga Green & update naming/URL (#295)
* Default to Huraga Green & update naming/URL

* Apply the code from the Orderbutton module that defaults to Huraga Green to all templates that request Huraga's color scheme. Replace incorrect setting.

* Replace some old references to BoxBilling and boxbilling.org with the FOSSBilling ones. Update LICENSE URLs.

* Fix broken test

Co-authored-by: Benjamin Aerni <belleaerni@gmail.com>
2022-09-30 05:09:02 +02:00
John @ S4 729f820297 Merge pull request #279 from FOSSBilling/drop-themes
Drop the "boxbilling" and "bootstrap" themes and focus on Huraga
2022-09-26 20:19:03 +03:00
DataLores 9fb04bbaf7 BugFix Issue #262 Prevent cron from paying deposit invoice with credits (#265)
Deposit invoices types are generated during client add funds and should only be payable via payment gateways with valid transactions.
2022-09-25 11:12:43 +02:00
evrifaessa db6a1946ce Updated tests. 2022-09-24 20:04:39 +03:00
Yağızhan b89d916471 Removed links and tests related to the file manager (#270)
* Removed mod_filemanager tests

* Removed link to the removed file manager
2022-09-19 22:05:55 +02:00
Yağızhan e86694765e Add 4 new events (#174)
* new events: onBeforeAdminUpdateCore & onAfterAdminUpdateCore

* write tests for the new events

* new events: onBeforeAdminUpdateExtension & onAfterAdminUpdateExtension

* write tests for the new events
2022-07-24 21:50:06 +02:00
Yağızhan 2a5d525859 Updated tests (#177) 2022-07-22 12:35:03 +02:00
Yağızhan 8ea355a8e8 Write tests for the new events 2022-07-21 10:29:14 +03:00
S4 Hosting b5427fdd46 Copyright and license notices changed to correctly comply with Apache 2.0 2022-05-31 14:51:44 +03:00
CatFlip™ 33eb58c70a Fixed sample + messages + some others 2022-05-26 22:49:01 -05:00
CatFlip™ 1dea204c0c Literal and link references
All literal ("BoxBilling") references and link ("www.boxbilling.org") were replaced. Also replaced all fossbiling.org "http://" by "https://"
2022-05-26 17:55:34 -05:00