Commit Graph
2701 Commits
Author SHA1 Message Date
Belle Aerni 375f266a28 Eliminate the extension manifest column from the DB (#2158) 2024-02-20 10:46:25 +00:00
Belle Aerni 969214c040 Added an icon for the activity module (#2157)
* Added an icon for the activity module

* Fix
2024-02-18 16:52:36 -08:00
Belle Aerni 7dbd3ea7d3 Added proper TLD validation (#2146)
* Added proper TLD validation

* Bug fix

* Remove the test that broke.. It doesn't really test anything

* Reduce the cache length if our final validation fails

* Switched to a different list

* Update cspell.json

* Small fix

* And another one, whoops
2024-02-17 16:56:50 -08:00
Belle Aerni 7097ede49a Change the file permissions message in the installer (#2154) 2024-02-17 15:41:44 -08:00
Jaap Marcus fd160428ed Fix Reseller Club (#2147) 2024-02-17 15:50:18 +00:00
Belle Aerni 94c5f3280a Fix an accidentally duplicated cache key (#2144) 2024-02-15 14:05:19 -08:00
FOSSBilling BotandFOSSBilling Bot 1424110532 Apply PHP Code Styling & Quality Changes (#2139)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2024-02-13 06:43:27 -08:00
Belle Aerni ac67a8f930 Remove the locale submodule, replaced the release downloader action (#2136) 2024-02-13 13:02:25 +00:00
Belle Aerni e1044636d4 Refactored the generatePassword function (#2131) 2024-02-11 17:02:47 +00:00
Belle Aerni 27ddcacd6e Added a configurable age limit for activity data (#2134) 2024-02-11 16:59:48 +00:00
Jaap Marcus 3f94f38805 Add CKEditor to new KB Article (#2135)
* Add CKEditor to new KB Article

* Load  in way it doesn't load 2
2024-02-11 06:32:59 -08:00
Belle Aerni fad6b56788 Fixed a case where an incorrect translation tag was being used (#2133)
This ended up being processed by the twig translation extension so it didn't actually translate (it was otherwise unused and unconfigured). This fixes that & ensures there won't be an error now that the extension is removed
2024-02-10 22:21:05 -08:00
Belle Aerni b5a4bd4d9e Various minor improvements (#2132)
- Removed unused twig extension, May a tiny bit of ram and reduce memory usage.
- Switch to the filesystem `touch` function VS PHP's native. Also corrected the time used for touch.
- Wrapped our call to monolog's `write` function in a try-catch. These don't need to be fatal. Instead logs to the PHP error log.
- Ensured the SSL redirect won't be triggered if needed headers weren't provided. Prevents logged errors
- Removed unused composer deps.
- Moved cURL to being a required extension in our composer.json file
- Replaced a a case where the death star version constraint was being used.
2024-02-10 21:39:25 -08:00
Belle Aerni 9d066a043a Replace hardcoded domains in the embed module (#2129) 2024-02-09 22:57:37 -08:00
Belle Aerni ea0b7068b7 Minor bugfixes / deprecation cleanups (#2128)
* Minor bugfixes / deprecation cleanups

* Making the tests happy
2024-02-09 22:00:00 -08:00
FOSSBilling BotandFOSSBilling Bot 667f721090 Apply PHP Code Styling & Quality Changes (#2123)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2024-02-06 12:46:22 -08:00
Guillaume ARNOUXandJaap Marcus a0323e8da2 🎨 Maintenance page renovation (#2102)
update maintenance page

Co-authored-by: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com>
2024-02-03 14:07:59 +01:00
Belle Aerni b8451313c3 Fix WHM for access hash usage (#2115)
Update Whm.php
2024-02-02 14:51:26 -08:00
Belle Aerni 6e438b1a59 Add a option to disable public tickets (#2113)
* Add a option to disable public tickets

* Replaced legacy test, written a new one

* Fix an unrelated error that appeared in the error log
2024-02-02 12:18:46 -08:00
Belle Aerni 1d1c1745f4 PDF Fixes (#2111)
* Misc PDF generation fixes

* Set the default font

* Ensure the footer can't cover the breakdown
2024-02-01 15:01:05 -08:00
Guillaume ARNOUXandJaap Marcus d22b7b224d ✨Add prefix for generated users (continuation) (#2101)
* user prefix for overrided methods (see #1378)

* warning about cpanel on config page

* update maintenance page

* Revert "update maintenance page"

This reverts commit 5ce7f5f522.

* add warning about usernames handling

* fix typo

---------

Co-authored-by: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com>
2024-01-31 09:15:41 +01:00
Belle Aerni 4d3926720f Fix the password length field while adding a server (#2108) 2024-01-30 16:48:00 -08:00
FOSSBilling BotandFOSSBilling Bot 21b4422921 Apply PHP Code Styling & Quality Changes (#2107)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2024-01-30 15:38:57 -08:00
Belle Aerni b729da69fc Improve CLI check, added PHP dev server to sentry helper (#2105) 2024-01-28 13:32:25 -08:00
FOSSBilling BotandFOSSBilling Bot 33cfc4f793 Apply PHP Code Styling & Quality Changes (#2097)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2024-01-24 05:36:10 -08:00
Belle Aerni c94730c7d5 Strip the CSRF Token before calling API endpoints (#2094) 2024-01-21 21:02:43 -08:00
Belle Aerni 0044b2ac99 Fix some incorrect typehints (#2093)
* Fix incorrect typehints

* Also fix the default value I set in my last PR

* I missed this..
2024-01-21 20:44:56 -08:00
Belle Aerni 5b919c17d8 Added some debugging for session fingerprinting (#2092)
* Added some debugging for session fingerprinting

* Fix wording
2024-01-21 20:22:59 -08:00
Belle Aerni ebe3083741 Revert the added server manager typehints (#2091) 2024-01-21 19:24:20 -08:00
Belle Aerni cca0515491 Transfer carts when logging in (#2083)
* Transfer the cart when logging in

* Wrote a test for it

* This should at least fix one of the tests

* Oops

* Wrong spot...

* Ah-ha!
2024-01-21 16:00:41 +01:00
Belle Aerni 7b77426baf Ignore ext config / uninstall errors in the update patcher (#2089) 2024-01-19 13:23:03 -08:00
Belle Aerni bc72de3103 Improve clarity when marking unpaid invoices without a set gateway (#2088)
* Improve clarity when marking unpaid invoices without a set gateway

* Remove the quotes

* Update AdminTest.php
2024-01-19 13:11:18 -08:00
Christoph Schlaepfer 6efa361c2d Fixed missing Semi-Colons (#2085) 2024-01-18 05:23:01 -08:00
Christoph Schlaepfer a1625c07ea Fixes an error when saving a plaintext textarea field when CKEditor is loaded and there are no textareas it initialized. (#2084)
Fixes Issue with textarea fields, if ckeditor is loaded but there is not textarea with the class it has assigned.
2024-01-18 00:58:58 -08:00
Belle Aerni 8f4d0d4cac More tests and CI improvements (#2078)
* Wrote a few more tests, improvements

* Ran Rector & PHP-CS-Fixer

* Append a capital letter to the test client passwords

* Minor tweaks

* Display more info after the tests run

* Oops, I forgot to set the dir

* Fix cron behavior for test env, dropped legacy tests

* Rename the empty test suite so PHPUnit ignores it

* Update cspell.json

* Minor tweaks to the tests

* Fixes
2024-01-17 18:11:45 -08:00
renovate[bot] b6f16956aa Update CKEditor to v41 (major) (#2080)
Update CKEditor to v41

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-18 02:12:39 +01:00
Christoph SchlaepferandChristoph Schläpfer 0fde9e3843 Changed ID to Client-ID where applicable (#2077)
* Changed ID to Client-ID where applicable

* Removed dash

---------

Co-authored-by: Christoph Schläpfer <c.schlaepfer@datact.ch>
2024-01-17 11:08:15 +01:00
Belle Aerni 76b32a6026 Feat: allow selection of the default network interface (#2065)
* Feat: allow selection of the default network interface

* Update cspell.json

* Wrote some tests, moved the setting to the config file

* Cleanup, fixes, include Sentry in the bind setting

* Use JS to update the IP rather than reload, minor tweaks

* UI tweaks

* Removed leftover incomplete sentence, mention interface names
2024-01-17 01:46:32 -08:00
Robert Thomas 1bea222a26 Refactor Server Library + Improve Docs (#2063)
* Refactor `Server` library component + improve docs

* Refactor `Server` library component + improve docs

* More meaningful documentation

* Allow null strings

* Generate new PHPStan baseline

* Address comments + Rector and PHP-CS-Fixer

* Handle converting package bandwidth and disk quota into bytes

* Remove previous PHPStan baseline change

* Fix `password_length` bug caused by previous PR
It seems that the database code automatically converts camel case (`passwordLength`) into snake case (`password_length`)

* Rectify migration

* Resolve merge issue
2024-01-16 04:40:22 -08:00
FOSSBilling BotandFOSSBilling Bot 8f3740b691 Apply PHP Code Styling & Quality Changes (#2073)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2024-01-16 04:25:38 -08:00
Belle Aerni b061d5da04 Implemented a new class for config management (#2066)
* Implemented a new class for config management

* Run Rector & PHP-CS-Fixer

* Spelling

* Pointed a bunch of code to the new class

* Fix tests, removed 2 broken ones that did nothing

* Quick run of PHP-CS-Fixer

* Fixed issues noticed in self review

* Updated remaining old methods. Fixed minor error page issue

* Very minor code tweak

* Fixes, added a related test

* Check for OPCache functions being defined

* I don't think this timeout is needed
2024-01-15 14:12:53 -08:00
Jaap Marcus 946da4fa8e [Hestia] Implement Rule for valid username (#2071)
Implement Rule for valid username

https://github.com/hestiacp/hestiacp/pull/4195
2024-01-15 02:56:36 -08:00
Belle Aerni 1b0fba1922 Various additional tests (#2069)
* Various additional tests

* Fixes

* More fixes

* Fixed my other mistakes

* Final fix
2024-01-15 00:46:19 -08:00
Belle Aerni ccc97a3ec9 Initial implementation of CI against a live FOSSBilling Install (#2067)
* Rename tests to tests-legacy

* Groundwork for live tests

* Somewhat working tests on a live instance

* Hmmmmmm

* Fix

* Fixed the other bug

* Added a handful of various tests

* Typos, all these are admin endpoints

* Bypass this check for testing envs

* Disable it for now

* Mini cleanup

* Cleanup from debugging, ran PHP-CS-Fixer
2024-01-14 22:51:32 -08:00
Belle Aerni 7bb98f5ffd Re-run PHP-CS-Fixer and (Hopefully) Fix Rector for GHA (#2061)
* Changed Rector parallel config. Hoping to resolve GHA issue

* Re-run Rector and PHP-CS-Fixer
2024-01-12 16:43:45 -08:00
Robert Thomas a69cdf7350 Implement passwordLength field for service hosting generated accounts (#2040)
* Implement `passwordlength` field for service hosting generated accounts
Fix testing DirectAdmin connections (it previously did nothing)

* Revert unintended change from the previous PR

* Fix changes not saving to db

* Fix `passwordlength` not showing everywhere

* Remove stray debug line

* Fix: passwords being incorrectly set to 7 asterisks when an order is uncancelled

* Requested changes + typo fix

* Include `passwordlength` as ignored term

* Fix typo change oversight

* Minor code clarity improvements

* Type safety for the `passwordlength` and `port` fields

* Fallback to the original model value

* Remove default value for new servers, to show the placeholder

* Improve customer UI
Increase padding for service hosting management tabs
Include missing badge styling for `canceled` orders

* More consistent button colours for orders

* Rename `passwordlength` to `passwordLength`
Remove `activate` and `uncancel` tests for now as they don't really work

* Remove spelling ignore for `passwordlength`

* Restore missing `$httpClient` variable

* Resolve comments

* More thorough port validation

* Fix errors caused by fixing the previous merge conflicts through the GH web interface
2024-01-13 00:35:06 +01:00
Jaap Marcus c8cc0af02e Make Curl mandatory again (#2060)
HTTP Client still depends on PHP Curl to be present
2024-01-09 15:39:01 -08:00
Belle Aerni 1bec1acabc Wording consistency (#2055) 2024-01-08 17:58:06 -08:00
Belle Aerni da3cf52f86 Minor front-end improvements & fixes (#2052)
Front-end improvements & fixes
2024-01-08 14:09:43 +01:00
Belle Aerni fca565522b Prevent the generation of invalid usernames for WHM (#2054)
* Prevent the generation of invalid usernames for WHM

* Missed a "substr" there

* Ensure we aren't making the usernames longer

* Fixed my typo
2024-01-08 04:32:28 -08:00