Commit Graph
40 Commits
Author SHA1 Message Date
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
Guillaume ARNOUX 776af1750f ✨Add prefix for generated users (#1378)
* ✨Add prefix for generated users

adding a customizable prefix for users whose name is automatically generated during an order

* fix spelling mistake
2023-07-02 22:54:57 +03:00
Belle Aerni c49beb0eb8 Replace default email templates with HTML ones (#1302)
* Start replacing email templates with HTML ones

* Updated some more

* Spelling

* Completed some more email templates

* Completed the rest of them

* Fix spelling

* Some minor fixes + improvements
2023-06-19 11:46:56 +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
Adam Daley e54569d2cd Introduce namespaces and strict typing for FOSSBilling library classes (#1206) 2023-05-04 01:02:06 +01:00
Yağızhan 950e4dccef Type hinting the DI methods and variables (#1201) 2023-05-01 21:01:35 +03:00
Adam Daley 053f22a8bb Remove Box DI class in favour of native dependencies (#1193) 2023-04-30 08:47:52 +01:00
Adam Daley 93d76996a3 Fix owndomain TLD handling to include period (#1163)
Fix handling of owndomain TLDs to always include the leading period (.), as is required.
2023-04-25 06:08:15 +02:00
Adam Daley 4a4b9dbf64 Update DirectAdmin server Manager with various fixes (#1161)
Update DirectAdmin server manager to fix username generation, password updating, and some minor other improvements.
2023-04-25 06:06:13 +02:00
Belle Aerni 6c872d01f6 Allow server manager-defined username generation (#1118) 2023-04-19 11:09:08 +01:00
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 740f9e1371 Cleanup some more admin_default inconsistencies (#972) 2023-03-19 00:10:48 +00:00
Shamshid e4d7996530 Upgrade jquery to v3 and cleanup related deprecations (#904)
* fix deprecations by using `.on()` method

* replace keyCode event with key

* use jquery v3 from npm

* fix support ticket canned response by replacing select2 lib

* fix `ajaxStart()` method requirement to be document

* remove jquery uniform()

* remove jquery.scrollTo

* finally, remove jquery v1

* remove unused CSS

* move canned_ticket_response style

* fix deprecated `:eq()` selector

* fix jquery.alert by adding package to bring in removed $.browser feat from v1

* fix escape key

* add comment for clarity on the added package

* remove unused css

* remove duplicate jquery-ui css
2023-03-08 08:57:35 +00:00
ShamshidandYağızhan cdca4b7e50 Add/replace modules icon and update manifest (#872)
* add/replace modules icon and update manifest entry

* update modules manifest homepage_url

* include svg to set color via css

* +Attribution

---------

Co-authored-by: Yağızhan <yagizhan49@protonmail.com>
2023-03-01 19:46:57 -08:00
Jaap Marcus 68744feddc Make option to updated assigned ip Addresses visible again (#843)
Same as in "Add new server"
2023-02-21 22:59:30 +02:00
Jaap Marcus acf8e69eb6 Fix Virtualmin Server Manger (#842)
* Fix errors due to Deprecation warnings

* Fix error in adapter

* Remove debug and testing code
2023-02-19 10:19:24 -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
Jaap Marcus 7403042f87 Start removing multi selects (#708)
* Remove multi select on product upgrade page

Replace by checkbox
Also remove the "active" selected upgrade

* Configure hosting

Also fix javascript behaviour

* Fix spaces and replace this with true

* Create promo

* Update promo

* Fix saving of update promo

* use array_filter and array_values

* Remove var_dump
2023-01-23 15:16:16 +01:00
Belle Aerni d71d445661 Make module labels translatable 2023-01-21 21:38:08 -08:00
Jaap Marcus 2ec21f1778 Fix issue with "Test server connection" (#720)
* Fix issue with Save Update and Test connection

When calling: $('#server-update').submit() 
The new api call didn't get called I don't know why. Any way this caused undesirable behaviour

* Fix potential issue where body was overwriten by the orignal params
2023-01-21 09:39:36 +01:00
John @ S4 f74bbcb427 Merge pull request #709 from FOSSBilling/fix/field-names-order-webhosting
Fix field names domain
2023-01-19 07:33:45 +02:00
Belle Aerni 7ce0a09740 Merge pull request #656 from jaapmarcus/fix/dont-store-hostingaccount-plaintext
Do not store passwords user hosting accounts in plain text
2023-01-17 23:04:54 -08:00
Jaap Marcus bfe71438ba Fix field names domain 2023-01-17 11:47:22 +01:00
Belle Aerni 774f0d5c95 Use Rector to modernize code for PHP 8.0 2023-01-12 00:40:54 -08:00
Jaap Marcus 1b39238f0a Also update changepassword 2023-01-02 23:45:50 +01:00
Jaap Marcus 2785e5b247 Fix bug caused by last commit 2023-01-02 23:35:31 +01:00
Jaap Marcus 677e426c6d Do not store passwords in plaintext 2023-01-02 23:27:17 +01:00
Reynaldi Arya 3ae0f9097d Update mod_servicehosting_order_form.html.twig 2023-01-02 15:38:49 +07:00
Reynaldi Arya 80c1e09642 Update mod_servicehosting_order_form.html.twig 2023-01-02 15:29:05 +07: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
evrifaessa e9c9d3e638 Introducing the new API wrapper 2022-12-19 16:31:19 +03:00
Belle Aerni c243f91b3d Create custom "__trans" function & use that 2022-12-08 12:18:22 -08:00
Belle Aerni 695d2df3c2 Hotfix for issues caused by the CSRF token system 2022-12-07 14:12:05 -08:00
evrifaessa 00c05c7650 This is the right file 2022-12-07 20:31:31 +03:00
evrifaessa 7bfdf2a42c Custom input field support for hosting managers. 2022-12-07 20:20:07 +03: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 edb163f442 BB_PATH --> PATH 2022-11-28 17:22:51 +03:00
Belle Aerni edd6f72634 Drop the "BB" prefix 2022-11-28 17:22:50 +03:00