* Add "widgets" to the list of core modules
* Patch 44 for widget support
* +Widgets module
* Basic widget discovery
* +Render logic
* +render_widget_slot Twig function
* +get_list
* +Basic settings page to list active widgets
* +Add an `enabled` column to toggle the widget
* +disconnectUnavailable
* Catch exceptions while rendering templates and display an error block
* Types, checks and stuff
* +Add widgets/batch_connect to the crons
Also removed the 11+ year old "finish fixing, time to sleep" docblock
* Demonstration: Replace hardcoded branding text with a widget
* Changed the directory structure
* +Add an error block for the admin panel
* +Added the `widgets` table
* Actually this is pretty unnecessary.
* "render_widget_slot" -> "render_widgets"
* Updated the dates
* Also inject admin/client API if accessible
* +Add an options column
* Implemented optional "add_br" toggle
* Log the exception
* Redid the widgets module
* Added a few new slots
* If even the error template fails, there are bigger problems. Just display the error instead of catching it.
* Created and implemented WidgetProviderInterface
---------
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
* Refactor tests to replace depreciated functions
* Update Rector config and dependencies
* Rector: Add explicit string casting for stricter type safety
* Rector: Add return type hints to methods across codebase
* Rector: Increase dead code level and refactor invoice item logic
* Remove unnecessary `willReturn` from test mocks
Eliminate redundant `willReturn(null)` and similar calls from PHPUnit mock setups in legacy module tests, leaving only method expectations. Also update some test values to use floats for consistency.
* Refactor API controller and email adapter return values
* Update formatting and guidelines in `AGENTS.md`
* Update CI for PHP 8.4
* Update composer deps for PHP 8.4
* Updates
* This is the default mode and this constant causes test failutes
* Explicily install the PDO extensions
* Temporarily downgrade the live tests to PHP 8.3
It would seem that there is some kind of problem with PHP 8.4 in regards to these tests. I believe it is outside of our control however as it installs fine for me with PHP 8.4 under DirectAdmin
* Update to address deprecations
* Make that nullable
* Fixed my typo
* Bump PHPunit to v11
* Also take care of two minor things
* Formatting fix
* Bumped the Rector deadcode level
* Added the instanceof setlist
* Increasded type coverage and updated tests config too
* Bumped type coverage & ran PHP-cs-fixer
* Wrote a few more tests, improvements
* Ran Rector & PHP-CS-Fixer
* Append a capital letter to the test client passwords
* Minor tweaks
* Display more info after the tests run
* Oops, I forgot to set the dir
* Fix cron behavior for test env, dropped legacy tests
* Rename the empty test suite so PHPUnit ignores it
* Update cspell.json
* Minor tweaks to the tests
* Fixes
* Implemented a new class for config management
* Run Rector & PHP-CS-Fixer
* Spelling
* Pointed a bunch of code to the new class
* Fix tests, removed 2 broken ones that did nothing
* Quick run of PHP-CS-Fixer
* Fixed issues noticed in self review
* Updated remaining old methods. Fixed minor error page issue
* Very minor code tweak
* Fixes, added a related test
* Check for OPCache functions being defined
* I don't think this timeout is needed
* Rewritten bin/prepare & +FOSSBilling_Environment
* -redundancy
* - unnecessary bits
* nothing much
* Fix inverted logic, use new function in missed location
---------
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
* Prevent browser access to cron and other files
* Prevent access to PHP files + enhanced htaccess
* Remove browser related stuff from cron.php
* Added the .htaccess file to our cspell ignore list
* Apply PHP Code Styling & Quality Changes
* Delete these
* Update .gitignore
* Fixes for PHPStan
* Ignore spelling in the gitnore
* Allow null for that type
Honestly doing so makes ZERO sense, but it matches the current behavior.
---------
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
* Minor improvements to cron
* I swear these tests are high sometimes
Seriously. Why did this check pass before?
* Update Service.php
* Update ServiceTest.php
* 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
* 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>