[ SYSTEM ]: Linux srv.persadacompanies.com 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
[ SERVER ]: Apache | PHP: 8.4.19
[ USER ]: persadamedika | IP: 45.64.1.108
GEFORCE FILE MANAGER
/
usr
/
share
/
doc
/
cpanel-php84-log
/
examples
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 composite.php
302 B
SET
[ EDIT ]
|
[ DEL ]
📄 console.php
148 B
SET
[ EDIT ]
|
[ DEL ]
📄 display.php
270 B
SET
[ EDIT ]
|
[ DEL ]
📄 error_log.php
168 B
SET
[ EDIT ]
|
[ DEL ]
📄 file.php
210 B
SET
[ EDIT ]
|
[ DEL ]
📄 firebug.php
208 B
SET
[ EDIT ]
|
[ DEL ]
📄 mail.php
220 B
SET
[ EDIT ]
|
[ DEL ]
📄 null.php
132 B
SET
[ EDIT ]
|
[ DEL ]
📄 observer_mail.php
672 B
SET
[ EDIT ]
|
[ DEL ]
📄 pear_error_handler.php
619 B
SET
[ EDIT ]
|
[ DEL ]
📄 php_error_handler.php
767 B
SET
[ EDIT ]
|
[ DEL ]
📄 sql.php
214 B
SET
[ EDIT ]
|
[ DEL ]
📄 sqlite.php
482 B
SET
[ EDIT ]
|
[ DEL ]
📄 syslog.php
155 B
SET
[ EDIT ]
|
[ DEL ]
📄 win.php
202 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: observer_mail.php
<?php require_once 'Log/observer.php'; class Log_observer_mail extends Log_observer { private $to = ''; private $subject = ''; private $pattern = ''; public function __construct($priority, $conf) { /* Call the base class constructor. */ parent::__construct($priority); /* Configure the observer. */ $this->to = $conf['to']; $this->subject = $conf['subject']; $this->pattern = $conf['pattern']; } public function notify($event): void { if (preg_match($this->pattern, $event['message']) != 0) { mail($this->to, $this->subject, $event['message']); } } } ?>