Commit graph

51 commits

Author SHA1 Message Date
tadhgboyle
d9fae243de
Remove floating includes files (#3629) 2025-04-28 05:39:51 -07:00
Sam
9ce7b650df
Mass message rework (#3494)
* wip: mass messaging rework

* WIP notifications

* feat: mass messaging

* chore: tidy force migration

* chore: remove dev template

* style: styleci fixes

* fix: mass message bypass notification settings + mass message bypass purification

* fix: typo in alerts page
2024-03-31 20:19:43 +01:00
Robin
77f8530182 Remove unused parameter 2022-05-28 14:33:35 +02:00
PadowYT2
f01f8b3dbe Resolve conversation & from #2757 2022-05-27 11:54:24 +03:00
Tadhg Boyle
ffd05117e7 Use Composer autoloader for our classes 2022-01-10 00:53:54 -08:00
Tadhg
805e1e9e27 organize classes into folders + implement new autoloader 2021-10-27 22:26:24 -07:00
Tadhg Boyle
c25802bad1
Add new dynamic Group Sync injectors system + separate Discord into own module (#2423)
Co-authored-by: Robin <robinslot@hotmail.nl>
2021-10-05 15:13:04 -07:00
Tadhg Boyle
58b368a1b1
Revamp/cleanup (external) avatar handling (#2261) 2021-05-08 15:07:07 -07:00
samerton
9c1aa7c6fe Rework captcha system and add Recaptcha 3 2021-03-12 23:11:40 +00:00
Derkades
e5499cdbc1 Daily style fixes 2 2020-11-09 20:50:16 +01:00
Tadhg Boyle
f93ac78041
Major API Changes (#1836)
* 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>
2020-10-25 13:59:02 -07:00
Tadhg
d971c0e0f2 Change some random things 2020-09-01 23:27:20 -07:00
Tadhg Boyle
0560fd907b
Discord Integration! Sync your roles between your NamelessMC site and your Discord Guild. (#1764)
* 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
2020-07-25 21:00:41 -07:00
samerton
cd02999dfc Update module, template + widget systems 2018-09-10 01:14:58 +01:00
samerton
ccbbb128b9 Add parameter list to events 2018-08-29 13:48:28 +01:00
samerton
e2dbc8bec1 Add status page 2018-08-27 23:04:50 +01:00
samerton
f0d453b942 Add ability to change page keywords + description 2018-08-23 22:43:15 +01:00
samerton
7e4c6c1a75 Add sitemap generator 2018-08-19 16:50:36 +01:00
samerton
2bd7b882b8 Update Discord widget settings 2018-06-22 18:53:16 +01:00
samerton
44bfb493c3 Fix group not changing after validation 2018-06-19 22:31:14 +01:00
samerton
4c945af7be Add ability to add a navbar icon to pages 2018-05-31 13:21:11 +01:00
samerton
97f475f0b0 Add privacy policy page with default policy 2018-05-29 22:17:09 +01:00
samerton
60b9ea0ece Add online staff + online members widgets 2018-05-29 16:36:25 +01:00
Timothy Gibbons
8e3441306d Logging Implementation
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
2018-04-12 23:58:29 -05:00
Sam
edd275c462 Start alternative method of account validation through API 2018-03-23 14:02:21 +00:00
Sam
3d6d2b8ec4 Start on hook system, add Discord webhook 2018-03-11 22:27:50 +00:00
Sam
70fea63e04 Allow viewing error logs in AdminCP 2018-03-10 00:17:45 +00:00
Sam
f1720d5672 Add custom error handler 2018-03-09 23:10:28 +00:00
Sam
d4b02b0015 Add permission to nicknames 2017-12-31 20:57:23 +00:00
Sam
08aa71d9e8 Fix unique nickname check in UserCP, and minor profile changes 2017-11-26 13:04:07 +00:00
IsS127
339eee8634 Private Profiles [V2]
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
2017-11-26 13:14:21 +01:00
Sam
1420c5f7cb Add legacy v1 API 2017-11-12 15:31:54 +00:00
Sam
e070397587 Add new core permission system 2017-10-18 16:00:22 +01:00
Sam
7e55ce2216 Update route check
Update route check in core and forum module init files
2017-10-07 00:44:46 +01:00
Sam
9178fed32b Release update files and update installer for pr3
Release update files and update installer for v2 pre release 3
2017-10-07 00:09:59 +01:00
Sam
52af997f6d Add ability to re-order navbar 2017-10-06 19:48:02 +01:00
Sam
e70e9b63c4 Fix custom page icons 2017-10-06 18:54:09 +01:00
Sam
80d42a53e1 Add custom page system 2017-10-06 17:32:50 +01:00
Sam
b5caa137fe Add user punishments 2017-09-18 11:45:17 +01:00
Sam
e6d6483f3b Add user related variables 2017-09-04 15:53:57 +01:00
Sam
ca94230971 Add player count graphs 2017-08-27 22:54:20 +01:00
partydragen
6cde448576 Added Discord Widget 2017-08-26 01:30:54 +02:00
Sam
245d93f98e Add widget system, along with Twitter and Facebook widgets 2017-08-08 19:38:42 +01:00
Sam
e8f02abb2e Add forgot password functionality 2017-07-02 15:53:53 +01:00
Sam
63ce28bfe2 Add terms and conditions page, and the ability to modify them 2017-06-25 22:09:35 +01:00
Sam
a224d8475f Add Minecraft server banners 2017-06-25 20:25:08 +01:00
samerton
e963f18582 Add update section within AdminCP
Add update section to AdminCP which checks for version updates
2016-12-30 19:26:15 +00:00
Sam
09da37e901 Add UserCP Settings page
Add UserCP Settings page, to allow users to set profile field values
2016-12-08 22:38:15 +00:00
Sam
6821396469 Fix a couple of installer issues
Fix a couple of issues with installer, including path configuration not
being set properly, and also set admin group ID back to 2
2016-12-08 13:11:44 +00:00
Tom McClellan
af56339ddf Fixed some things
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
2016-12-07 21:26:05 -08:00