mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-05-09 16:15:30 +02: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
36 lines
1.3 KiB
Python
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() |