Commit Graph
11 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 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
Belle Aerni 28e8b641fa Fix the message for the dangerous functions check (#2784) 2025-06-10 06:20:17 +01: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
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
Belle Aerni 368f8cd6ad Bump the year (#2581) 2025-01-23 15:11:53 -08:00
Belle Aerni 3449537c92 Fixed CS / Rector workflow and ran both (#2580) 2025-01-20 16:19:45 -08:00
Belle Aerni 672c96cd5f Slightly improve session fingerprinting (#2560)
* Slightly improve session fingerprinting

* Spelling
2025-01-20 16:07:15 -08:00
Belle Aerni b35d902a6a Security dashboard & checks (#2503)
* Started implimenting a security dashboard and checks

* Wrote two functional checks

* Fix typos

* Update webserver.php

* + a new check

* Slight cleanup, made translatable

* Added some general checks

* Update cspell.json

* Typo

* Slight tweaks, add a permission to run checks
2025-01-08 10:52:07 +00:00
Belle Aerni a5d15c2a99 Upgrade GeoIP functionality & replace the databases (#2471)
* Replaced Maxmind's IP database

* Began rebuilding GeoIP reader functionality

The GeoIP2 package does not worth with DB's that aren't built by maxmind themselves, making it rather unhelpful for us.

Since my long-term goal is for someone to be able to bring in their own DB, making a custom implementation seems like the reasonable choice.

(Plus my aim is already to replace the MaxMind DB due to it's licencing)

* Created an IP address lookup page

* + ASN info

* Bump last patch

* Make PHPStan happy

* Very minor refactor + PHPDocs
2024-10-31 19:31:50 +01:00