Files
CyberPanel/ftp/signals.py
master3395 b9b24dd687 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
2026-03-24 20:22:56 +01:00

36 lines
1.3 KiB
Python

# The world is a prison for the believer.
## https://www.youtube.com/watch?v=DWfNYztUM1U
from django.dispatch import Signal
## This event is fired before CyberPanel core load the create ftp template, this special event is used
## to create a beautiful names official plugin. Actual FTP account creation happens with event named preSubmitFTPCreation and postSubmitFTPCreation.
preCreateFTPAccount = Signal()
## See preCreateFTPAccount
postCreateFTPAccount = Signal()
## This event is fired before CyberPanel core start creation of a FTP account.
preSubmitFTPCreation = Signal()
## This event is fired after CyberPanel core finished creation of a FTP account.
postSubmitFTPCreation = Signal()
## This event is fired before CyberPanel core start deletion of a FTP account.
preSubmitFTPDelete = Signal()
## This event is fired after CyberPanel core finished deletion of website
postSubmitFTPDelete = Signal()
## This event is fired before CyberPanel core start deletion of child-domain
preChangePassword = Signal()
## This event is fired after CyberPanel core finished deletion of child-domain
postChangePassword = Signal()
## Before / after changing FTP account home directory (list FTP page)
preChangeFTPDirectory = Signal()
postChangeFTPDirectory = Signal()
preSetFTPAccountStatus = Signal()
postSetFTPAccountStatus = Signal()