FTP: path normalization, post-create directory edit, enable/disable

- 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
This commit is contained in:
master3395
2026-03-24 20:22:56 +01:00
parent 836db0f378
commit 90fcc7b621
13 changed files with 649 additions and 86 deletions

View File

@@ -33,4 +33,20 @@ class pluginManager:
@staticmethod
def postChangePassword(request, response):
return pluginManagerGlobal.globalPlug(request, postChangePassword, 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)