Commit Graph
2565 Commits
Author SHA1 Message Date
Belle Aerni 0136740a9e Fix email resend option (#1833)
* Fix email resend option

* Return the testing check
2023-11-14 19:37:53 +00:00
Belle Aerni add20b6281 Resolve reported errors (#1836)
* Resolve reported errors

* Update ServicePayGatewayTest.php
2023-11-14 19:25:17 +01:00
FOSSBilling BotandFOSSBilling Bot 9f3fb51377 Apply PHP Code Styling & Quality Changes (#1834)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-11-14 04:43:14 -08:00
FOSSBilling BotandFOSSBilling Bot e315b1a23a Update CKEditor and Related Dependencies (#1835)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-11-14 04:42:28 -08:00
Belle Aerni 7c36b25763 Remove the generate EU VAT rates button (#1826)
* Remove the generate EU VAT rates button

* Update AdminTest.php
2023-11-14 10:07:56 +01:00
Aziz Ozbek c5aa88628e Plesk server manager change password fix (#1809)
* htmlspecialchars password

Solution for
Warning: SimpleXMLElement::addChild(): unterminated entity reference

* Remove htmlspecialchars
2023-11-13 12:26:23 +02:00
Belle Aerni d9d97c9a64 Allow clients to choose if they want a subscription (#1800)
* Allow clients to choose if they want a subscription

* Spelling

* Fixed it

* Improved wording

* I wish I had spellcheck in VS Code

* Made it configurable
2023-11-13 10:44:49 +01:00
Belle Aerni 63b1e66caf Massmailer bugfixes & improvements (#1817)
* Prevent Massmailer from duplicating recipients

* Minor optimization

We don't need this info as it's actually fetched in a later step. All we need from this step is the ID of each client

* Further optimize using the DISTINCT SQL query option

Thanks to @evrifaessa for pointing out this is an option.
Should be more efficient to let the SQL engine do the worth rather than doing it via PHP

* Further optimization, fixed filter selection in the UI

* Added the ability to see the list of recipients

* Update cspell.json
2023-11-13 10:42:23 +01:00
Yağızhan 4bf62accec +question-mark.svg & clock.svg (#1819)
* +question-mark.svg

* Add files via upload
2023-11-12 21:02:47 +01:00
Yağızhan 3c11f9a97a Clear the cache after the patches are done (#1818) 2023-11-12 11:02:49 +01:00
Belle Aerni 50cc54ed4e Improved email validation & spam prevention (#1806)
* Improved email validation

* Fixed spelling & PHPDoc, updated module description

* Removed accidental leftovers from debugging

* Rremoved PHP 81 pollyfil, assume email valid if there's an error
2023-11-11 21:44:08 +02:00
Belle Aerni 50043e6211 Run Rector against our tests (#1761)
* Update rector config to include tests

* Run Rector against the tests

* Delete test-results

* Update .gitignore

* Correctly set the PHP min to 8.1, split the configs

* Corrected PHPDoc

* Deleted tests we can't really get to pass

PHPunit is hard-coded to fail when a class has a return type of `never`, which is the correct return type of our redirect function (and rightfully so).

No way to disable the exception as far as we can tell
2023-11-11 18:41:09 +00:00
Yağızhan 7762b12e32 Replace hardcoded slashes with DIRECTORY_SEPARATOR (#1816)
* +DIRECTORY_SEPARATOR

* +DIRECTORY_SEPARATOR
2023-11-11 09:56:24 -08:00
Belle Aerni 24eecb736c Fix extension installation (#1815) 2023-11-11 20:55:03 +03:00
Belle Aerni 33695f268e Remove the unused path_logs config key (#1784) 2023-11-11 20:47:19 +03:00
Duncan Bennie 3d207c085f Fix spelling & grammar (#1814)
* Fix spelling & grammar

* Fix typos
2023-11-11 02:17:30 -08:00
dependabot[bot] 62ed186dee Bump flag-icons from 6.14.0 to 6.15.0 (#1811)
Bumps [flag-icons](https://github.com/lipis/flag-icons) from 6.14.0 to 6.15.0.
- [Release notes](https://github.com/lipis/flag-icons/releases)
- [Changelog](https://github.com/lipis/flag-icons/blob/main/CHANGELOG.md)
- [Commits](https://github.com/lipis/flag-icons/compare/v6.14.0...v6.15.0)

---
updated-dependencies:
- dependency-name: flag-icons
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-10 19:48:22 +01:00
Belle Aerni 7b2def00e1 Fix the UpdatePatcher step (#1797) 2023-11-09 00:04:11 +03:00
Adam Daley b0e10cd404 Update monolog/monolog to version 3 (#1801)
* Update monolog/monolog to version 3.5

* Update Monolog priority levels to use Level enum

Update Monolog library class to use Level enum for priority levels, as previous constants depreciated.
2023-11-08 15:27:23 +01:00
Belle Aerni 104553bf7f Error reporting bug fixes (#1785)
* Error reporting bug fixes

* This is honestly a better way to do this
2023-11-08 07:08:58 +00:00
FOSSBilling BotandFOSSBilling Bot 9e85bcecef Apply PHP Code Styling & Quality Changes (#1793)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-11-08 06:51:20 +00:00
Belle Aerni a64b5e6821 Improve email queue behavior (#1789)
* Improve email queue behavior

* Also ensure it works from oldest -> newest

* Update the tests to reflect the changes

* Whoops
2023-11-08 06:49:56 +00:00
Adam DaleyandBelle Aerni b3321a8dd3 Update to Sentry v4 (#1780)
* Bump minimum PHP version to 8.1

* Missed these too

* Shit's broke and stupid as fuck

* Update SentryHelper.php

* Update package-lock.json

* I did the fixing

---------

Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-11-07 17:49:16 -08:00
Belle Aerni 371fa59f70 Minor changes / improvements (#1783)
* Make IDs links in the order management screens

* Remove messages about version 0.0.1

* Fix spelling mistake. Closes #1794
2023-11-07 17:46:13 -08:00
Belle Aerni f8d1e90d78 Drop the Queue module (#1777)
* Remove the Queue module and update massmailer

Queue module was only used by the massmailer module & it duplicated the functionality of the email service, resulting in added complexity for no real benefit.

This commit removes the Queue module outright and points the massmailer to the email service instead, which already implements queing, retires, and time limits.

* Added the ability to view the email queue

* Minor front-end improvements, added removal patch

* Cleanly handle a client being removed
2023-11-07 17:45:46 -08:00
Belle Aerni b8de2c1dc9 Fix & improve client search (#1786)
* Fix & improve client search

* And fix a bug that was introduced
2023-11-07 23:07:58 +02:00
dependabot[bot] cbd635e6cb Bump flag-icons from 6.12.0 to 6.14.0 (#1787)
Bumps [flag-icons](https://github.com/lipis/flag-icons) from 6.12.0 to 6.14.0.
- [Release notes](https://github.com/lipis/flag-icons/releases)
- [Changelog](https://github.com/lipis/flag-icons/blob/main/CHANGELOG.md)
- [Commits](https://github.com/lipis/flag-icons/compare/v6.12.0...v6.14.0)

---
updated-dependencies:
- dependency-name: flag-icons
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-07 01:29:03 -08:00
dependabot[bot] edae355cb2 Bump @melloware/coloris from 0.21.1 to 0.22.0 (#1788)
Bumps [@melloware/coloris](https://github.com/melloware/coloris-npm) from 0.21.1 to 0.22.0.
- [Release notes](https://github.com/melloware/coloris-npm/releases)
- [Commits](https://github.com/melloware/coloris-npm/compare/0.21.1...0.22.0)

---
updated-dependencies:
- dependency-name: "@melloware/coloris"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-07 01:28:46 -08:00
dependabot[bot] aa5aa93e63 Bump flag-icons from 6.11.2 to 6.12.0 (#1778)
Bumps [flag-icons](https://github.com/lipis/flag-icons) from 6.11.2 to 6.12.0.
- [Release notes](https://github.com/lipis/flag-icons/releases)
- [Changelog](https://github.com/lipis/flag-icons/blob/main/CHANGELOG.md)
- [Commits](https://github.com/lipis/flag-icons/compare/v6.11.2...v6.12.0)

---
updated-dependencies:
- dependency-name: flag-icons
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-06 02:03:10 -08:00
Adam Daley 230b10f6ea Replace direct config references with constants (#1768)
* 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.
2023-11-06 07:55:23 +00:00
Adam DaleyandBelle Aerni b35b2efc52 Merge Kb and Support modules (#1180)
* Merge Kb and Support modules

Merge the Kb and Support modules as they contain related functionality.

* General improvements to Support module UI

Update Support module copy and navigation to be more consistent, and other general improvements.

* This was missed.. and now it's not 😉

---------

Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-11-06 04:10:09 +00:00
dependabot[bot] 0aa91b0c03 Bump tom-select from 2.3.0 to 2.3.1 (#1775)
Bumps [tom-select](https://github.com/orchidjs/tom-select) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/orchidjs/tom-select/releases)
- [Commits](https://github.com/orchidjs/tom-select/compare/v2.3.0...v2.3.1)

---
updated-dependencies:
- dependency-name: tom-select
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-03 17:18:19 -07:00
FOSSBilling Bot 7717e185aa Apply PHP Code Styling & Quality Changes (#1772) 2023-11-01 08:36:29 +01:00
Adam Daley 45331a3300 Fix UpdatePatcher file actions paths (#1765)
Update UpdatePatcher to use available path constants to fix issue with detecting base path.
2023-10-31 09:56:52 +02:00
Belle Aerni a4c32d70a7 Minor improvements to Sentry.io integration (#1769)
* Remove php-http/message-factory

* Don't report error reporting changes on preview builds

We don't have a way to reliably track / compare this, so the message would otherwise almost always be displayed.

Hiding the massage on preview builds resolves that

* Downgrade errors in the API controller

None of these are really errors, so let's convert them to InformationException so they aren't captured and sent to Sentry
2023-10-31 08:14:17 +01:00
Belle Aerni 602b537996 Opt-in error reporting via Sentry.io (#1732)
* 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
2023-10-28 18:40:39 -07:00
Jelmer Visser 4c33386675 Redirect admin to previous url after login (#1745)
* 1224: Redirect to previous url after login

* 1224: Early return when logged in

* 1224: Unset _url to remove it from query params

* 1224: Added redirect for guests, use of session

* 1224: Use admin prefix from config instead of static prefix

* Use the ADMIN_PREFIX constant
2023-10-27 21:17:18 +03:00
dependabot[bot] 9dcd6a4c48 Bump flag-icons from 6.11.1 to 6.11.2 (#1763)
Bumps [flag-icons](https://github.com/lipis/flag-icons) from 6.11.1 to 6.11.2.
- [Release notes](https://github.com/lipis/flag-icons/releases)
- [Changelog](https://github.com/lipis/flag-icons/blob/main/CHANGELOG.md)
- [Commits](https://github.com/lipis/flag-icons/compare/v6.11.1...v6.11.2)

---
updated-dependencies:
- dependency-name: flag-icons
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-27 12:43:03 +02:00
dependabot[bot] 7946b3cc2a Bump tom-select from 2.2.3 to 2.3.0 (#1764)
Bumps [tom-select](https://github.com/orchidjs/tom-select) from 2.2.3 to 2.3.0.
- [Release notes](https://github.com/orchidjs/tom-select/releases)
- [Commits](https://github.com/orchidjs/tom-select/compare/v2.2.3...v2.3.0)

---
updated-dependencies:
- dependency-name: tom-select
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-27 12:42:47 +02:00
JAndreuSolerandJoan Andreu Soler 32e4b626ad Set document_nr to the Registrar_Domain_Contact (#1754)
Co-authored-by: Joan Andreu Soler <joan.andreu@scip.es>
2023-10-24 22:43:52 +02:00
FOSSBilling BotandFOSSBilling Bot 7b624248e2 Apply PHP Code Styling & Quality Changes (#1752)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-10-24 13:39:02 -07:00
FOSSBilling BotandFOSSBilling Bot e7d07afa31 Update CKEditor and Related Dependencies (#1753)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-10-24 14:36:17 +02:00
7f689a7bba Set related order to Registrar_AdapterAbstract (#1737)
* Set related order to Registrar_AdapterAbstract

* Very minor change

---------

Co-authored-by: Joan Andreu Soler <joan.andreu@scip.es>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-10-23 23:18:30 +02:00
Jelmer Visser 2723fab090 Extend search functionality to include multiple client fields (#1746)
1686: Fixed searching multiple client fields
2023-10-21 21:00:43 +02:00
dependabot[bot] a538861bf8 Bump tom-select from 2.2.2 to 2.2.3 (#1742)
Bumps [tom-select](https://github.com/orchidjs/tom-select) from 2.2.2 to 2.2.3.
- [Release notes](https://github.com/orchidjs/tom-select/releases)
- [Commits](https://github.com/orchidjs/tom-select/compare/v2.2.2...v2.2.3)

---
updated-dependencies:
- dependency-name: tom-select
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-20 13:23:26 +02:00
dependabot[bot] d2e215807a Bump apexcharts from 3.43.0 to 3.44.0 (#1736)
Bumps [apexcharts](https://github.com/apexcharts/apexcharts.js) from 3.43.0 to 3.44.0.
- [Release notes](https://github.com/apexcharts/apexcharts.js/releases)
- [Commits](https://github.com/apexcharts/apexcharts.js/compare/v3.43.0...v3.44.0)

---
updated-dependencies:
- dependency-name: apexcharts
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-18 13:14:02 -07:00
dependabot[bot] e1d97b8be5 Bump sortable-tablesort from 2.3.2 to 3.0.0 (#1734)
Bumps [sortable-tablesort](https://github.com/tofsjonas/sortable) from 2.3.2 to 3.0.0.
- [Release notes](https://github.com/tofsjonas/sortable/releases)
- [Changelog](https://github.com/tofsjonas/sortable/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tofsjonas/sortable/compare/2.3.2...3.0.0)

---
updated-dependencies:
- dependency-name: sortable-tablesort
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-18 13:13:33 -07:00
Belle Aerni 28e2d824e1 Prevent errors over some CLI setups (#1729) 2023-10-17 13:26:37 -07:00
Jaap Marcus c9685e6412 #1717 Add "Port" option on add hosting server page (#1725)
* Add "Port" number on add hosting server page

* Set default value to ""

* Allow Directadmin to use configured port instead of 2222
2023-10-16 00:36:23 -07:00
Christoph Schlaepfer d7264541bd Fixes some DOM text reinterpretation issues in JS. (#1722)
* Fixed "DOM text reinterpreted as HTML error"
2023-10-13 14:48:35 +02:00