mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-03-25 21:40:07 +01:00
- Resolve FTP home paths without duplicating /home/domain; support absolute paths under site home - Add changeFTPDirectory API and list UI; improve create form path help - Add setFTPAccountStatus (Status 0/1) with Enable/Disable on list page - Pure-FTPd MySQL: require Status='1' for authentication in install templates - Plugin signals for change directory and account status
52 lines
1.8 KiB
Python
52 lines
1.8 KiB
Python
from .signals import *
|
|
from plogical.pluginManagerGlobal import pluginManagerGlobal
|
|
|
|
class pluginManager:
|
|
|
|
@staticmethod
|
|
def preCreateFTPAccount(request):
|
|
return pluginManagerGlobal.globalPlug(request, preCreateFTPAccount)
|
|
|
|
@staticmethod
|
|
def postCreateFTPAccount(request, response):
|
|
return pluginManagerGlobal.globalPlug(request, postCreateFTPAccount, response)
|
|
|
|
@staticmethod
|
|
def preSubmitFTPCreation(request):
|
|
return pluginManagerGlobal.globalPlug(request, preSubmitFTPCreation)
|
|
|
|
@staticmethod
|
|
def postSubmitFTPCreation(request, response):
|
|
return pluginManagerGlobal.globalPlug(request, postSubmitFTPCreation, response)
|
|
|
|
@staticmethod
|
|
def preSubmitFTPDelete(request):
|
|
return pluginManagerGlobal.globalPlug(request, preSubmitFTPDelete)
|
|
|
|
@staticmethod
|
|
def postSubmitFTPDelete(request, response):
|
|
return pluginManagerGlobal.globalPlug(request, postSubmitFTPDelete, response)
|
|
|
|
@staticmethod
|
|
def preChangePassword(request):
|
|
return pluginManagerGlobal.globalPlug(request, preChangePassword)
|
|
|
|
@staticmethod
|
|
def postChangePassword(request, response):
|
|
return pluginManagerGlobal.globalPlug(request, postChangePassword, response)
|
|
|
|
@staticmethod
|
|
def preChangeFTPDirectory(request):
|
|
return pluginManagerGlobal.globalPlug(request, preChangeFTPDirectory)
|
|
|
|
@staticmethod
|
|
def postChangeFTPDirectory(request, response):
|
|
return pluginManagerGlobal.globalPlug(request, postChangeFTPDirectory, response)
|
|
|
|
@staticmethod
|
|
def preSetFTPAccountStatus(request):
|
|
return pluginManagerGlobal.globalPlug(request, preSetFTPAccountStatus)
|
|
|
|
@staticmethod
|
|
def postSetFTPAccountStatus(request, response):
|
|
return pluginManagerGlobal.globalPlug(request, postSetFTPAccountStatus, response) |