Commit Graph
2892 Commits
Author SHA1 Message Date
Adam DaleyandCopilot 315f9f3944 Refactor Filesystem and Path handling (#2836)
* Removed legacy files

* Refactor Filesystem and Path handling

* Removed `FOSSBilling\Tools` legacy functions

* Update live-tests to include file check for `php_error.log`

* Update Extension module tables to fix wrapping issue

* Apply suggestions from @Copilot

Co-Authored-By: Copilot <175728472+Copilot@users.noreply.github.com>

* Update Extension module icon URL handling

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-09 21:50:11 +01:00
Belle Aerni 1c7b15e700 Fix a bunch of exception logging (#2850) 2025-08-07 13:06:56 -07:00
Yağızhan 2cef53ca0a Add an "Enabled modules" accordion to the "About" tab (#2842)
* +Enabled modules accordion

* Removed empty style tag

* Translatable modules
2025-08-05 00:59:58 +03:00
Belle Aerni 1e449e20eb Handful of small fixes (#2838) 2025-08-01 13:41:38 +01:00
Adam Daley 1a4ece96f8 Update Server_Client to include first and last name (#2826)
Closes #2825.
2025-07-21 22:10:03 +01:00
renovate[bot] 96a020a4fb fix(deps): update dependency apexcharts to v5 (#2818)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-11 19:23:05 -07:00
renovate[bot] f22eb58534 chore(deps): update dependency ckeditor5 to v46 (#2817)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-10 11:45:18 -07:00
Belle Aerni d01fe9ec3f Fix the PHP req mismatch (#2809)
I forgot to update it in all the different locations
2025-07-02 10:39:15 -07:00
Belle Aerni 31ce61d619 Fix oversight in protocol handling (#2808)
* Fix oversight in protocol handling

* Ran the CS fixer
2025-07-02 10:25:51 -07:00
Belle Aerni d00da48af1 WYSIWYG fixes for client area (#2805) 2025-06-28 02:37:21 -07:00
1f085c4efc Apply PHP Code Styling & Quality Changes (#2798)
* Apply PHP Code Styling & Quality Changes

* Ran the steps

---------

Co-authored-by: FOSSBilling Bot <fossbilling-bot>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2025-06-24 15:53:49 -07:00
Belle Aerni 99d6820c11 Fix the batch connect logic for hooks (#2790)
* Fix the batch connect logic for hooks

Closes #2729 by fixing the logic for hook connections and added a solution to remove anything that was registered when it wasn't really a hook

* Slight optimization. Also probably fixed the tests

* We can continue early here as a tiny optimization

* Update ServiceTest.php

* Update ServiceTest.php
2025-06-24 15:47:50 -07:00
Jayden ef64a4b013 Fixing Direct Server Login from Orders Tab (#2796)
Update Whm.php
2025-06-18 06:53:24 +01:00
Belle AerniandAdam Daley fa57b285e8 Fix permission & navigation bugs (#2786)
* Prevent duplicate nav registration

* Fix the security module not being accessible

Corrects the security permissions accidentally being hidden and fixes flawed logic which caused hiding the permissions for a module to then report no permission being given (which is why the security module was being hidden)

* Greatly simplified some of the permissions logic

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2025-06-12 09:04:36 +01:00
Adam Daley 23c01e3c3d Fix admin theme locale picker flags (#2785)
Update `admin_default` theme `_flags.scss` to use `@use` and fix display issue due to changes in `flag-icons` (lipis/flag-icons#1356).
2025-06-10 06:55:07 +01:00
Belle Aerni 28e8b641fa Fix the message for the dangerous functions check (#2784) 2025-06-10 06:20:17 +01:00
John P e81eac5a30 Fix installer 500 errror (that I caused) (#2782)
* Fix installer 500 errror (that I caused)

Translations aren't available in the installer... oops. Reverted two changes made in the typos/translatables PR.

* Update install.html.twig
2025-06-09 12:35:01 -07:00
b772526ae3 Replace outdated Twig features with recommended equivalents (#2780)
* Replace Twig `include` tag with function

* Replace Twig `attribute` function with dot operator

* Fix spelling issues in mod_order_manage.html.twig

---------

Co-authored-by: John P <64874788+j-a-pope@users.noreply.github.com>
Co-authored-by: Yağızhan <yagizhan49@protonmail.com>
2025-06-07 11:40:06 +03:00
Yağızhan 00b3b97f66 Make more messages translatable (#2778)
* Make static messages translatable

* Typo

* Second batch

* Make static messages translatable

* Typo

* Second batch

* Applying suggested fixes

* Applying suggested fixes

* Missed this one

* Make documentation section titles untranslatable

* Use double quotes instead of escaping single quotes
2025-06-07 11:34:24 +03:00
FOSSBilling BotandFOSSBilling Bot 5972700077 Apply PHP Code Styling & Quality Changes (#2777)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2025-06-05 20:45:20 +01:00
d2ad579466 Typos and some untranslatable text (#2773)
* Fix typos and add translatable strings 1

* Fix typos and add translatable strings 2

* Fix typos and add translatable strings 3

* correction

* Load theme settings HTML as Twig template

* Make huraga theme settings translatable

* Update CONTRIBUTING.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/modules/Cookieconsent/html_admin/mod_cookieconsent_index.html.twig

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update cspell.json

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-05 12:32:15 +01:00
Yağızhan f2bb4179d2 Reworked the Pagination class (#2759)
* Introduce the new Paginator class

* Rename it back to Pagination

* Move #2756 here

* Use HttpFoundation\Request

* Restore Box_Paginator

* Tests

* Replace the deprecated methods wherever used

* No need

* Tests

* Tests again

* tests

* Tests hopefully for the last time

* Use a subquery instead

* Found a faulty query

`m.*` already includes `client_id`. was getting a duplicated column error.

* New pagination logic in Huraga & a couple of improvements

* Type safety

* Accessibility and other improvements

* Fixed tests

* Make aria tags translatable

* Update partial_pagination.html.twig

* Dot operator and little docblock improvement

---------
2025-06-04 15:21:09 +03:00
Adam DaleyandCopilot 4e79273580 Require Client on Admin New Order Page (#2771)
* Require Client field on Admin New Order Page

* Add `aria-required` attribute to Admin New Order Page Client field

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-04 09:48:03 +01:00
renovate[bot] ae29e5ac47 fix(deps): update dependency @melloware/coloris to ^0.25.0 (#2769)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-03 21:31:56 +01:00
FOSSBilling BotandFOSSBilling Bot 30798dd7ff Apply PHP Code Styling & Quality Changes (#2770)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2025-06-03 21:07:39 +01:00
John PandCopilot 872fd1768d Hide nav for guests option in huraga (#2766)
* Hide nav for guests in huraga

* Update src/themes/huraga/html/layout_default.html.twig

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update settings_data.json.example

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-02 19:42:17 +03:00
5da80c043a Fix renewal date extension issue when marking first invoice as paid. (#2750)
* Incorrect renewal date extension

* Update src/modules/Order/Service.php

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix Order Service Test

* Add PHPDoc for `findPaidInvoicesForOrder`

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2025-05-31 03:08:36 +01:00
Adam DaleyandCopilot 6eb9c15a69 Fix DirectAdmin package matching and reseller account creation (#2765)
* Fix DirectAdmin package matching

* Fix DirectAdmin Reseller Creation

Closes #2306.

* Update src/library/Server/Manager/Directadmin.php

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-31 03:05:30 +01:00
fa41e154a9 Fix invoice tax and balance logic (#2751)
Fix: Invoice Tax and Balance Logic

This commit provides a comprehensive fix for invoice tax calculations and client balance deductions when handling discounted invoices.

Modifications in `src/modules/Invoice/Service.php`:
1.  `getTax()`: Overhauled to calculate tax based on the sum of all taxable invoice item amounts (price * quantity) *before* applying the invoice's tax rate and rounding. This ensures a single, accurate tax value for the entire invoice.
2.  `toApiArray()`: The internal tax calculation for display purposes was previously updated to use this same "tax on total taxable subtotal" method, ensuring consistency between displayed tax and actual tax.
3.  `getTotalWithTax()`: Now correctly uses the reformed `getTax()` method, ensuring it reflects the accurate total invoice amount.
4.  `tryPayWithCredits()`: When an invoice is paid using client credits, this method now:
    a.  Uses the accurate amount from `getTotalWithTax()` for the deduction.
    b.  Creates a single `ClientBalance` transaction for this precise amount.
    c.  Calls `markAsPaid($invoice, false, true)` to prevent per-item balance transactions (which caused rounding issues) while still marking items as paid and executing service activations.

These changes collectively ensure that invoice tax is calculated and displayed consistently, and that client balance deductions for paying discounted invoices are accurate and reflect the true invoice total.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: Yağızhan <yagizhan49@protonmail.com>
Co-authored-by: John P <64874788+j-a-pope@users.noreply.github.com>
2025-05-30 21:19:09 +03:00
13dd9f972b Apply PHP Code Styling & Quality Changes (#2761)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2025-05-30 06:54:13 +01:00
renovate[bot]andAdam Daley ad202a81e8 fix(deps): update dependency gabordemooij/redbean to v5.7.5 (#2764)
* fix(deps): update dependency gabordemooij/redbean to v5.7.5

* Remove unnecessary PHPStan ignore

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2025-05-30 06:47:22 +01:00
YağızhanandCopilot a1406f8d4f Display permission errors on API endpoints (#2757)
* Display permission errors on API endpoints

* Update src/library/Api/Handler.php

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-28 20:13:55 +03:00
23d5f8ab2e Apply PHP Code Styling & Quality Changes (#2748)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2025-05-23 19:33:58 +01:00
John P 4648c359ae Add body class to layout_public (#2747) 2025-05-22 09:24:40 +01:00
John P 1e1aaa3be9 Make news/tos/privacy-policy visible to guests (#2744)
* Make news/tos/privacy-policy visible to guests

* slight change

* Remove evil ))
2025-05-21 21:17:29 -07:00
Yağızhan 3fda0795e1 New endpoint to list the accounts of a hosting server & Fixes (#2728)
* +toHostingAccountApiArray

* +getAccountsSearchQuery

* +accounts_get_list & pagination fix for server_get_list

* Update AdminTest.php

* +tests for the account_get_list

* Update Admin.php

* Also return linked order and client data

* Update AdminTest.php

* Removed duplicated field

* Adam's suggestions
2025-05-22 00:33:11 +03:00
Yağızhan 28d3304975 Fixed broken company logo in the staff login page (#2743) 2025-05-21 18:42:29 +01:00
Yağızhan c9cd8e5679 Adding #chevron-down (#2741)
Add files via upload
2025-05-20 15:33:35 -07:00
John PandBelle Aerni 0ff53768af Change of heading level for semantic improvement in client themes (#2730)
* Heading level change in card headers

* login, signup, forgotten pass pages

* Update huraga.scss

* Fix and slightly optimize the tests

---------

Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2025-05-19 20:23:17 -07:00
John PandCopilot 4e7c1f3dd0 Update canned responses and categories (#2732)
* Update canned responses and categories

* typo

* Update src/install/sql/content.sql

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update content.sql

* Update src/install/sql/content.sql

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/install/sql/content.sql

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-17 15:09:16 +01:00
FOSSBilling BotandFOSSBilling Bot a3f51f1080 Apply PHP Code Styling & Quality Changes (#2727)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2025-05-14 14:51:35 +01:00
John PandAdam Daley 2a1561fa5d Wording improvements (#2726)
* Wording improvements (part 1)

Replacing things that are badly worded as I notice them.

* more

* .

* Update mod_email_template.html.twig

* Update mod_servicedomain_index.html.twig

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2025-05-13 20:35:25 +03:00
Yağızhan 66ccb922d5 Fix company bank information not displaying on page footers (#2723) 2025-05-09 14:53:16 +03:00
YağızhanandBelle Aerni 8bf9a1bdec 2 new tools and & fix for additional IP address processing logic (#2717)
* Update Service.php

* wording

* +ipInSubnet & +humanReadableBytes

* Make PHP 8.4 happier

* Add terabytes

* remove ipInSubnet in favor of the Symfony component

* Update TwigExtensions.php

---------

Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2025-05-08 11:30:08 -07:00
Adam Daley e85d3e6f5b Fix admin theme switcher issue (#2719) 2025-05-08 10:14:40 +01:00
302a50674d Apply PHP Code Styling & Quality Changes (#2716)
* Apply PHP Code Styling & Quality Changes

* Remove PHPStan false positive ignore

---------

Co-authored-by: FOSSBilling Bot <fossbilling-bot>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2025-05-07 16:54:06 +01:00
Yağızhan 8b63625de2 Some visual improvements (#2704)
* Cleaner message for the dangerousFunctions check

* Added hyphens before the messages

* Update mod_index_dashboard.html.twig

* Drop Verdana

* Moved the "Run all checks" button to the header

* Create partial_search_action.html.twig

* Use the new search action

* Update mod_security_index.html.twig

* Update mod_activity_settings.html.twig

* Update dangerousFunctions.php

* Update mod_cron_settings.html.twig

* Update -> Update FOSSBilling

* Update -> Update FOSSBilling

* Update mod_staff_manage.html.twig

Fully rewritten except the "permissions" tab.

* Update mod_servicehosting_index.html.twig

* Also add tooltips

* Update mod_product_index.html.twig

* Update mod_product_promos.html.twig

* Update partial_search_action.html.twig

* Restore Verdana

* Update dangerousFunctions.php

* Update mod_staff_manage.html.twig

* Update mod_security_index.html.twig

* The library already handles this

* +calendar.svg

* Move the datepicker

* Update mod_staff_manage.html.twig

* Update mod_cron_settings.html.twig
2025-05-03 08:00:35 +01:00
Yağızhan 25c4ca7ae4 Added a link to the documentation for the instance ID (#2701) 2025-04-30 12:55:01 -07:00
Adam Daley b25d0ba844 Update dependency @tabler/core to v1.2.0 (#2699) 2025-04-30 14:43:07 +03:00
John P 4a6f030e46 Fixes low contrast admin nav bar in dark mode (#2696) 2025-04-30 10:20:48 +01:00