Commit graph

56 commits

Author SHA1 Message Date
tadhgboyle
e569c92cde
Update Template config to use Settings system rather than Cache (#3669)
* Update Template config to use Settings system rather than Cache

* Remove is_default from templates, use only the Settings value

* Convert template_settings

* lint

* fix

* fix
2025-06-04 21:45:50 -07:00
Partydragen
bf2a41c063
Add group sync log to debug link (#3650) 2025-05-11 13:57:43 +01:00
Tadhg Boyle
d0fba0cbe9
Replace Util::getSetting/Util::setSetting usages (#3387) 2023-06-12 10:30:49 -06:00
Partydragen
f2a6ffbc40 Fix requested change 2023-01-15 18:41:55 +01:00
Partydragen
d866c84638 Fix requested changes 2023-01-15 18:40:35 +01:00
Partydragen
22809eb45e Show user debug details in debug info 2023-01-15 14:49:18 +01:00
Tadhg Boyle
307096fb54 Create and utilize HttpUtils class 2022-06-13 22:24:43 -06:00
Robin
4d16d3f555
Rewrite configuration file operations (#2850)
Co-authored-by: Tadhg Boyle <tadhgsmboyle@gmail.com>
2022-06-12 20:21:21 -06:00
Tadhg Boyle
6dda4dba80 Send data about OAuth providers to debug link 2022-06-10 23:15:05 -06:00
Robin
75db1bfbd2 Reduce amount of logs sent 2022-06-02 20:50:53 +02:00
Robin
a1d4a84a1a Strict checking 2022-06-02 16:58:20 +02:00
Robin
8b343720a0 Fix issues reported by phpstan 2022-06-01 10:13:40 +02:00
Robin
4ed51b974d Remove some manual settings queries
Also remove social media and API key cache
2022-06-01 00:20:38 +02:00
Robin
a36579c64d Remove redundant db instance param 2022-05-31 23:01:59 +02:00
Robin
c2a1d934ff Deprecate redundant method in queries class 2022-05-28 14:10:01 +02:00
Robin
7fce25c34f Should be in 'settings' section 2022-05-27 20:40:44 +02:00
Robin
1865332a78 Also include trusted proxies from environment in debug info 2022-05-27 20:37:21 +02:00
Robin
61a147f2c6
Use proxy headers, properly, securely (#2688)
Co-authored-by: Tadhg Boyle <tadhgsmboyle@gmail.com>
2022-05-26 22:40:11 -06:00
Tadhg Boyle
40ef677c25 Init 2022-05-01 23:16:22 -07:00
Partydragen
e75b2c69e5
Fix who can generate debug link 2022-04-29 15:18:39 +02:00
Tadhg Boyle
ceaaf8fc2f Remove debug link version 2022-04-28 13:29:52 -07:00
Robin
bb965a5b54
Only read last part of error log (#2721) 2022-04-27 22:43:54 -07:00
Tadhg Boyle
c1789c75bd Send logs to debug links 2022-04-26 22:31:04 -07:00
Partydragen
c08efcc679 Include integrations in debug link 2022-04-24 17:51:31 +02:00
Partydragen
dfa6a53476 Fix debug link 2022-04-24 15:09:12 +02:00
Tadhg Boyle
2c21149a1e
Use i18n for translations (#2658)
* Dependency updates

* Start i18n conversion

* Switch to ellipsis character

* Add Dutch language json

* Remove Dutch PHP language files + fix variables

* Further variable fixes

* WIP i18n Language class conversion

* Convert Cookie Consent module to new language format

* Further progress including timeago translations

* Misc

* Replace {x}

* Replace more {x} usage

* {{time}}

this took way too long

* replace last {x}

* Remove comments

So searching for {x} produces relevant results

* forgot to save

* move to onPageLoad

* Accept both string and int

* types in doc

* Remove unused (broken?) function

* Don't convert to string first

* Last arg doesn't seem to be used anywhere

* Time `{x}` replacements

* Email `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* misc `{x}` replacements

* remove comments (makes searching for "{x}" nicer)

* misc `{x}` replacements

* JS `{x}` replacements

* Cleanup language initialization

* Change language constant + add pluralForm support

* Misc language update things

* Add script to find unused terms

* Check all quote types

* Remove most english translations from non-english languages

* Also match with more args

* Missed some apparently

* Missed some (more) apparently

* Misc work

* Add script to convert *all* language files to json

* Fix language codes

* Remove a lot of unused terms

* Remove a lot more unused terms

* Convert everything to JSON, delete old files, get installer working with new system

* Fix general configuration language dropdown + email messages

* Fix page load time, fix language term `set` method

* Fix discord integration command

* Misc

* Misc

* Uncomment RTL definition

* Misc

* Convert links

* Convert links

* Convert links

* Convert links

* Misc work (bolding, fixes, etc)

* Style fix

* Fix variable

* Fix #2668

* Fix old page load timers

* Fix installer group sync injector error

* Convert integration language terms

* Fix more integration language things

* Re-add upgrade script language things

* Resolve PR comments

* Remove unnecessary date()

* Resolve some PR issues

* Fix endpoint

* Style

* Fix Semantic -> Fomantic

* Fix Semantic -> Fomantic

* Return locale short code, not language id/name

Only the short code is interesting to the API, return short code in user info endpoint just like in the website info endpoint.

Also renamed to locale because it's language + region

* Revert "warn people to not translate old language files"

This reverts commit 690b77afff.

* Fix query when there are no filters

* Update 200-pr12.php

* Update footer.php

* insert time into string using placeholder

* Fix getDisplayname case

* Clean username

* PR suggestions

* Include newly created language in converted languages (migration)

* PR suggestions

* PR suggestions

* Update init.php

* Fix default language

Co-authored-by: samerton <samerton@users.noreply.github.com>
Co-authored-by: Robin <robinslot@hotmail.nl>
Co-authored-by: Robin <robin+git@rkslot.nl>
Co-authored-by: Partydragen <adrian_kili@outlook.com>
2022-04-23 14:27:10 +01:00
Tadhg Boyle
31e48bf648 Introduce DTOs for user data, groups and user groups 2022-04-17 16:53:58 -07:00
Partydragen
d2503a1ae0
User Integrations systems (#2606)
* Initial work for User Integrations systems

* Convert a few endpoints to new user integration system

* Finish minecraft part to new User Integration system

* Fixes verify banner issue https://github.com/NamelessMC/Nameless/issues/2052

Fixes https://github.com/NamelessMC/Nameless/issues/2052

* Convert discord to new user integrations system

* Update fields to show user integrations

* Add user integrations to StaffCP user page / move over

* Update UserInfo and Rename MinecraftVerify endpoint

* Rework user listing endpoint

* Password check never returns null

* Add support for offline mode uuid

* Fix documentation phpstan warnings

* else if

* remove die()

* Revamp registration page

* add integrations settings page

* Convert authme & fix phpstan issues

* refix settings page

* Load uuid when user is loaded

* Redirect user to complete required integrations

* Fix translation for user connections page

* Rework integrations registration in Register Endpoint

Completes https://github.com/NamelessMC/Nameless/issues/2516

* make getIntegration ignore case sensitive

* Update installer

* Update upgrader script to convert users

* Fix index for user integrations

* Remove uuid from user data

* Misc

* Remove one unused query

* Add event for integration linking, verify and unlink

* Finish user transformer, Finish user integrations

* Thx phpstan

* Fix phpdocs

* Fix user reports page

* Remove validation banner

* Change default field value

* resolve samerton feedback

* don't clean when inserting data

* don't clean event data

* remove more clean

* increase reset_code length from 60 to 64

* pr13 confirmed

* one more clean

* Remove API verification setting

* Register integrations edit permission

* Resolve a few requested changes

* Rework username and identifier validation

* Add button to sync user integration

* Fix Synchronisation text

* Fix is verified term

Co-authored-by: Robin <robinslot@hotmail.nl>
Co-authored-by: Robin <robin+git@rkslot.nl>
2022-04-16 17:42:24 +01:00
Robin
127455a83a Use Output::getClean 2022-03-31 21:56:57 +02:00
Tadhg Boyle
4c48ee8ac0 Fix HttpClient to support form-urlencoded for captcha 2022-03-10 11:19:45 -08:00
Tadhg Boyle
791cd5fced Fix captcha boolean for debug link 2022-02-22 13:38:25 -08:00
Tadhg Boyle
16cfccd7da Remove contact page captcha from debug link 2022-02-22 13:29:11 -08:00
Tadhg Boyle
13cb08553b Add correct headers to debug link request 2022-02-22 13:15:47 -08:00
Tadhg Boyle
1a5e98deb1 Use Guzzle as underlying HTTP client, add Guzzle to DebugBar (Closes #2580) 2022-01-30 19:37:28 -08:00
Tadhg Boyle
ad17142a16
Misc cleanup (#2566) 2022-01-15 15:18:05 -08:00
Tadhg
e0133a5cd5 Get PHP-CS to pass! 2021-12-07 22:14:12 -08:00
Tadhg
1566c86067 Fix some CS issues 2021-12-07 20:51:29 -08:00
Tadhg Boyle
081d505da7
Don't send webhook URL to debug link 2021-11-21 21:56:09 -08:00
Tadhg
b02c38b7ba Send webhook config info in debug link 2021-11-21 21:09:37 -08:00
Supercrafter100
855d84a670
Add permission check to debug link query (#2501)
Co-authored-by: Tadhg Boyle <tadhgsmboyle@gmail.com>
2021-11-21 20:25:21 -08:00
Tadhg
915627ddc6 Misc bug fixes + consistency fixes 2021-11-14 20:53:29 -08:00
Tadhg
42c4579b09 Change HttpClient to more advanced class, change all curl usages to HttpClient 2021-11-10 17:48:54 -08:00
Tadhg
4d148aa02d New HttpClient class for get/post requests 2021-11-09 16:51:06 -08:00
Tadhg
f89e121d54 Use new bytebin url 2021-11-09 08:28:25 -08:00
Tadhg
fb5c495078 Send website groups in debug link dump 2021-11-02 20:20:57 -07:00
Tadhg
5a54c54e80 Load module instances in a more reliable way for debug link 2021-11-02 16:24:38 -07:00
Tadhg
a9c678e4d4 convert all array(...) syntax to [...] 2021-10-29 22:00:05 -07:00
Tadhg
77f75c0604 rename 2021-10-18 21:31:05 -07:00
Tadhg
d4dfe02a4b add core and cache writable to debug 2021-10-18 21:28:57 -07:00
Tadhg
0d45ec9909 rename 2021-10-18 21:15:42 -07:00