21 Commits
Author SHA1 Message Date
Belle Aerni 776ddcb7e9 Modify the fingerprint weights (#1367)
* Modify the fingerprint weights

* Update cspell.json
2023-06-25 23:38:59 +03:00
Belle Aerni b9c35a1747 Replace Box_Session and improve session handling (#1332)
* Replace Box_Session and improve session handling

* Improve weights, capitalize class name correctly

* Make the tests pass, update the SQL structure

* Tweak to the fingerprint class, fix more tests

* Regenerate session IDs when logging in

* Improve readability

* Update ServiceTest.php

* Tweak weights and added Huntr badge to the readme

* Improve readability, add PHPDocs, and updated weight

* Update SECURITY.md
2023-06-19 04:14:29 -07:00
Belle Aerni 28559c39b9 Improve our security policy (#1307)
* Improve our security policy

* Update the cspell config

* Whoops - those should have been capitalized
2023-06-11 19:35:52 -07:00
Adam Daley 0e5109a0a5 Refactor System Updater (#1252)
* Refactor System Updater

Refactor Box/Update to clean things up, merge related functionality, improve error checking, and move to FOSSBilling namespace.

Also refactor foss-update.php into core class, `UpdatePatcher`.

* Refactor file system actions to use Symfony Filesystem

Refactor file system actions to use Symfony Filesystem component, and declare all used resources at start of files rather than duplicating throughout.
2023-05-26 15:30:39 +01:00
Adam Daley e54569d2cd Introduce namespaces and strict typing for FOSSBilling library classes (#1206) 2023-05-04 01:02:06 +01:00
YağızhanandAdam Daley 4928ebf932 Implemented Monolog (#1155)
* Implemented Monolog

* Doesn't need to look for BB_DEBUG. It won't be logged on prod anyway.

* Doesn't need to be an array

* -Box_LogStream

* Reverted squash

* Fixed a duplicate

* Type hinting

* This got lost in a merge commit

* Kind of distracted today. Good thing squash and merge exists.

* Cleaning

* Rebased composer.json & lockfile

* Enabled the check again

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2023-05-02 09:32:40 +01:00
Belle Aerni d9e69d4146 Implement a custom autoloader (#1194)
* Implement a custom autoloader

* Remove unreachable line

* Spelling

* I missed that

* Just use the latest version of PHPStan

* Also setup the autoloader in the installer

* Implemented classmap capabilities

* Remove debug line, add PHPDocs

* Typo 7 removing dead code

* Fix the installer after the most recent commit

* Remove outdated installation steps

And link to the website instead

* Excuse me. Formatting please?
2023-05-01 13:19:55 -07:00
Belle AerniandAdam Daley e3d6bc9ad9 Introduce a cspell workflow (#1192)
* Introduce a cspell workflow

* Update cspell.yml

* Update cspell.yml

* Why is it seemingly ignoring the config?

* Waiit a min

* Fixed a bunch of spelling mistakes

* And set it back to incremental mode

* That is actually supposed to be spelled wrong..

Because BoxBilling :)

* Capitalization

* I swear I fixed this as well

* Update cspell.json

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2023-04-30 00:05:25 -07:00
Adam Daley e3967dfe96 Move composer files to project root (#1191) 2023-04-30 07:17:06 +01: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
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 738fa8b3a9 Remove modernizr from Huraga (#927)
It was unused anyways, and I don't imagine it's particularly useful this day and age
2023-03-10 07:00:56 +01: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 7acac92709 Replace php-markdown with commonmark and remove Spyc (#688)
* Remove spyc package

We aren't using it

* Replace php-markdown with commonmark

* update lockfile after rebase
2023-01-12 12:40:12 +01:00
Belle Aerni b6e4f22dfb Remove old file references 2022-12-08 17:22:12 -08:00
Belle Aerni ee676ca33a Update file references 2022-11-28 17:22:50 +03:00
Belle Aerni 363563a37d Fix spelling mistake 2022-11-27 12:24:44 -08:00
Belle Aerni 741a58bac3 Exclude all assets folder 2022-11-01 19:36:17 -07:00
Belle Aerni 6d557ce39c Fix remaining typos 2022-11-01 18:53:36 -07:00
Belle Aerni 10944467a8 Fixed typos in .md files 2022-11-01 18:00:46 -07:00
Belle Aerni c2688d7ac5 Created initial cspell config file 2022-11-01 17:20:59 -07:00