One Hat Cyber Team
Your IP :
216.73.216.240
Server IP :
162.240.106.28
Server :
Linux server.ganesand.com 3.10.0-1160.80.1.el7.x86_64 #1 SMP Tue Nov 8 15:48:59 UTC 2022 x86_64
Server Software :
Apache
PHP Version :
7.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
doc
/
cpanel-php81-log-1.13.3
/
examples
/
Edit File:
observer_mail.php
<?php require_once 'Log/observer.php'; class Log_observer_mail extends Log_observer { var $_to = ''; var $_subject = ''; var $_pattern = ''; function Log_observer_mail($priority, $conf) { /* Call the base class constructor. */ $this->Log_observer($priority); /* Configure the observer. */ $this->_to = $conf['to']; $this->_subject = $conf['subject']; $this->_pattern = $conf['pattern']; } function notify($event) { if (preg_match($this->_pattern, $event['message']) != 0) { mail($this->_to, $this->_subject, $event['message']); } } } ?>
Simpan