diff --git a/CyberCP/settings.py b/CyberCP/settings.py index 55235893b..1edb42b25 100644 --- a/CyberCP/settings.py +++ b/CyberCP/settings.py @@ -13,6 +13,16 @@ https://docs.djangoproject.com/en/1.11/ref/settings/ import os from django.utils.translation import gettext_lazy as _ +# Patreon OAuth Configuration for Paid Plugins +# SECURITY: Environment variables take precedence. Hardcoded values are fallback for this server only. +# For repository version, use empty defaults and set via environment variables. +PATREON_CLIENT_ID = os.environ.get('PATREON_CLIENT_ID', 'LFXeXUcfrM8MeVbUcmGbB7BgeJ9RzZi2v_H9wL4d9vG6t1dV4SUnQ4ibn9IYzvt7') +PATREON_CLIENT_SECRET = os.environ.get('PATREON_CLIENT_SECRET', 'APuJ5qoL3TLFmNnGDVkgl-qr3sCzp2CQsKfslBbp32hhnhlD0y6-ZcSCkb_FaUJv') +PATREON_CREATOR_ID = os.environ.get('PATREON_CREATOR_ID', '') +PATREON_MEMBERSHIP_TIER_ID = os.environ.get('PATREON_MEMBERSHIP_TIER_ID', '27789984') # CyberPanel Paid Plugin tier +PATREON_CREATOR_ACCESS_TOKEN = os.environ.get('PATREON_CREATOR_ACCESS_TOKEN', 'niAHRiI9SgrRCMmaf5exoXXphy3RWXWsX4kO5Yv9SQI') +PATREON_CREATOR_REFRESH_TOKEN = os.environ.get('PATREON_CREATOR_REFRESH_TOKEN', 'VZlCQoPwJUr4NLni1N82-K_CpJHTAOYUOCx2PujdjQg') + # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) @@ -55,7 +65,6 @@ INSTALLED_APPS = [ # Apps with multiple or complex dependencies 'emailPremium', - 'testPlugin', # Test plugin 'emailMarketing', # Depends on websiteFunctions and loginSystem 'cloudAPI', # Depends on websiteFunctions 'containerization', # Depends on websiteFunctions @@ -84,12 +93,6 @@ INSTALLED_APPS = [ # Add plugins that are installed (plugin installer handles adding/removing) # Plugins are added by plugin installer when plugins are installed -if os.path.exists('/usr/local/CyberCP/discordWebhooks/__init__.py'): - INSTALLED_APPS.append('discordWebhooks') -if os.path.exists('/usr/local/CyberCP/fail2ban/__init__.py'): - INSTALLED_APPS.append('fail2ban') -if os.path.exists('/usr/local/CyberCP/pm2Manager/__init__.py'): - INSTALLED_APPS.append('pm2Manager') MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', diff --git a/CyberCP/urls.py b/CyberCP/urls.py index 3a828e9f0..ea5ccf382 100644 --- a/CyberCP/urls.py +++ b/CyberCP/urls.py @@ -44,15 +44,14 @@ urlpatterns = [ path('filemanager/', include('filemanager.urls')), path('emailPremium/', include('emailPremium.urls')), path('manageservices/', include('manageServices.urls')), - path('plugins/testPlugin/', include('testPlugin.urls')), path('plugins/', include('pluginHolder.urls')), - path('emailMarketing/', include('emailMarketing.urls')), path('cloudAPI/', include('cloudAPI.urls')), path('docker/', include('dockerManager.urls')), path('container/', include('containerization.urls')), path('CloudLinux/', include('CLManager.urls')), path('IncrementalBackups/', include('IncBackups.urls')), path('aiscanner/', include('aiScanner.urls')), + path('emailMarketing/', include('emailMarketing.urls')), # path('Terminal/', include('WebTerminal.urls')), path('', include('loginSystem.urls')), ] diff --git a/baseTemplate/templates/baseTemplate/index.html b/baseTemplate/templates/baseTemplate/index.html index 4f7b020c7..f31cb4b17 100644 --- a/baseTemplate/templates/baseTemplate/index.html +++ b/baseTemplate/templates/baseTemplate/index.html @@ -1,8 +1,8 @@ {% load i18n %} {% get_current_language as LANGUAGE_CODE %} -{% with CP_VERSION="2.4.4.1" %} +{% with CP_VERSION="2.5.5-dev-fix" %} - +
@@ -17,30 +17,39 @@ - - - - - - - + + + + - + - + @@ -1566,7 +1575,7 @@ {% block header_scripts %}{% endblock %} - ++ {{ plugin_description }} +
+ {% endif %} + +{% trans "List of installed plugins on your CyberPanel" %}
{% trans "List of installed plugins on your CyberPanel" %}
+{% trans "You haven't installed any plugins yet. Plugins extend CyberPanel's functionality with additional features." %}
+ + +| {% trans "Icon" %} | {% trans "Plugin Name" %} | -{% trans "Author" %} | {% trans "Version" %} | +{% trans "Pricing" %} | {% trans "Modify Date" %} | -{% trans "Status" %} | {% trans "Action" %} | -{% trans "Active" %} | {% trans "Help" %} | {% trans "About" %} |
|---|