* Fix PATH_DATA constant to use config
Update `PATH_DATA` constant to use the `path_data` config option.
* Replace direct config references with constants
Replace direct references to `config.php` file and specific config options in favour of global constants, where available.
* Drop BB prefix on global constants
Rename global constants to drop `BB_` prefix, where appropriate.
* Began implementing Sentry.io support
* Added to the installer
* Added the ID to the bug report template and UI
* Hook it into our error handler, added the ability to filter by error code
* Attempting to add the DSN via GH actions
* Spelling and making PHPstan happy
* Skip exceptions for various incomplete configurations
Also brings in some of the category suggestions made by @Anuril in #195
* Update tests to account for changes
* Added & renamed exception classes
* Fix tests
* Change a bunch of items to be InformationExceptions
* Use a lighter HTTP client, fixed API error reporting
* I guess that's not needed now?
Arighty then
* Improvements, additional info added
* Update SentryHelper.php
* Improved error logging, added instance ID to error page
Also made it so that errors are correctly sent to Sentry rather than exclusively exceptions
* Make the tests happy
* Added the link, improved wording
Also removed the "performance" part of the reporting as it needs to be added to the front-end and I'm not currently implementing that
* Began implementing UI alerts and info
* Added the ability to toggle, fixed tests, use path constants
* Added some useful info & links to the page
* These should be InformationException
* Fix the automated Sentry DSN entry
* Fix the install number text
* Minor cleanup, converted more to InformationException
* Replaced some direct config references with constants
We have the BB_DEBUG constant to indicate if we have debug mode enabled or not, so we shouldn't be directly referencing it in the config file unless we actually need to do so.
Using the constant means there's less locations to update the reference if the config structure is changed
* Bugfix
* Consistency & fixed a PHPDoc
* Corrections
* We actually do want exceptions thrown here
* Change how we get the instance ID
* Stability improvements
Having support for translatable error pages was proving to be problematic, so I had to remove it.
I also had to update the exception class to handle cases where the trans function wasn't setup yet (needed for the /run-patcher page if an error occurs)
* Missed this change on git
* Also fix the variable names...
* Re-added new deps after rebase
* This should also accept "Error" types
* Added more info to the bug report and removed a dug line
* This wasn't supposed to get renamed
* Updated some missed references to Box_Exception
* #1583 initial workflow update using debug reference in config for install dir bypass
* #1583 add missed files
* #1583 improve config generation
* #1583 clean up docblock (issue feedback)
* fix https detection, corrected pull from upstream
* #1583 improve docker build config
* #1583 remove docker configs from repo, they have been moved to dev workflow documentation
* Two very minor changes
* Other minor changes
---------
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
* 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>
* 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?
* 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>
* 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
* Remove remaining Google Fonts
Replaces remaining Google fonts with web safe fonts (resolves#249).
* Restore error page background image
Embed the background inline for the error page.
* Created new security mode option
* Add some more configurable options
* Cleanly handle security config not being defined
* Don't try to redirect to HTTPs for cli
* Update di.php