⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.155
Server IP:
57.129.66.90
Server:
Linux vps-7f548908 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
Server Software:
LiteSpeed
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
self
/
root
/
usr
/
local
/
CyberCP
/
examplePlugin
/
Edit File: signals.py
from django.dispatch import receiver from django.http import HttpResponse from websiteFunctions.signals import postWebsiteDeletion from plogical.CyberCPLogFileWriter import CyberCPLogFileWriter as logging # This plugin respond to an event after CyberPanel core finished deleting a website. # Original request object is passed, body can be accessed with request.body. # If any Event handler returns a response object, CyberPanel will stop further processing and returns your response to browser. # To continue processing just return 200 from your events handlers. @receiver(postWebsiteDeletion) def rcvr(sender, **kwargs): request = kwargs['request'] logging.writeToFile('Hello World from Example Plugin.') return HttpResponse('Hello World from Example Plugin.')
Simpan