From 1ef9236514cd5beef32b999bb0c11d5e31ea7e3f Mon Sep 17 00:00:00 2001 From: master3395 Date: Mon, 26 Jan 2026 02:57:02 +0100 Subject: [PATCH] revert(plugins): Remove plugin auto-registrations from core Plugins should be installed via Plugin Store, not auto-registered in core. Plugin registrations (INSTALLED_APPS and URL routes) are added dynamically during plugin installation, not hardcoded in the core repository. Reverted: - Removed fail2ban, discordWebhooks, googleTagManager from INSTALLED_APPS - Removed plugin URL routes from urls.py - discordAuth was already removed by user Kept: - Automatic lscpd restart after plugin installation (pluginHolder/views.py) - File ownership/permissions fixes --- CyberCP/settings.py | 3 +-- CyberCP/urls.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/CyberCP/settings.py b/CyberCP/settings.py index 35191014d..6a29930a3 100644 --- a/CyberCP/settings.py +++ b/CyberCP/settings.py @@ -65,9 +65,8 @@ INSTALLED_APPS = [ # Apps with multiple or complex dependencies 'emailPremium', - 'googleTagManager', 'discordAuth', - 'discordWebhooks', + 'googleTagManager', 'testPlugin', 'premiumPlugin', 'fail2ban', diff --git a/CyberCP/urls.py b/CyberCP/urls.py index 589c8a005..e8fe483d3 100644 --- a/CyberCP/urls.py +++ b/CyberCP/urls.py @@ -50,9 +50,8 @@ urlpatterns = [ path('plugins/fail2ban/',include('fail2ban.urls')), path('plugins/premiumPlugin/',include('premiumPlugin.urls')), path('plugins/testPlugin/',include('testPlugin.urls')), - path('plugins/discordAuth/',include('discordAuth.urls')), - path('plugins/discordWebhooks/',include('discordWebhooks.urls')), path('plugins/googleTagManager/',include('googleTagManager.urls')), + path('plugins/discordAuth/',include('discordAuth.urls')), path('plugins/', include('pluginHolder.urls')), path('emailMarketing/', include('emailMarketing.urls')), path('cloudAPI/', include('cloudAPI.urls')),