Commit Graph
706 Commits
Author SHA1 Message Date
renovate[bot] 615a72fcdb chore(deps): update dependency esbuild to v0.27.1 2025-12-07 01:31:06 +00:00
Yağızhan Burak Yakar 534f1e96d6 Minor visual fix and default SQL content changes (#2912)
* Error reporting alert

* Default SQL content
2025-11-20 19:25:29 +00:00
renovate[bot] 7b23b49925 chore(deps): update dependency esbuild to v0.27.0 (#3029) 2025-11-19 01:35:26 +00:00
Erich MunzandYağızhan Burak Yakar 6f87b4d430 Limit Finder to top-level PHP files in registrarGetAvailable (#3031)
The Netim adapter creates a  library/Registrar/Adapter/Netim sub‑folder. All files placed in that sub‑folder are also automatically detected, and these files/Classes then appear under the “New domain registrar” tab as "Registrars" also...

Co-authored-by: Yağızhan Burak Yakar <yagizhan49@protonmail.com>
2025-11-19 01:20:43 +03:00
af521f1794 Improved audit logs and removed the ability to delete them using the admin panel (#3026)
* Removed API routes that allowed activity logs to be deleted

* Dropped `updated_at` columns from activity tables

* Rename the label from "Event history" to "System activity"

* Rename the label from "Event history" to "System activity"

* Dropped `updated_at` columns from activity tables

* chore(deps): update dependency rector/rector to v2.2.8
chore(deps): update dependency pimple/pimple to v3.6.0 (#3025)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Removed API routes that allowed activity logs to be deleted

Dropped `updated_at` columns from activity tables

Rename the label from "Event history" to "System activity"

Rename the label from "Event history" to "System activity"

Merge branch 'security/activity-logs' of https://github.com/fossbilling/fossbilling into security/activity-logs

Dropped `updated_at` columns from activity tables

Merge branch 'security/activity-logs' of https://github.com/fossbilling/fossbilling into security/activity-logs

* Rename the label from "Event history" to "System activity"
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch security/activity-logs
# Your branch is behind 'origin/security/activity-logs' by 9 commits, and can be fast-forwarded.
#   (use "git pull" to update your local branch)
#
# Changes to be committed:
#	modified:   src/install/sql/content.sql
#	modified:   src/install/sql/structure.sql
#	modified:   src/library/FOSSBilling/UpdatePatcher.php
#	modified:   src/modules/Activity/Api/Admin.php
#	modified:   src/modules/Activity/Controller/Admin.php
#	modified:   src/modules/Activity/Service.php
#	modified:   src/modules/Activity/html_admin/mod_activity_index.html.twig
#	modified:   src/modules/Client/Api/Admin.php
#	modified:   src/modules/Client/html_admin/mod_client_login_history.html.twig
#	modified:   src/modules/Staff/Api/Admin.php
#	modified:   src/modules/Staff/Service.php
#	modified:   src/modules/Staff/html_admin/mod_staff_login_history.html.twig
#	modified:   tests-legacy/modules/Activity/Api/AdminTest.php
#	modified:   tests-legacy/modules/Client/Api/AdminTest.php
#	modified:   tests-legacy/modules/Staff/Api/AdminTest.php
#	modified:   tests-legacy/modules/Staff/ServiceTest.php
#

* Colspan

* Fixed TomSelect. It now works with more than one instance in a page.

* Added get_pairs endpoint to the Staff module to make TomSelect work

* Implemented filters for the system activity logs

* Added date range filter and "Show all activity from this admin"

* Added filtering by priority

* Separate filtering by IP address

* Filtering options for getPairs

* Fix priority filter conflict when both exact and minimum priority are specified (#3028)

* Initial plan

* Make priority filter take precedence over min_priority to avoid conflicts

Co-authored-by: yagiz-dev <35808275+yagiz-dev@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: yagiz-dev <35808275+yagiz-dev@users.noreply.github.com>

* Make the "filter" button in searchbox preserve other request parameters

* Make the debug message for events more descriptive

* Show the time passed since event as a title for the element

* Fixed tests

* Disable min_priority select when exact priority is selected

* Display the client name correctly

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
2025-11-19 01:07:06 +03:00
renovate[bot] b9827fd372 chore(deps): update dependency ckeditor5 to v47.2.0 (#3021)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-12 13:43:35 +03:00
e85b1eeff9 Update SpamChecker to be able to use Cloudflare Turnstile and hCaptcha (#3004)
* Do not include local dev database, which is used for debugging

* Revert of ceddc35aa7

* Add turnstile to config and a selector of providers

* Add turnstile's logic

* add turnstile variables to the API

* add turnstile to the macro and html_client

* Add hCaptcha

* Update src/modules/Spamchecker/Service.php

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

* Update src/modules/Spamchecker/Service.php

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

* Update src/modules/Spamchecker/Service.php

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

* Update src/modules/Spamchecker/html_admin/mod_spamchecker_settings.html.twig

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

* Fix bugs

* Fix space consistency in Guest.php

* Apply suggestion from @Copilot

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

* Fix macros

* Add link to hcaptcha's website

* Add and fix unit tests for the Spamchecker

* Fix cspell

* Reverse the "recaptcha_private/publickey" to "captcha_recaptcha_private/publickey"

* Apply suggestion from @Copilot

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

* Apply suggestion from @Copilot

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

* Update cspell.json with new terms and ignore paths

* Update src/modules/Spamchecker/html_client/mod_spamchecker_recaptcha.html.twig

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

* Update tests-legacy/modules/Spamchecker/Api/GuestTest.php

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

* Update tests-legacy/modules/Spamchecker/Api/GuestTest.php

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

* Update tests-legacy/modules/Spamchecker/Api/GuestTest.php

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

* Update tests-legacy/modules/Spamchecker/Api/GuestTest.php

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

* Update tests-legacy/modules/Spamchecker/Api/GuestTest.php

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

* Update tests-legacy/modules/Spamchecker/Api/GuestTest.php

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

* Update src/modules/Spamchecker/Service.php

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

* Fix array formatting in GuestTest

* Update tests-legacy/modules/Spamchecker/Api/GuestTest.php

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

* Update src/modules/Spamchecker/Service.php

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

* Update src/modules/Spamchecker/Service.php

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

* Update src/modules/Spamchecker/html_admin/mod_spamchecker_settings.html.twig

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

* Update src/modules/Spamchecker/Service.php

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

* Update src/modules/Spamchecker/Service.php

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

* Update src/modules/Spamchecker/Service.php

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

* Apply suggestion from @Copilot

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

* Rewrite toggleProviderSettings in vanilla JS

* Remove useless comment

* Update src/modules/Spamchecker/html_admin/mod_spamchecker_settings.html.twig

Co-authored-by: Adam Daley <admdly@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-11-06 17:50:14 +00:00
Yağızhan Burak Yakar f9c1be6c88 Handle missing default_country with null fallback (#3015) 2025-11-06 17:08:39 +00:00
renovate[bot] 701ccd4659 chore(deps): update dependency esbuild to v0.25.12 2025-11-05 13:51:32 +00:00
Belle Aerni bbf80a0dff Fix a handful of text strings (#2993)
* Fix a handful of text strings

* Missed a few

* Restored the number sign which has reason to be translated
2025-11-02 10:23:46 -08:00
Yağızhan Burak Yakar 8656d06d84 Allow uninstalling modules through the admin panel (#2979)
* Allow uninstalling modules through the admin panel

* Extracted extension path logic to a method

* Fixed PHPDoc

* Tests

* Tests

* Typos

* Fİxed tests

* Fixed tests

* Remove accidental submodule

* Throw an InformationException instead

* Throw an InformationException instead

* Throw an InformationException instead
2025-10-31 14:42:54 +03:00
Yağızhan Burak YakarandCopilot 37a75fdc1a Added VAT number to invoice PDFs (#2978)
* Added VAT number to invoice PDFs

* Update src/modules/Invoice/pdf_template/default-pdf.twig

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

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-29 00:46:27 -07:00
renovate[bot] 09faca8051 chore(deps): update dependency ckeditor5 to v47.1.0 (#2981)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-22 10:29:15 +01:00
87af3e239a Add static caching for theme queries (#2975)
* Add static caching for theme queries

* Update src/modules/Theme/Service.php

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

* Cache the actual database result and apply the default value later

* Fixed tests

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2025-10-22 10:22:25 +01:00
renovate[bot] 1c7ba6c184 chore(deps): update dependency esbuild to v0.25.11 2025-10-19 05:32:00 +00:00
renovate[bot]andBelle Aerni cd60dba2d8 chore(deps): update dependency league/csv to v9.27.0 (#2977)
* chore(deps): update dependency league/csv to v9.27.0

* Fixed the tests, also ran the cs fix script

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2025-10-17 01:24:37 -07:00
Belle Aerni c486b262d9 Small developer experience improvements (#2971)
* ddev enhancements

Introduced a new script that runs when the ddev container starts.
This script will automatically update the dependencies if they fall behind the lockfile and will rebuild NPM when needed too

* Fixes and improvements for DX

* Cleaner, better

* Changes based on copilot review

* Remove an old comment I somehow missed

* use npm ci instead
2025-10-14 11:06:33 -07:00
Adam Daley a9b903c222 Codebase modernisation, configuration cleanup, and improved type safety (#2957)
* Refactor tests to replace depreciated functions

* Update Rector config and dependencies

* Rector: Add explicit string casting for stricter type safety

* Rector: Add return type hints to methods across codebase

* Rector: Increase dead code level and refactor invoice item logic

* Remove unnecessary `willReturn` from test mocks

Eliminate redundant `willReturn(null)` and similar calls from PHPUnit mock setups in legacy module tests, leaving only method expectations. Also update some test values to use floats for consistency.

* Refactor API controller and email adapter return values

* Update formatting and guidelines in `AGENTS.md`
2025-10-11 23:39:44 +01:00
YağızhanandAdam Daley 06d2746017 Initial Doctrine setup and News rewrite (#2915)
* +Initial Doctrine EntityManager setup

* Doctrine support for Pagination

* Removed doctrine/migrations. Won't be using that yet.

* Reworked the News module using Doctrine

* Strict types

* A couple of fixes

* Add 'ONLYDIR' to cspell.json dictionary

* Removed the old Post model

* Typing

* Dev mode support

* +TimestampableInterface

* +Proxy settings

* Add missing `datetime` fields to `Post` entity

* Update Guest.php

* Add `doctrine/orm` and related dependencies

* Add Symfony serializer, property-access, and property-info

* Update Service.php

* Update cspell.json

* Adam's suggestions

* Update AGENTS.md to include Doctrine directives

* Reuse the post content

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2025-10-09 15:58:31 +03:00
Adam Daley 77c34394d6 General Cleanup/Refactoring (#2955)
* Add symlink for Copilot instructions

* Add duplicate IPN detection for transactions

* Update class header files for legacy and current versions

* Remove BoxBilling copyright and fix SPDX headers

Removed legacy BoxBilling copyright lines and standardised SPDX-License-Identifier headers to 'Apache-2.0' across FOSSBilling library files for consistency and clarity.
2025-10-08 00:22:59 +01:00
renovate[bot] ccaa560901 chore(deps): pin dependencies 2025-10-07 01:24:29 +00:00
Adam Daley 86964e8eb2 Switch Wysiwyg module build from Webpack to esbuild (#2948) 2025-10-06 11:57:02 +01:00
renovate[bot] 1a3c568b0f chore(deps): pin dependencies (#2947)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-05 01:59:06 +01:00
renovate[bot]andAdam Daley 0a57bfe157 chore(deps): update dependency ckeditor5 to v47 (#2937)
* chore(deps): update dependency ckeditor5 to v47

* chore(deps): update dependency ckeditor5 to v47

* Update package-lock.json

* Update package-lock.json

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2025-10-04 20:55:15 +01:00
533a15999c Apply PHP Code Styling & Quality Changes (#2932)
* Apply PHP Code Styling & Quality Changes

* Remove unnecessary phpstan ignore comment

* Apply PHP Code Styling & Quality Changes

* Remove unnecessary phpstan ignore comment

* Update Service.php

---------

Co-authored-by: FOSSBilling Bot <fossbilling-bot>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2025-09-30 22:18:09 +01:00
Belle Aerni c5811ebfba Fix our CI failures
* Update package-lock.json

* Update Service.php
2025-09-28 11:00:13 -07:00
YağızhanandAdam Daley 899a94ae44 Invoicing types and other minor improvements (#2888)
* ServicePayGateway: types and other improvements

* ServiceTransaction: types

* ServiceTransaction: fixed typo

* Update ServicePayGateway.php

* Fix SQL condition for search query in ServiceTransaction

* Update default values in ServicePayGatewayTest

* Update mock return value in ServicePayGatewayTest

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2025-09-22 08:17:03 +01:00
Yağızhan b6534ab0d0 Refactor IP retrieval method in Server.php (#2920)
* Refactor IP retrieval method in Server.php

* Also update the documentation while we're at it
2025-09-22 06:50:12 +01:00
YağızhanandCopilot f086342bfb Stop fetching network interface information at render time (#2907)
* Stop fetching interface information at render time

* Update src/modules/System/html_admin/mod_system_settings.html.twig

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

* Keep bindTo in a variable

* Loading state

* Also show a loading state for the interfaces

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-18 02:53:40 +03:00
YağızhanandCopilot c2dcd13759 Restore correct JSON and array handling for Servicelicense (#2919)
* Restore correct JSON and array handling

* Update src/modules/Servicelicense/Server.php

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

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-18 00:49:19 +01:00
4445263a7d Apply PHP Code Styling & Quality Changes (#2916)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
Co-authored-by: Yağızhan <yagizhan49@protonmail.com>
2025-09-17 23:15:41 +03:00
Yağızhan e038d8591e Ability to set a separate "From" identity for emails (#2900)
* Refactor email sender to respect custom identity

* + Custom email address and name

* Updated tests

* Copilot nitpicking
2025-09-15 13:17:20 +01:00
YağızhanandCopilot 7ce6a710ca Fix cache key generation for the extension directory (#2903)
* Fix cache key generation for the extension directory

* Log the extension directory exception

* Make cspell happy

* Fixing tests

* Update src/library/FOSSBilling/ExtensionManager.php

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

* Change hash algorithm from sha256 to xxh3

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-15 13:10:48 +01:00
Yağızhan b2338f643e Added a default country setting (#2904)
* + Default country support

* Fixed tests
2025-09-14 18:10:30 +03:00
Yağızhan a0b34dbb29 Fix invoice filtering (#2898)
* Fix invoice filtering

* Update status radio value

* Removed individual CSRF fields
2025-09-13 22:41:28 +01:00
Yağızhan 12d42e5bb3 "New client" form overhaul (#2905) 2025-09-13 01:16:24 +01:00
Yağızhan d9c7fc7053 tomselect: Automatically grab the CSRF token from the API wrapper (#2899)
* Automatically grab the CSRF token from the API wrapper

* Removed data-csrf fields
2025-09-13 01:08:20 +01:00
Yağızhan b3d2caa106 Fix missing client name in the activity list (#2901)
Make the SQL query use CONCAT_WS for client name
2025-09-13 02:36:34 +03:00
Yağızhan 5fe5c727f1 Fixed negative invoice radio not being checked (#2897) 2025-09-12 16:23:48 -07:00
c4a19916fd Fix payment / PayPal problems (#2889)
* Fix payment / PayPal problems

* Update Guest.php

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

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-06 13:03:58 -07:00
Yağızhan 7e2cf65edd Bug: Servicehosting API returning wrong order data (#2885)
Update database query to filter by service type
2025-09-05 00:17:06 -07:00
Belle Aerni 996ff15a3e Partial revert of added strict types (#2881) 2025-08-29 15:06:49 -07:00
Belle Aerni 239d63b276 Fix/checkout before login (#2875)
* Prevent checkout before being logged in

* Improve
2025-08-24 23:52:43 +01:00
Belle Aerni b8c052e93c Fix cron crashing when sending due reminders (#2874) 2025-08-24 12:39:44 -07:00
moshekv 4713a23d53 Fix missing directory separator in _loadTheme (#2862)
fix missing directory separator in _loadTheme
2025-08-16 14:35:46 +01:00
Adam Daley 4a67be638e Fix module icon loading (#2858) 2025-08-12 02:57:22 +01:00
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