Commit Graph
2446 Commits
Author SHA1 Message Date
dependabot[bot] c1dfb695c7 Bump jquery from 3.7.0 to 3.7.1 (#1570) 2023-08-29 12:10:22 +02:00
dependabot[bot] 6891788502 Bump apexcharts from 3.41.1 to 3.42.0 (#1565)
Bumps [apexcharts](https://github.com/apexcharts/apexcharts.js) from 3.41.1 to 3.42.0.
- [Release notes](https://github.com/apexcharts/apexcharts.js/releases)
- [Commits](https://github.com/apexcharts/apexcharts.js/commits)

---
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-08-29 02:58:31 -07:00
Samuel Apraku 57737685a4 Fix queries in UpdatePatcher (#1559)
* Fix i18n.php

* update packages and add composer script

* Fix queries in UpdatePatcher

* revert package-lock.json

* revert to null operator

* revert i18n.php
2023-08-26 15:28:34 +02:00
dependabot[bot] 490b6f2382 Bump @melloware/coloris from 0.21.0 to 0.21.1 (#1562)
Bumps [@melloware/coloris](https://github.com/melloware/coloris-npm) from 0.21.0 to 0.21.1.
- [Release notes](https://github.com/melloware/coloris-npm/releases)
- [Commits](https://github.com/melloware/coloris-npm/compare/0.21.0...0.21.1)

---
updated-dependencies:
- dependency-name: "@melloware/coloris"
  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-08-23 11:49:09 +02:00
dependabot[bot] 15a4421e97 Bump sortable-tablesort from 2.3.1 to 2.3.2 (#1561)
Bumps [sortable-tablesort](https://github.com/tofsjonas/sortable) from 2.3.1 to 2.3.2.
- [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.1...2.3.2)

---
updated-dependencies:
- dependency-name: sortable-tablesort
  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-08-23 11:48:48 +02:00
dependabot[bot] 4bceffb932 Bump flag-icons from 6.10.0 to 6.11.0 (#1560)
Bumps [flag-icons](https://github.com/lipis/flag-icons) from 6.10.0 to 6.11.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.10.0...v6.11.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-08-23 11:48:29 +02:00
FOSSBilling BotandFOSSBilling Bot 6008a1dd0d Update CKEditor and Related Dependencies (#1558)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-08-22 15:09:50 +02:00
dependabot[bot] 498387c560 Bump sortable-tablesort from 2.3.0 to 2.3.1 (#1554)
Bumps [sortable-tablesort](https://github.com/tofsjonas/sortable) from 2.3.0 to 2.3.1.
- [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.0...2.3.1)

---
updated-dependencies:
- dependency-name: sortable-tablesort
  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-08-21 12:49:35 +02:00
ilham B c0427c4e72 Update Guest.php (#1551)
fix currency Price format
2023-08-19 11:11:20 -07:00
Jaap Marcus fd4204be6a Admin users are unable to create ticket due to missing "Client ID" (#1548) 2023-08-17 07:46:16 -07:00
Belle Aerni 5f770f321b Fix email verification behavior oddities (#1534) 2023-08-17 07:45:06 -07:00
dependabot[bot] 37dcbcc189 Bump flag-icons from 6.9.5 to 6.10.0 (#1546)
Bumps [flag-icons](https://github.com/lipis/flag-icons) from 6.9.5 to 6.10.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.9.5...v6.10.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-08-17 07:38:21 -07:00
dependabot[bot] b40313e170 Bump sortable-tablesort from 2.2.0 to 2.3.0 (#1542)
Bumps [sortable-tablesort](https://github.com/tofsjonas/sortable) from 2.2.0 to 2.3.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.2.0...2.3.0)

---
updated-dependencies:
- dependency-name: sortable-tablesort
  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-08-16 02:08:46 -07:00
FOSSBilling BotandFOSSBilling Bot a35aa05b9b Apply PHP Code Styling & Quality Changes (#1540)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-08-15 14:30:28 +02:00
FOSSBilling BotandFOSSBilling Bot d4a0a65c49 Update CKEditor and Related Dependencies (#1541)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-08-15 14:29:52 +02:00
dependabot[bot] 3cd59411f7 Bump flag-icons from 6.9.3 to 6.9.5 (#1536)
Bumps [flag-icons](https://github.com/lipis/flag-icons) from 6.9.3 to 6.9.5.
- [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.9.3...v6.9.5)

---
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-08-14 02:20:32 -07:00
Belle Aerni df0c300d23 Remove payment gateways we can't really maintain (#1535)
* Remove payment gateways we can't really maintain

I've moved these to their own separate repos so others can easily contribute to them if needed, however since we can't (and don't plan to) maintain these, it's best to remove them from the main repo and no longer ship them with every installation.
The only known-working one is TwoCheckout which I'll get added to the extension directory

* Fix the tests
2023-08-14 11:03:12 +02:00
Belle AerniandJaap Marcus d2a18581c4 Fix / change invoice incrementation logic (#1474)
* Fix invoice incrementation logic

Co-Authored-By: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com>

* Oh I hate these tests

* Remove duplicated semicolon

---------

Co-authored-by: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com>
2023-08-12 02:19:01 +01:00
Belle Aerni 22b2762caf Fix incorrect logic in the htaccess (#1532) 2023-08-11 09:26:37 -07:00
Belle Aerni a7f85e36e8 Fix errors in our content.sql file (#1531) 2023-08-11 15:49:46 +02:00
Belle Aerni 2058af6885 Remove Virtualmin and ISPConfig Server Managers (#1527)
* Remove Virtualmin and ISPConfig Server Managers

These don't work correctly and we don't currently have anyone to maintain them. I've taken the current versions and moved them to their own repositories so work can be continued on them at any point, but there's no reason for us to include them for the time being.

* Remove the ignored error for ISPConfig 3
2023-08-10 07:53:13 +02:00
FOSSBilling BotandFOSSBilling Bot b665e7017b Update CKEditor and Related Dependencies (#1524)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-08-08 05:38:09 -07:00
Belle Aerni 997fad4699 Improve .htaccess rules & prevent access to PHP files (#1522)
* 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
2023-08-08 14:26:39 +02:00
Belle Aerni 6ecb90628f Prevent actions on hosting services with bad order status (#1521) 2023-08-08 00:39:15 -07:00
FOSSBilling BotandFOSSBilling Bot 409fe5a5f9 Apply PHP Code Styling & Quality Changes (#1520)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-08-07 14:20:52 -07:00
Christoph SchlaepferandAnuril df077d3c04 Added function to allow to Update all Orders with a new file by updating the Product. (#1488)
* This PR Fixes #1405 and adds the functionality to configure if the downloadable product should update all orders with the product, or not.

It's configurable per Product.

* Fixed duplicate ID in Installer

* Add words to ignorelist

* This PR Fixes #1405 and adds the functionality to configure if the downloadable product should update all orders with the product, or not.

It's configurable per Product.

* Fixed duplicate ID in Installer

* Add words to ignorelist

* Add words to ignorelist

* Cleaned up Code

* Improved readability

* More cleanup

* Cspell fix

* Fixed missing :

* Made update_prodcts default

* Removed field update from sql and updater

* Removed default option code from Product code

---------

Co-authored-by: Anuril <ta@TAPC01.localdomain>
2023-08-07 14:10:39 -07:00
FOSSBilling BotandFOSSBilling Bot 0db7ab60d1 Update CKEditor and Related Dependencies (#1517)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-08-04 15:10:46 +02:00
dependabot[bot] 9702c2328f Bump flag-icons from 6.9.2 to 6.9.3 (#1516)
Bumps [flag-icons](https://github.com/lipis/flag-icons) from 6.9.2 to 6.9.3.
- [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.9.2...v6.9.3)

---
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-08-04 02:51:21 -07:00
FOSSBilling BotandFOSSBilling Bot c7824ea1b2 Update CKEditor and Related Dependencies (#1512)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-08-03 14:42:30 +02:00
FOSSBilling BotandFOSSBilling Bot 0f33d750c0 Apply PHP Code Styling & Quality Changes (#1511)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-08-02 11:08:07 -07:00
Christoph SchlaepferandBelle Aerni 7a38450458 Make system version & company info visibility through the guest API configurable (#1504)
* Add feature to hide public FOSSBilling version and Company information

* Cleaned up

* Added Test cases for Version & Company information

* Fixed Authorization Mock

* Fixed Tests so isAdminLoggedIn is false when testing Public Access

* Cleaned up

* Implemented Suggested code and fixed tests.

* Removed manual Version for API.js string and replaced with twig filter "script_tag"

* Added Twig filter for Version and replaced guest.system_version

* Added Message to Admin Settings

* Now let's do all of that, but better

- A filter is the wrong way to get the system version to the front end
- The wording in the admin panel for these settings didn't correctly describe what they did and they had poor grammar
- The version check should be returning a string, not an array & the code can be significantly cleaned up.
- Inverting the behavior of these toggles means that existing installations will continue to have the same behavior as before without us forcibly changing it. Otherwise, we need to introduce a DB patch to add the new values with them being on to match what was the old behavior.
- For new installations, we can pretty safely turn these options off to give a bit more privacy / security and allow them to be turned back on if wanted.
- New installations can keep the current behavior. We will highlight that this feature is added & if it's something the administrator wants, they can adjust the settings for themselves

* Cursed spelling *angry hand movements*

* That should have never been an array to being with

---------

Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-08-02 19:40:43 +02:00
FOSSBilling BotandFOSSBilling Bot 97cbb09d66 Update CKEditor and Related Dependencies (#1510)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-08-02 14:36:22 +02:00
dependabot[bot] d6c0eae7da Bump apexcharts from 3.41.0 to 3.41.1 (#1505)
Bumps [apexcharts](https://github.com/apexcharts/apexcharts.js) from 3.41.0 to 3.41.1.
- [Release notes](https://github.com/apexcharts/apexcharts.js/releases)
- [Commits](https://github.com/apexcharts/apexcharts.js/compare/v3.41.0...v3.41.1)

---
updated-dependencies:
- dependency-name: apexcharts
  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-08-01 09:13:48 -07:00
FOSSBilling BotandFOSSBilling Bot 9e57ebd181 Update CKEditor and Related Dependencies (#1507)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-08-01 09:12:59 -07:00
FOSSBilling BotandFOSSBilling Bot c83b3aea88 Apply PHP Code Styling & Quality Changes (#1501)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-07-30 11:47:43 -07:00
Christoph SchlaepferandAnuril e466b0a425 Prevent deletion of Servers, Hosting Plans and TLDs that have active Products. (#1492)
* Started to rework deletion checks so no unintended database issues can arise.

We should really start working with referential integrity, otherwise this will become unmanageable soon.

That would also require things like Taxes be referred to by their IDs, not their names.

https://github.com/FOSSBilling/FOSSBilling/blob/ad94a9f3255801817f393cda36bc0a38796e1eb9/src/install/sql/structure.sql#L575

https://github.com/FOSSBilling/FOSSBilling/blob/ad94a9f3255801817f393cda36bc0a38796e1eb9/src/install/sql/structure.sql#L1365

* Fixed the tests for the _delete functions

* Started to rework deletion checks so no unintended database issues can arise.

We should really start working with referential integrity, otherwise this will become unmanageable soon.

That would also require things like Taxes be referred to by their IDs, not their names.

https://github.com/FOSSBilling/FOSSBilling/blob/ad94a9f3255801817f393cda36bc0a38796e1eb9/src/install/sql/structure.sql#L575

https://github.com/FOSSBilling/FOSSBilling/blob/ad94a9f3255801817f393cda36bc0a38796e1eb9/src/install/sql/structure.sql#L1365

* Fixed the tests for the _delete functions

* Fixed tests

* Fixed tests

* Fixed tests

* Fixed tests

* Fixed testhp_delete tests

* Add words to ignorelist

* Add words to ignorelist

* Fixed count placeholder & cleaned up code

---------

Co-authored-by: Anuril <ta@TAPC01.localdomain>
2023-07-30 20:38:53 +02:00
Yanick 460f6b539c HestiaCP failed setup if domain already exists on server (#1500)
* fix leftover user

* fix wrong cmd
2023-07-30 11:06:22 -07:00
49d8ebf01e Apply PHP Code Styling & Quality Changes (#1499)
* Apply PHP Code Styling & Quality Changes

* Minor fix to the order of operations there

This.. isn't actually related to the PR I am editing, but the change that Rector made caused this to click in my brain. Now it'll log the error and then display the message, rather than displaying the message and never logging the error

---------

Co-authored-by: FOSSBilling Bot <fossbilling-bot>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-07-30 09:05:55 -07:00
fefbcd21b0 Apply PHP Code Styling & Quality Changes (#1498)
* 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>
2023-07-30 08:57:44 -07:00
Belle Aerni 7584387207 Run the CS workflow on push to main & add rector (#1497)
* Added a new rector config

* Fixes & corrections

* Spelling

* Remove commented out config
2023-07-30 08:32:55 -07:00
9e4e3023fa Fixed Password Reset handling (#1365)
* Fixed Passwort Reset handling so the message is the same whether the E-Mail address exists or not.

* Fixed spelling & Test

* Fixed Typo

* Improved Staff PW Reset handling and removed both Exceptions to return true

* Improved grammar & wording

---------

Co-authored-by: Christoph Schläpfer <c.schlaepfer@datact.ch>
Co-authored-by: Anuril <ta@TAPC01.localdomain>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-07-30 06:58:11 -07:00
Yağızhanandfossbilling-bot fd872ac941 Implement PHP-CS-Fixer as an automated workflow (#1240)
* Implement PHP-CS-Fixer as an automated workflow

* Apply PHP-CS-Fixer changes

---------

Co-authored-by: fossbilling-bot <121974958+fossbilling-bot@users.noreply.github.com>
2023-07-30 06:49:11 -07:00
1d0543aa35 Fixed renderJSON in App.php not loaded (#1490)
* Because the app was not yet completely loaded when the dependency injector was used, there was an error.
I had to replicate the function in the Client instance within App.php.

* Fixed unnecessary check for _api_config

* Fixed unknown variable _api_config

* Pass DI to API Controller

* Remove unneeded var

---------

Co-authored-by: Anuril <ta@TAPC01.localdomain>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-07-30 06:39:13 -07:00
Belle Aerni 5c2b8d4b89 Fix issue where nothing was being passed to min (#1477) 2023-07-30 06:34:29 -07:00
Belle Aerni 00185e0ad2 Remove WHM frontpage package param (#1467) 2023-07-30 06:33:38 -07:00
Christoph SchlaepferandAnuril 23c343c33b Invoices now get generated for all orders at order time. (#1494)
Co-authored-by: Anuril <ta@TAPC01.localdomain>
2023-07-30 15:20:51 +02:00
7a99f78ef1 Remove incorrect login info from onEventAdminLoginFailed (#1495)
* Small security fix that removes the cleartext password from log files and the "onEventAdminLoginFailed" event

* Do it better and less wrong

---------

Co-authored-by: Anuril <ta@TAPC01.localdomain>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-07-30 05:47:30 -07:00
Christoph SchlaepferandAnuril acfc60105b Fix toasts not stacking (See Issue #721) (#1489)
* Toast fix

* Fixed Multiple Toasts not showing up.

* Fixed artifact issue

* Fixed Login toast messages not displaying

---------

Co-authored-by: Anuril <ta@TAPC01.localdomain>
2023-07-30 05:32:05 -07:00
Jelmer Visser ad94a9f325 1485: Fixed tax support checkbox (#1486) 2023-07-29 17:47:19 +02:00
YanickandBelle Aerni 74406627f1 Make invoice customizable (#1461)
* impl invoice customizing

* use invoice object instead of variables

* impl fossbilling native functions

* rename some variables

* update twig template

* impl support for custom file

* remove comment

* use di twig

* remove var

* use native format_datetime from twig

* remove dependency to old html code

* fix logoSource not being defined

Commited from my iPhone

* Minor fixes and misc changes

---------

Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-07-27 07:19:17 -07:00