Commit Graph
71 Commits
Author SHA1 Message Date
Albin Varghese f268f39fc8 Fix installer ssl check (#1620)
* fix: replace removed function

* fix: correct http detection
2023-09-19 10:03:31 -07:00
Belle Aerni e07b4a2b08 MInor improvements to the installer (#1613) 2023-09-19 07:14:04 +02:00
Belle AerniandJohn @ S4 20e38a162f Exception messages cleanup (#1376)
* Misc exception messages improvements

* Cleanup / improve server manager exceptions

* Tests :)

* Some registrar exception cleanup

* Clean up payment gateway exceptions

* Some other misc improvements

* Update Resellerclub.php

* Fix typo in Namecheap error message

---------

Co-authored-by: John @ S4 <64874788+John-S4@users.noreply.github.com>
2023-07-03 14:54:23 -07:00
Belle Aerni 06b010138c Allow IPs to be whitelisted from rate limiting (#1382)
* Allow IPs to be whitelisted from rate limiting

* Minor formatting change
2023-06-30 19:34:21 -07:00
Belle Aerni 1488c54afe Remove the installer's HTTPs rewrite (#1369) 2023-06-26 08:09:49 +03:00
Belle Aerni 484de12ae2 Fix issue with the sessions during installation (#1361) 2023-06-23 10:12:47 +03:00
Belle Aerni 25a0090c5d Bump AntLoader to v2.0.0 (#1280) 2023-05-30 12:26:24 +03:00
Yağızhan d909d77f7e -Unnecessary whitespace in the class headers (#1219) 2023-05-07 13:24:29 -07:00
Yağızhan 412e4a9fbd Standardized the class headers (#1212) 2023-05-06 13:06:17 +01:00
Belle Aerni dded03b41d Replace custom autoloader with AntLoader (#1215)
* Replace custom autoloader with AntLoader

* Update install.php

* Bump antcms/antloader to v1.0.1
2023-05-05 14:17:56 -07:00
Adam Daley e54569d2cd Introduce namespaces and strict typing for FOSSBilling library classes (#1206) 2023-05-04 01:02:06 +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 ed404202a6 Remove broken and poorly implemented feature (#1190)
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2023-04-29 12:58:29 -07:00
Belle Aerni 828c690c0b Remove the _sendmail function from the installer (#1173) 2023-04-27 19:06:00 +02: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
Jaap Marcus f8c59e21b0 Default time out for the https check is 60 sec (#1071)
That is way to long for this check
2023-04-17 17:00:43 -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
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
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
Anyx 0edee483a8 Update docs URL & enforce FOSSBilling naming
Update the documentation URL and replace instances of "fossbilling" with "FOSSBilling" where applicable.
2023-01-21 21:45:38 +02:00
Jaap Marcus 9bbfdf8b96 Update install.php 2023-01-08 18:19:30 +01:00
Jaap Marcus 8cdd393d01 Update install.php 2023-01-08 18:19:05 +01:00
Jaap Marcus acda62e841 Fix installer for windows 2023-01-08 15:36:01 +01:00
Raul Tech Support 4d572e0ccc Update install.php 2022-12-27 22:58:47 +00:00
Belle Aerni b7188335df Detect an SLL cert after we set display_errors to 0 2022-12-16 13:33:57 -08:00
Belle Aerni f5923b78fd Only force HTTPs when installing on HTTPs (#594)
* Only force HTTPs when installing on HTTPs

* Try and redirect to HTTPs

* Update install.php

* Very slight tweak
2022-12-14 11:04:17 -08:00
Belle Aerni 70834be9e1 Created new security mode option (#565)
* 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
2022-12-11 02:54:37 -08:00
Belle Aerni 4fce10f650 Added back to the SQL content file 2022-12-09 12:18:00 -08:00
Belle Aerni f5dee69ec7 Set the default currency during installation 2022-12-09 10:37:31 -08:00
Belle Aerni e66afc87dd Disable twig debug mode 2022-12-06 19:46:44 -08:00
Belle Aerni 8821d50cff Created a CSRF token system (#526)
* Implement a basic CSRF token system

* Update forms for all modules

* Added to the theme forms

* Create a config option for CSRF prevention

* Slightly rework the filter

* Let's actually use a global var

* Added the token to API hrefs

* Fixup

* Remove old reference

* Added the token to the installer twig globals

* The token isn't actually needed in the installer

* Fix client searching

* Whoops - those need quotes
2022-12-06 18:47:14 +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 a7b35af4de Use semver regex to check if running preview build (#440)
* Use semver regex to check if running preview build

* Use more reliable logic
2022-11-08 16:48:12 +01:00
Belle Aerni d060b0a228 Fix my mistake 2022-11-02 13:23:38 -07:00
Belle Aerni ca005812b2 Introduce the ability to update preview releases (#418)
* Introduce the ability to update preview releases

* Grumble grumble tests

* More grumbles about tests
2022-11-02 18:15:48 +01:00
Yağızhan 74f7abb4d8 Merge pull request #394 from FOSSBilling/twigconf 2022-10-29 17:02:19 +03:00
Yağızhan 8919edbc03 Merge pull request #406 from BelleNottelling/exception 2022-10-29 13:33:10 +03:00
Belle Aerni 47e30ff536 Create config options for stacktraces 2022-10-29 00:48:01 -07:00
Belle Aerni 4379beb74c Created config option to disable auto cron 2022-10-28 10:03:41 -07:00
Yağızhan 3fe9922446 Fixed Huraga's example configuration path 2022-10-28 11:48:56 +03: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
Belle Aerni e9d6947495 Various Changes to Defaults (#343)
* Various fixes to BoxBilling refences in default SQL content

* Various updates to the content_test sql

* billing-admin by default for the admin page

* Let's just use /admin for the admin panel

* Update install.php
2022-10-14 07:23:30 +02:00
tautvydaskarvelis 86d6234208 Improved code style by adding missing return types, replacing funcs with more reliable ones and etc 2022-10-02 17:52:30 +03:00
evrifaessa 2fdbaed8d3 Make sure the configuration file is generated 2022-09-24 20:28:50 +03:00
evrifaessa ff1d04f308 Removed hardcoded theming stuff 2022-09-24 19:44:16 +03:00
Jaap Marcus 51e8188ceb Fix issue with port not being used installer 2022-09-16 14:06:33 +02:00
Jaap Marcus ed774e77d2 Don't send passwords in plain text 2022-07-26 11:15:25 +02:00