* continue updating api
* Add Ingame Group Name dropdown if groups were sent by plugin
* add validation function for params, add docblocks
* revert call_user_func
* wip
* Modular API endpoints! WIP
* Modular endpoints wip
* fix some errors, get discord linking working again
* Add panel page for API Endpoints
* revert lastid rename
* Add Endpoint descriptions
* clean up some endpoints
* wip
* WIP (booleans, intval, mc integration work)
* wip
* discord secondary groups - WIP
* Fix some group sync form things
* add writable info to Server Compatibility. other fixes WIP
* redo group sync page logic
* fix some validation logic
* Add group order to group list
* Endpoint autoloader
* dont need that variable
* Add listUsers filters
* Rework #1839
* Move banned/active filters to query
* rename 'active' to 'verified'
* Use boolval function
* Use double negation instead of boolval
* use bool cast
* WIP syncing Secondary Groups
* wip Discord Role Syncing
* accidental html
* wrong order
* wip clean endpoints
* Test/Fix all endpoints
We are getting close to completion :confetti_balls:
* Add missing translations
* new class for Discord functions
* Add check if hooks exists on upgrade
* add missing admin permissions on install
* add discord role in setGroup endpoint
* #1876 - Add user language to userInfo endpoint
* Store report dates using unix timestamp
* Get language name via join in userInfo endpoint
* Add default language to info endpoint
* Uninstall instructions
* Fix user logic for real
* simpify discordBotRequest return value
Co-authored-by: samerton <samerton@users.noreply.github.com>
Co-authored-by: Derkades <robinslot@hotmail.nl>
* Initial commit, big additions. Linking/verifying discord id is complete
* Update admin.php
* Better validation errors + language updating
* Apply role change on user edit page - still some things to flush out though
* flush out some edge cases
* Add role in discord upon account validation & more
* Add api endpoint (need to test) & a lot of TODOs
* fix announcements a bit on Default template
* define bot url for easier move to self-hosting
* Add discord->website (adding) sync & lots of the TODOs
* Add discord role removal api endpoint
* Add logging od discord role add/remove & fix log table
* Add api_url to discord request for extra security & add todo's for error handling
* More API error handling for discord bot
* Add boilerplate error handling if bot throws error
* Add error messages for all discord linking
* If they have a role on the site, give it to them when they verify their id
* Resolve Sam's review
* Add info msgs so people know where to get discord IDs
* Add all language translations and update NMC version strings
FIRST THINGS FIRST:
- INSTALLATION HAVE TO BE REVERTED
- Maybe remove the htmlpurifier document.
Logged most actions in the ACP, MCP, UCP, and forums. Still need to modify them to make sense to someone who is reading them... Especially on the forums. I will add the languages later. I'm heading off to bed :P. Can't code when tired.
Changes to be committed:
new file: core/includes/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/HTML/4.7.0,241afe084734d0900affdf81b01044ae17792d23,1.ser
modified: core/installation/views/installer.view.php
modified: custom/languages/EnglishUK/admin.php
new file: custom/languages/EnglishUK/log.php
modified: custom/languages/EnglishUS/admin.php
modified: install.php
modified: modules/Core/init.php
modified: modules/Core/pages/admin/api.php
modified: modules/Core/pages/admin/auth.php
modified: modules/Core/pages/admin/groups.php
modified: modules/Core/pages/admin/images.php
modified: modules/Core/pages/admin/minecraft.php
modified: modules/Core/pages/admin/modules.php
modified: modules/Core/pages/admin/pages.php
modified: modules/Core/pages/admin/registration.php
modified: modules/Core/pages/admin/security.php
modified: modules/Core/pages/admin/styles.php
modified: modules/Core/pages/admin/users.php
modified: modules/Core/pages/admin/widgets.php
modified: modules/Core/pages/login.php
modified: modules/Core/pages/logout.php
modified: modules/Core/pages/mod/ip_lookup.php
modified: modules/Core/pages/mod/punishments.php
modified: modules/Core/pages/mod/reports.php
modified: modules/Core/pages/register.php
modified: modules/Core/pages/user/acknowledge.php
modified: modules/Core/pages/user/settings.php
modified: modules/Forum/pages/forum/delete.php
modified: modules/Forum/pages/forum/delete_post.php
modified: modules/Forum/pages/forum/edit.php
modified: modules/Forum/pages/forum/lock.php
modified: modules/Forum/pages/forum/merge.php
modified: modules/Forum/pages/forum/move.php
modified: modules/Forum/pages/forum/new_topic.php
modified: modules/Forum/pages/forum/reactions.php
modified: modules/Forum/pages/forum/report.php
modified: modules/Forum/pages/forum/search.php
modified: modules/Forum/pages/forum/stick.php
If there is any questions about this commit message me on my discord Root3287#2339 Thank you <3
Private Profile option,
permission to set private and permission to bypass private profiles.
By default you can set private.
Option in admincp -> core -> general to activate and deactivate private profiles
You can also set someones profile private if the system is activated in admin -> users & groups
Things fixed
some installer bugs - installer.php
* db password variable was incorrect
* default language database setting
* default theme cache variable (dont know if having it set to 1 was intended, had to set it to default to get the site to work)
Changed some variables in /admin/users.php to 3 from 4 to match the error strings in the language file, could have changed the language variables and stuff, but im lazy (and I use Tom as my username lol)
username_minimum_3
mcname_minimum_3
Also changed $group to 3 when editing user #1 to match the new settings of admins being 3 instead of 2
if the user tries to set email to something strange like 1@1 it will get an error for being to short but not show an error, I could not figure out how to get it to trigger, but I added ```'invalid_email' => 'Your email is invalid.',``` to the EnglishUK/user.php and a validate email type in core/classes/Validate.php. Did not want to break to much so I left email defaulting to min 4 instead of t